So recently I have begun a project where I need to learn several technologies that I was previously not very familiar with. Javascript and
Struts. I had done a little bit with javascript in the past, but never had touched struts before. We are planning on doing some of out form validation on the client side using javascript. I am having trouble getting them to work together. Here is some code. Could someone tell me what I am doing wrong. The webserver I am using is
tomcat. Here is some of the code.
< html:form action="/submitCustomerForm" on_blur="return validate()" method="GET" >
PLEASE READ: just so you know, in my code I used the onblur attribute appropriately, the javaranch system kept complaining about when I tried to post, so I put an underscore inbetween on and blur.
The error I get is:
org.apache.jasper.JasperException: /CustomerForm.jsp(28,1) Attribute onblur invalid for tag form according to TLD
Also, it was working perfectly before I added the onblur attribute. Im not sure what I am doing wrong. Any insight would be great. Thanks
By the way. I apologize if I posted in the wrong
thread. I posted this question in the javascript thread as well as this one to ensure that I received an adequate response. Thanks again.
Daniel