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 Changing ActionErrors to ActionMessages in struts application Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Changing ActionErrors to ActionMessages in struts application" Watch "Changing ActionErrors to ActionMessages in struts application" New topic
Author

Changing ActionErrors to ActionMessages in struts application

Vinutha Jagadish
Greenhorn

Joined: Nov 20, 2009
Posts: 18
Hi,

I have a jsp file to display error messages



in my Action Class ActionForward process() method, i have code for adding ActionError like this,



and in validator-rules.xml file has,



Now, my requirement is to change from ActionErrors to ActionMessages,

i changed my code like this,



in Action Class ActionForward process() method, i changed ActionErrors to ActionMessages




and in validator-rules.xml file, i chnged ActionErrors to ActionMessages




anything else am i missing?

Thanks,
Jagadish
Vinutha Jagadish
Greenhorn

Joined: Nov 20, 2009
Posts: 18
when i change from ActionErrors to ActionMessages, i am not getting error messages.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Changing ActionErrors to ActionMessages in struts application
 
Similar Threads
validation Exception !!!!!
Struts 1.2.7 Validation blues
what's wrong wtih this validation code
client side validation
validator problem