This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Struts and the fly likes Struts client side validation is not supporting for image button Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts client side validation is not supporting for image button" Watch "Struts client side validation is not supporting for image button" New topic
Author

Struts client side validation is not supporting for image button

Rajagopal Mani
Ranch Hand

Joined: Mar 24, 2011
Posts: 84

Dear All,

Struts client side validation is not supporting for the image button(*1) where as it is working for framework & html buttons(*2). It is not showing the javascript alert message where the field associates with "required" validate rule.

*1
----
This is round codner button which needs to be used as per the requirement.

<div class="buttonwrapper">
<a class="ovalbutton" onclick="clickFind('xxx.do')"><span><bean:message key="button.find"/></span></a>
</div>

*2
----
<html:submit value="Find" onclick="clickFind('xxx.do')" />
<input type="submit" value="Find"onclick="clickFind('xxx.do')" />

How to enable validator rule with image button. Please share if there is any possible resolution.

Thanks
 
 
subject: Struts client side validation is not supporting for image button
 
Similar Threads
scroll bar down
popup in small window is not closing automatically
Hiding a popup span with onblur
creating button using <s:button> - similar to the CSS based button
Handling validations of multiple forms in single jsp