This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Struts and the fly likes over-writing DynaValidatorActionForm Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "over-writing DynaValidatorActionForm" Watch "over-writing DynaValidatorActionForm" New topic
Author

over-writing DynaValidatorActionForm

Whitney Albrecht
Greenhorn

Joined: May 09, 2005
Posts: 19
I am using DynaValidator Action Form to do two things:
1) Dynamically create a table with radio buttons named "userRadioValue" in the UserManagement.jsp page (by mapping two actions similar to this example -- http://www.developer.com/java/ejb/article.php/3321521)

2) Verify that a radio button has been selected (when the submit button has been selected).

I have overwritten the DynaValidatorActionForm validate function. It displays the error on the jsp page but refreshes the jsp form and removes the dynamic information that was orginally displayed on the page.

Can anyone tell me how to get the validate function, if there is an error to recreate the page while still displaying the error?

[ July 07, 2005: Message edited by: Whitney Albrecht ]
[ July 07, 2005: Message edited by: Whitney Albrecht ]
Merrill Higginson
Ranch Hand

Joined: Feb 15, 2005
Posts: 4864
Check out this thread. It will hopefully answer your question.


Merrill
Consultant, Sima Solutions
Whitney Albrecht
Greenhorn

Joined: May 09, 2005
Posts: 19
I'll go try it ... I'll let you know... thanks for the link to the post
Whitney Albrecht
Greenhorn

Joined: May 09, 2005
Posts: 19
YES! I tried sln #2 and it worked.

Thanks for pointing me in the right direction.

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: over-writing DynaValidatorActionForm