• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

On validation tomcat shows HTTP 404 status

 
Soheil Tayari
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Here's the case:
I have a form needs to be validated but 3 of the fields have validation rules (The field s I care about). When I submit the form with those 3 fields filled the action works fine. But if I miss any of the fields instead of validating and showing the error message, a 404 error page pops up. Also when I annotate the methods in action with @SkipValidation it works fine. So I think it's something to do with validation file. But if that's the case why does it work OK when I submit the form with these 3 fields provided. Any help would be appreciated.
 
Anbarasu Aladiyan
Ranch Hand
Posts: 182
Chrome Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Which page is called when the validation fails? Post the action configuration details from struts xml file related that particular action.
 
Soheil Tayari
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for the reply and sorry for delayed answer. The problem was with some mistakes in result mappings.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic