This week's book giveaway is in the OCPJP forum. We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line! See this thread for details.
Hi Firends, I am new to struts application. I don't know what is use ActionErrors and ActionError and how to use this Errors in our Struts application .Anybody help to me. Give a sample code for how to use this.
Hi, ActionErrors is just a way to do validation and get errors onto the JSP page for display. For the most part now you can use ActionMessages instead of ActionErrors. Here's a simple example. From your action, write these lines:
In the ApplicationResources.properties file (your messages file), you'd have to put a message in for "my.error.something", or whatever you called your error, then on the jsp page, use thes lines