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]



Reply via email to