struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Smith <psm...@infonow.com>
Subject Re: question about ActionErrors
Date Fri, 11 Jul 2003 22:08:52 GMT
Hi Yan,

For your properties file, there is an entry in struts-config that you can
make.  Here is an example:

<!-- == Message Resources Definitions ================================== -->
  <message-resources parameter="your.package.tree.application"
                     null="false"/>

For this example, the file would be application.properties.

For your other questions, there is an ActionMessages class that does what
you need.

HTH, Peter
-- 
Peter Smith
Software Engineer
InfoNow Corporation

> From: Yan Zhu <yan.zhu@ipacc.com>
> Reply-To: "Struts Users Mailing List" <struts-user@jakarta.apache.org>
> Date: Fri, 11 Jul 2003 16:59:18 -0500
> To: Struts Users Mailing List <struts-user@jakarta.apache.org>
> Subject: question about ActionErrors
> 
> 
>   It's my understanding that ActionErrors builds a property/message
> list based on the Apppiation.Properties file found in the classpath.
> Is there anyway to change that behavior so that it can read of a file
> that application specifies?
> 
>   Also, ActionErrors handles the displaying of the error messages
> quite well. But what if I simply want to pass a status message back
> to the users based on my action. Is there an equivalent of
> ActionStatues?
> For example, if I add a user to the db, I want the page to return to the
> 
> add user jsp after each add, with a message like user blah is added
> successfully. It operates exactly like the errors, except it shows up
> when actions are successful.
> 
>   thx
> 
> yan
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
> 
> 


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


Mime
View raw message