add a clearErrors() and clearMessages() method to ActionSupport
---------------------------------------------------------------

                 Key: WW-2037
                 URL: https://issues.apache.org/struts/browse/WW-2037
             Project: Struts 2
          Issue Type: Improvement
          Components: API
    Affects Versions: 2.1.0
            Reporter: James Holmes
            Priority: Minor


Currently ActionSupport has a clearErrorsAndMessages() method. I think it will 
be useful to be able to clear errors and/or messages individually. It's not 
always the case that you want to clear both. See the message thread below:

http://www.nabble.com/-s2--no-result-defined-error-after-failed-validation---can-someone-help--tf4030311.html

I believe the user wants to be able to clear errors and not necessarily 
messages. I have found a need for this myself recently and would like to 
implement or see it implemented by someone else.

I would commit the code myself to do this, but it requires an update to the 
XWork code. Not sure what the process is to get XWork code updated.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to