You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Alvaro Martinez <in...@wanadoo.es> on 2004/05/28 11:34:05 UTC

Exception argument

Hello,
How can I include an argument in an exception tag?
For example, this is a piece of my "struts_config.xml":
...
  <action path="/CompaniesDelete"
    type="companies.actions.CompaniesDeleteAction"
    name="CompaniesForm"
    input="/CompaniesMain.do"
    validate="false">
    <exception type="java.lang.Exception" key = "errors.deleted"
path="/CompaniesMain.do"/>
   <forward name="success" path="/CompaniesMain.do"/>
  </action>
...

Could I have a "errors.deleted" with the following sentence(next key): "{0}
is
an invalid number."
I would like to include an argument in my "errors.deleted" which I can throw
from servlet "companies.actions.CompaniesDeleteAction" when an Exception
occurs.
Thanks in advance...
Alvaro







---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org