Shakeel wrote:
>In your example for Struts beta2 you show that the collections of
>label and value is initialized in the Action.
>Is it better to perform this functionality in the ActionForm>
bean?

You could, but by keeping it in a context instead, you have the 
option of placing the list in application scope if it will apply 
to a number of forms. 

A cool technique in that regard is to put the "default" chrome in 
application scope. Then, if you need to override it for a user or 
a single page,  you can pop a replacement into session or request 
scope. The scopes are searched in page/request/session/application 
order, so the "closest" one wins.

-Ted.



--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to