jump to navigation

Modifying struts2 validation templates July 24, 2007

Posted by maxmil in : struts2 , trackback

I found that the default xhtml templates validation gave errors in firefox (https://issues.apache.org/struts/browse/WW-2058). In order to modify the templates you can copy the “template” folder from the struts jar to your web application root.

However the struts/xhtml/validation.js will still be served from the struts jar. In order to avoid this you should overwrite the line that imports the js in template/xhtml/form-validate.ftl.

The line i have added is as follows

<script type="text/javascript" src="${base}/template/xhtml/validation.js"></script>


no comments yet - be the first?