Good points.  Originally I was leaning towards including everything in my
form beans.  We are using nothing but dynamic form beans in my app, so using
this style the <form-beans> section of your struts-config file essentially
becomes documentation for your JSP authors.  However, lately I've been
thinking it's better to store things in the request and your post gives some
good reasons for that.

I'm wondering how the best way to document this stuff for a JSP author would
be; javadoc doesn't apply here ;)  I will have to look into the service
locator pattern.  That could be of some help.

Thanks,

Matt
----- Original Message ----- 
From: "Mainguy, Mike" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Sent: Thursday, September 18, 2003 12:35 PM
Subject: RE: [repost] Special view information -> ActionForm or request?


> I also would like other's opinion on this.  Right now, use a service
locator
> style class to stuff all my lookup stuff into the request object manually.
> I have, however, used collections in the formbeans for this.  I can't, off
> the top of my head, think of any significant advantages to using a form
> bean.  One disadvantage, however, is you can only have 1 form bean per
> action, so lookups across multiple actions will need to have duplicate
code.
>
>
> -----Original Message-----
> From: Sgarlata Matt [mailto:[EMAIL PROTECTED]
> Sent: Thursday, September 18, 2003 10:15 AM
> To: Struts Users Mailing List
> Subject: [repost] Special view information -> ActionForm or request?
>
>
> Sorry for the repost.  Has this already been discussed?  I couldn't find
it
> in the archives.
>
> Original message:
>
> Sometimes views need special information to display correctly, like a bean
> with the values needed to render a dropdown list.  Is it considered a
Struts
> best-practice to include this information in the ActionForm or should the
> Action which prepares this information store the information in the
request
> instead?
>
> Thanks,
>
> Matt
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
> This message and its contents (to include attachments) are the property of
Kmart Corporation (Kmart) and may contain confidential and proprietary
information. You are hereby notified that any disclosure, copying, or
distribution of this message, or the taking of any action based on
information contained herein is strictly prohibited. Unauthorized use of
information contained herein may subject you to civil and criminal
prosecution and penalties. If you are not the intended recipient, you should
delete this message immediately.
>
>
>
> ---------------------------------------------------------------------
> 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