You are 100% right..(In my opinion...) Actually thats what we have done in our project..We have extended message tag and ActionMessage class (EqActionWarning,EqActionError,EqActionMessage)..And each of these has a static property (E.G. EqActionMesage.ACTION_MESSAGE) Wwhich is used by default to store that type of object.The extended mesasge tag looks for each specific type and renders them diffferently(Error:Red,Warning:Yellow warning symbol etc)
-----Original Message----- From: Adam Hardy [mailto:[EMAIL PROTECTED] Sent: Monday, October 20, 2003 1:10 PM To: Struts Users Mailing List Subject: ActionMessage and ActionMessages I've been programming some status messages into my action and something occurs to me about the property key with which we save an ActionMessage into an ActionMessages collection with ActionMessages.add(key, msg) and with which we retrieve specific groups of messages from the collection with iterator = ActionMessages.get(key) I think this property key should be a property of the ActionMessage. From a purely theoretical point of view, this would be more OO, and from a practical point of view, that means we can pass an ActionMessage around without having to worry about the key we are going to add it with when we put it into the ActionMessages collection. What do people think? Adam -- struts 1.1 + tomcat 5.0.12 + java 1.4.2 Linux 2.4.20 RH9 --------------------------------------------------------------------- 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]

