File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Struts and the fly likes On validation tomcat shows HTTP 404 status Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "On validation tomcat shows HTTP 404 status" Watch "On validation tomcat shows HTTP 404 status" New topic
Author

On validation tomcat shows HTTP 404 status

Soheil Tayari
Greenhorn

Joined: Apr 04, 2008
Posts: 29
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

Joined: Jun 02, 2009
Posts: 182

Which page is called when the validation fails? Post the action configuration details from struts xml file related that particular action.


A.A.Anbarasu
Soheil Tayari
Greenhorn

Joined: Apr 04, 2008
Posts: 29
Thanks for the reply and sorry for delayed answer. The problem was with some mistakes in result mappings.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: On validation tomcat shows HTTP 404 status