You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by Hubert Rabago <ja...@yahoo.com> on 2003/12/17 22:33:23 UTC
Re: Context attributes (was: Struts 2.0 Discussion Forum)
What about allowing Action objects to add the parameters themselves? It adds a
great deal of flexibility, and doesn't limit the set of parameters that can be
used, nor does it require using the request or session attributes.
ActionForward forward = mapping.findForward("lookup");
forward.addParameter("param1","value1");
forward.addParameter("param2",2);
forward.addParameter("param3",3.0);
return forward;
Or maybe support for both (merge and addParameter).
This will also make bug 866 go away.
--- Ted Husted <hu...@apache.org> wrote:
> Don Brown wrote:
> > Is there one? I have several ideas I'd like to toss into the
> > discussion.
> >
> > Don
>
> There's a Whiteboard page in the Wiki.
>
> http://nagoya.apache.org/wiki/apachewiki.cgi?StrutsWhiteboard
>
> I'll be posting more about Jericho, but wanted to get what I had so far
> (a starter DTD) under CVS.
>
> One other idea that I've been meaning to bring up in the wake of
> wildcard Mappings, is the idea of merging context attributes into
> ActionForward paths. For example, we could do something like
>
> <forward name="lookup" merge="true" path="/lookup.do?key={key}" />
>
> and have it replace {key} with request.getAttribute("key") (or session
> if not found).
>
> -Ted.
>
__________________________________
Do you Yahoo!?
New Yahoo! Photos - easier uploading and sharing.
http://photos.yahoo.com/
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-dev-help@jakarta.apache.org