Get the tools you need to learn Java skills fast!
Video tutorials, eBooks, hands-on lab exercises, sample code.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Badass: Making Users Awesome
this week in the
Question on validation
Joined: Jan 29, 2003
Jun 13, 2005 09:42:00
I am using the validator provided by struts.I am using One form on two different JSPS.
e.g on example1.jsp and on example2.jsp
config I have
<action path="/locate" type="com.LocateAction" name="LocateForm" input="/example1.jsp" >
Everything works fine when there are validation errors on example1.jsp.
It goes to example1.jsp when there are errors on example2.jsp also.
please provide some solution if any one had same situation before and solved this.
Joined: Apr 14, 2005
Jun 13, 2005 10:01:00
you need 2 action mappings that have 2 different 'input' attribute values. in the real world, i hope you don't have 2
's under the same action mapping path using 1 form to do the exact same thing.
-/a<br />certified slacker...yes, my last name is 'do' - <a href="http://www.luckycouple.com" target="_blank" rel="nofollow">luckycouple.com</a>
I agree. Here's the link:
subject: Question on validation
noob cp problems in webapp
INCLUDE (Any one know how to do it ???)
including content in jsp from action class ?
Struts Validation not working
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015