struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alvaro Martinez" <infor...@wanadoo.es>
Subject Exception argument
Date Fri, 28 May 2004 09:34:05 GMT

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


Mime
View raw message