This week's book giveaway is in the General Computing forum.
We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line!
See this thread for details.
The moose likes Struts and the fly likes Question on validation Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Frameworks » Struts
Reply Bookmark "Question on validation" Watch "Question on validation" New topic
Author

Question on validation

Archana Annamaneni
Ranch Hand

Joined: Jan 29, 2003
Posts: 147
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

in the struts config I have

<action path="/locate" type="com.LocateAction" name="LocateForm" input="/example1.jsp" >
</action>

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.
alan do
Ranch Hand

Joined: Apr 14, 2005
Posts: 354
you need 2 action mappings that have 2 different 'input' attribute values. in the real world, i hope you don't have 2 jsp'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: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Question on validation
 
Similar Threads
INCLUDE (Any one know how to do it ???)
Escape HTML
including content in jsp from action class ?
noob cp problems in webapp
Struts Validation not working