• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Question on validation

 
Ranch Hand
Posts: 147
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Ranch Hand
Posts: 354
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
reply
    Bookmark Topic Watch Topic
  • New Topic