On 08-10-2009 at 15:53, Steve Miller wrote:
> We currently have a bunch of code that uses plain old servlets that
> forward to JSPs. The JSPs use JSTL to access a lot of variables. For
> the view only jsps, would you recommend adding setters in the
> subclassed ActionBeanContext (such as setRequestAttribute()) so I can
> set these variables. Or is it better to create getters on the
> ActionBean for each variable and change all the jstl to
> ${actionBean.myvar1} from ${myvar1}.

The first option is best for values that need to be available on all pages.
The second option is best for values that need to be available on that page 
only.


Oscar

-- 
   ,-_
  /() ) Oscar Westra van Holthe - Kind      http://www.xs4all.nl/~kindop/
 (__ (
=/  ()  Don't let your boss fuck you; that's anti-capitalist.

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Stripes-users mailing list
Stripes-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/stripes-users

Reply via email to