I was able to fix the problem that I was having by changing my input
for the action from the jsp that was being used to the action mapping.
That way when the validation fails, it kicks back to the original
mapping and runs through that action populating the necessary beans.
That way I don't need
I have faced this problem too.
I tried to get back the previous form from the session and combine
all the field that you need. This logic will happen when validator
is finding an error and it do dynamically. So That is suitable for
all the cases in the App.
The logic I'm using is simple. It i
1) In my action class I put a list (statusList) into the request.
2) In the associated JSP, I read through the bean (statusList) and
display the data in a drop down box (the way you suggested):
3) When I go to validate(with the framework), and fail, I get Posted
back to the inputting .jsp, b
From: "Daniel Kies" <[EMAIL PROTECTED]>
> in JSP to show the list in a drop down:
>
>
> property="statusType"/>"> property="statusType" />
>
>
Why are you not using the and (or
) tags? You don't have to iterate over the
collection, the framework will do it for you.
Example:
Wendy - I don't want to use the session for storage because of
scalability and memory constraints.
I have read and understand the point that as long as I have the field
defined in the DynaActionForm that the data will be in the request
when I need it after validation fails.
-How do you get a list
From: "Daniel Kies" <[EMAIL PROTECTED]>
> Can you offer a decent way of
> searching through the archives?
I like http://www.mail-archive.com. Put 'struts' in the box on the first
page, then choose the user list.
Why are you dismissing session scope?
--
Wendy Smoak
--
> the list archives for details.
>
>
> > -Original Message-
> > From: Daniel Kies [mailto:[EMAIL PROTECTED]
> > Sent: Thursday, December 30, 2004 9:55 AM
> > To: user@struts.apache.org
> > Subject: Validation Post-Back help
> >
> &g
This has been asked multiple times on the list and heavily discussed. check the
list archives for details.
> -Original Message-
> From: Daniel Kies [mailto:[EMAIL PROTECTED]
> Sent: Thursday, December 30, 2004 9:55 AM
> To: user@struts.apache.org
> Subject: Validation
Greetings. I am using the Validation Framework and I am having
problems when the validator is finding an error. When the post-back
kicks back to the input page, it is not finding the data that was
previously found in the request. In order for the data to be
available when kicked back to the call
9 matches
Mail list logo