On Fri, 14 Dec 2001, Ted Husted wrote:

> Date: Fri, 14 Dec 2001 15:21:17 -0500
> From: Ted Husted <[EMAIL PROTECTED]>
> Reply-To: Struts Developers List <[EMAIL PROTECTED]>
> To: Struts Developers List <[EMAIL PROTECTED]>
> Subject: Re: DO NOT REPLY [Bug 5395] New:  - ActionContext class
>
> One implementation issue is what to call the thing in the request
> context.
>

It wouldn't be hard to make that configurable.

> I have this set to be configurable from the web.xml. For lack of a
> better idea, I'm calling the parameter "shared" -- the idea it being our
> shared resources.
>
> For a default, I started with the usual,
>
> Action.CONTEXT_KEY = "org.apache.stuts.action.ACTION_CONTEXT"
>
> but would expect most people would change that for use in a template ;-)
>
> In our Velocity testing, I was calling it "get" since that looked pretty
> cool:
>
> <title>$get.message("index.title")</title>
>
> and
>
> <a href='$get.link("/logon")'> ...
>
> So, in my working example, we have
>
>     <init-param>
>       <param-name>shared</param-name>
>       <param-value>get</param-value>
>     </init-param>
>
> as part of the ActionSerlvet init.
>
> "Craig R. McClanahan" wrote:
> > +1.
> >
> > It will also lend itself to improving support for the "multiple
> > controllers in one webapp" use case, where each controller would operate
> > its own ActionContext.
>
> --
> To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
>
>


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

Reply via email to