struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alvaro Martinez" <infor...@wanadoo.es>
Subject Argument in exception tag
Date Tue, 01 Jun 2004 17:09:41 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: "{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