can't you pass a HashMap back?

>-----Original Message-----
>From: Adam Hardy [mailto:[EMAIL PROTECTED]
>Sent: Saturday, October 11, 2003 6:42 PM
>To: Struts Users Mailing List
>Subject: communication between control layer & factory/model
>
>
>I've been happy until now passing objects backwards and forwards between 
>my actions and my factories, and occasionally a int with the number of 
>updates or deletes done, for example, to include in the status messages 
>I show to the user, and throwing exceptions for anything else.
>
>However I've just programmed a page with nested beans and the factory 
>does the whole process in one transaction, covering three different 
>operations which I would like to give three different status messages for.
>
>In brief it is the realm user admin page and the list of nested beans 
>are users - on which the admin op can update the email address, reset 
>the password or delete the user entirely.
>
>I want to tell the admin how many of each operation were done. I could 
>either pass back an ActionMessages, but I don't want to mix struts into 
>my factory layer, or I could pass back a string with different parts:
>
># of email updates
># of password resets
># of deletions
>
>Which is not exactly elegant, since I have to tokenize it.
>
>Anybody got any better solutions?
>
>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]

Reply via email to