velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From faisalloe <>
Subject Spring velocity form reload issue!!!!!
Date Tue, 19 Jun 2007 12:10:20 GMT

what i m trying to do, spring displays a form, when click on submit it should
display the same form but added attribute value in request object.i tried
but its not working hope any one drag out error from it.

<entry key="/successLogin.htm">
<ref bean="searchForm" />
<bean id="searchForm"
class="com.rim.admin.controlers.SearchFormControle r">
<property name="sessionForm">
<property name="commandName">
<property name="commandClass">

<property name="validator">
<ref bean="searchFormValidator" />

<property name="formView">
<value>search1</value> <!-- its my velocity file resolver is already
setteled no worries about this-->

<property name="successView">
<value>successLogin.htm</value> <!-- again comming on same form-->


public ModelAndView onSubmit(
HttpServletRequest request,
HttpServletResponse response,
Object command,
BindException errors) throws ServletException, Exception {
Search form = (Search)command;

ArrayList list = new ArrayList();
TestTO o = new TestTO();

return new ModelAndView(getSuccessView(),"lists",o);

------------------- VM ---------------------------
#foreach($list in $lists)

it does not display any data any idea ?
View this message in context:
Sent from the Velocity - User mailing list archive at

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message