Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    wac
    wac is offline
    Regular Coder wac's Avatar
    Join Date
    Sep 2002
    Location
    Cary, North Carolina, USA
    Posts
    359
    Thanks
    2
    Thanked 0 Times in 0 Posts

    [STRUTS] How to tell if errors exist in a Struts Action

    I would like to know within my Struts Action class whether an error has already been set. For example, some previous action may have forwarded to my Action. If they have set an error, I want to do something different from if there are no errors.
    Wayne Christian

  • #2
    New Coder
    Join Date
    May 2004
    Posts
    23
    Thanks
    0
    Thanked 0 Times in 0 Posts
    to work with errors you can use ActionErrors class in Struts.
    you can save the errors in an ActionErrors object and then display if any errors.
    you also trace if any errors using the above object.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •