One other point to consider is that adding a parameter to the request could 
result in multiple single parameter values if the parameter already existed in 
the request. Depending on your app, you may or may not want that, but it could 
be useful if you needed to retain previous values for a given parameter. There 
are arguably better ways to get the same result, but it could be used for 
example for something like building a breadcrumb trail in simple apps. 

On Nov 8, 2012, at 4:01 PM, Mike McNally <emmecin...@gmail.com> wrote:

> OK thanks.  I think I like the idea of a request attribute better too; it's 
> less dependent on each bean.
> 
> In my case I've got a single-page app with the history managed at the client, 
> so the server doesn't generally worry about it too much.
> 
> On Thu, Nov 8, 2012 at 3:55 PM, Shawn Church <sh...@redarbor.com> wrote:
> Yes, the target will see the parameters as usual, but I normally set
> an http attribute rather than adding a parameter if I really need to
> forward rather than redirect.  For the sake of back-button safety I
> avoid server-side fowards when possible, but I'm sure there are times
> when it's appropriate.
> 
> The servlet container is responsible for handling all the low-level
> bundling of parameters if you add a parameter to the request.
> 
> Shawn
> 
> 
> Quoting Mike McNally <emmecin...@gmail.com>:
> 
> > If I return a ForwardResolution from an action, and I've called
> > "addParameter()" on that ForwardResolution instance to add a parameter or
> > two, should I expect the target ('forwarded-to") ActionBean to "see" the
> > parameters as if they were really there in the HTTP request?
> >
> > I'm kind-of fuzzy on the semantics of how forwarding works.
> >
> >
> > --
> > Turtle, turtle, on the ground,
> > Pink and shiny, turn around.
> >
> 
> 
> 
> ------------------------------------------------------------------------------
> Everyone hates slow websites. So do we.
> Make your web apps faster with AppDynamics
> Download AppDynamics Lite for free today:
> http://p.sf.net/sfu/appdyn_d2d_nov
> _______________________________________________
> Stripes-users mailing list
> Stripes-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/stripes-users
> 
> 
> 
> -- 
> Turtle, turtle, on the ground,
> Pink and shiny, turn around.
> ------------------------------------------------------------------------------
> Everyone hates slow websites. So do we.
> Make your web apps faster with AppDynamics
> Download AppDynamics Lite for free today:
> http://p.sf.net/sfu/appdyn_d2d_nov
> _______________________________________________
> Stripes-users mailing list
> Stripes-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/stripes-users
------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_nov
_______________________________________________
Stripes-users mailing list
Stripes-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/stripes-users

Reply via email to