wood burning stoves 2.0*
The moose likes Struts and the fly likes Validation in struts 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 "Validation in struts" Watch "Validation in struts" New topic
Author

Validation in struts

manikandan jayakumar
Ranch Hand

Joined: Aug 20, 2011
Posts: 41

Hi,

can anybody help me to validate my input form.

'm trying to do automatic validation on my input form

here are my files:
index.jsp


struts-config.xml


validation.xml
trying to validate only name field



web.xml

HelloForm.java

'm not able to validate if i submit my form with empty
javax.servlet.ServletException: org.apache.jasper.JasperException: /failure.jsp(6,0) Expecting "jsp:param" standard action with "name" and "value" attributes
org.apache.struts.chain.ComposableRequestProcessor.process(ComposableRequestProcessor.java:286)
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1913)
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:462)
javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Validation in struts
 
Similar Threads
Getting null pointer Exception
Servlet Action not found
Verification failed on Username existence check using AJAX
Problem with my first struts application
struts-html.tld not found help me please