• 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

Help:client validation on struts multi-page

 
Ranch Hand
Posts: 113
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Requirement:
1. I have a request which has two pages. First page:validate email, product plan and so on.
2. second page validates first_name, last_name and so on.

Now I can validator input of both pages on the server side , but the client validation does not work. I have followed the example from struts about struts-examples-1.3.8.war.


[ May 25, 2007: Message edited by: Sam Sunamin ]

Can some one help me? Please! This is urgent.
[ May 25, 2007: Message edited by: Sam Sunamin ]
 
Ranch Hand
Posts: 4864
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Change validatesignupForm to validateSignupForm (upper case "S"). You can verify that this is the name of the function that Struts put in your JSP by using your browser's view source function.

You must also specify validate="true" for the action if you want client-side validation to work.
[ May 27, 2007: Message edited by: Merrill Higginson ]
 
Sam Sunamin
Ranch Hand
Posts: 113
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I tried what you told. When I changed validate to "true", it threw exception from Tomcat.



I checked the example from struts-1.3.8 examples validation which has multiregistrationForm and its validate also set to "false".

Thank you so much.
 
reply
    Bookmark Topic Watch Topic
  • New Topic