This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Struts and the fly likes How to Skip automatic struts validation if more than 1 submit button present? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "How to Skip automatic struts validation if more than 1 submit button present?" Watch "How to Skip automatic struts validation if more than 1 submit button present?" New topic
Author

How to Skip automatic struts validation if more than 1 submit button present?

Prasanth Pillai
Ranch Hand

Joined: Oct 16, 2006
Posts: 52
hi,

I have more than one submit button in my form (say submit & Logoff). I have implemented struts automatic validation in the JSP screen. But I want to skip the validation if I click Logoff button. How will I do that?
Prasanth Pillai
Ranch Hand

Joined: Oct 16, 2006
Posts: 52
I got the resolution.
we can use <html:clear> or <html:cancel> for those buttons.
Prasanth Pillai
Ranch Hand

Joined: Oct 16, 2006
Posts: 52
we may use <html:reset> as well.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: How to Skip automatic struts validation if more than 1 submit button present?
 
Similar Threads
struts validator
Struts 1.2
2 submit buttons with different action
empty input validation
front-end validation in struts jsp page