Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Dynamic action path to share same validation configuration

Status
Not open for further replies.

jaybytez

Programmer
Jan 8, 2003
65
0
0
US
I have a tiles layout page with a form on it. The action of the form is dynamic because the page can be entered from multiple locations and so the form action changes based on those locations. Except the fact that the fields on the form are the same and so are the validation rules. It appears that Struts validation.xml requires form definitions based on the url patterns in struts-config.xml. Is this true? Can you define global field or form definitions that can be used in multiple field/form definitions? Because I have one form that is accessed and sent to different actions, I have to have a duplicate definition for validation for each possible action path.

Thanks!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top