Struts Action Errors


Web tier: servlets, JSP, Web frameworks: Struts Action Errors

  1. Struts Action Errors (1 messages)

    suppose i validate the jsp page how do i display the action errors by the side of each field.

    suppose i have 3 fields
    i validate when i click on the save button in my ActionBean.
    now it pops up error each time for 3 fields .i want to pop up all the errors at one time when they click on save button.

    pls help.
  2. Struts Action Errors[ Go to top ]

    The errors can be displayed by the side of text field by using <html:errors property="field.error.msg"/>.

    All the errors can be displyed by doing all the valdiations iof fields in validate() and return the ActionErrors object(which contains individual ActionError for each field).

    I hope it helps...

    Anil S.