Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Validation in struts

 
manikandan jayakumar
Ranch Hand
Posts: 44
Firefox Browser Tomcat Server VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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)

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic