Loading
"> Struts Action Errors ">

Java Quick Notes

Refresh Your Java - Before Java Interview

We are Agile, believe in less Documentation - Only Quick notes (Java Interview Questions) of Java/J2ee Read more....


Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet

Go to SiteMap

Q)  How to use Action Errors ?


Ans)

In Action class, you could validate and add the Errors as shown below and you need
to display these in JSP page.

i) Add the Errors like this in Action Class:
   ActionErrors errors = new ActionErrors();
   if (parent == null) {
     errors.add(GLOBAL_ERROR,
     new ActionError("error.custform"));
   }
ii) Dispay these in JSP as follows.
   <html:errors/>



Back to top

------------------------- We hope you got necessary Info On -----------------------------------------

Struts Action Errors


Struts Action Errors

-------------------------------------------------------------------------------------------------------



Face Book
Request for a Mock Interview/Training

Get a PDF

Face Book
Same look (Read) on any device, this is Ads free