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
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Frameworks » Struts
Reply 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://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: On validation tomcat shows HTTP 404 status
 
Similar Threads
DispatchAction and Validator
result display error
DynaValidatorForm not allowing insert.
submit thru javascript
Stopping the struts validation for a particular non-displayed fields