You can find the complete solution here
http://www.reumann.net/struts/articles/request_lists.jsp
On 4/13/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> Mallik,
>
> The way I have always made this work in the past is to call the validate
> method on the form bean myself in the action rather t
Mallik,
The way I have always made this work in the past is to call the validate method
on the form bean myself in the action rather than leaving it the validator to
call for me.
Set validate="false" in the action mapping in struts-config.xml. Then in the
action call the validate method on th
Have the input attribute on the action that is having validation
errors point to an Action that will re-populate the drop-down list
bean.
On 4/12/05, Mallikarjun Komma <[EMAIL PROTECTED]> wrote:
> Hi,
> I am new to struts frame work.I have a question
> regarding repopulating dropdown menu when val
:33
To: Struts Users Mailing List
Subject: Re: repopulating dropdown menus when validation errors occur
kurt,
I am putting the list of values for the drop
down in the form bean as dynaform.set("userList",
list) in theaction class. (userList is a form property
here) but still not able
kurt,
I am putting the list of values for the drop
down in the form bean as dynaform.set("userList",
list) in theaction class. (userList is a form property
here) but still not able to get the drop down
re-populated back when validation errors occur.
What am I doing wrong here?
Thanks in advance.
Once the user does a submit you have a new request. So the old request where
your list is is no longer in scope and therefore no longer valid.
One solution would be to set validate="false" in the action mapping for the
action and then call the form's validate method yourself in the aciton. If
6 matches
Mail list logo