File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Validation Issues

 
Adeyemi Adeseye
Greenhorn
Posts: 27
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please i need someone to help fix this problem. here are my codes, but the page refuses to validate.

My action file



My Input page jsp




My Display JSP is a table that display what is being entered from the input page




My XML configuration file is below





While the code works and display once a correct input is being keyed in, the problem is that it does not validate the fields, can someone help resolve this problem.


 
Raza Mohd
Ranch Hand
Posts: 247
Java MyEclipse IDE MySQL Database
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi ...

your HelloWorld.jsp needs <s:actionerror/>

Regards.
Raza
 
Adeyemi Adeseye
Greenhorn
Posts: 27
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i added the action error, its still the same
 
Ankit Garg
Sheriff
Posts: 9495
22
Android Google Web Toolkit Hibernate IntelliJ IDE Java Spring
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
<wild-guess>Can you try ValidatorType.FIELD instead of ValidatorType.SIMPLE</wild-guess>
 
Adeyemi Adeseye
Greenhorn
Posts: 27
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Still did not solve the problem
 
Adeyemi Adeseye
Greenhorn
Posts: 27
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi forum members, i ran this code on Jboss server and its running well, i was using glassfish earlier.

I changed my input page and structured it within a table, but everytime i click submit more than once, it validates more than once, i.e. if i click submit 3 times it validates three times and display the error message three times. i started experiencing this when i started using table. See below my new input file



 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic