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 <[EMAIL PROTECTED]> > Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]> > Date: Fri, 11 Jul 2003 16:59:18 -0500 > To: Struts Users Mailing List <[EMAIL PROTECTED]> > 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: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]