struts-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ted Husted <hus...@apache.org>
Subject Re: DO NOT REPLY [Bug 5395] New: - ActionContext class
Date Fri, 14 Dec 2001 20:21:17 GMT
One implementation issue is what to call the thing in the request
context. 

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:struts-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-dev-help@jakarta.apache.org>


Mime
View raw message