On Fri, 13 Aug 2004 13:50:56 -0700, Michael Finger
<[EMAIL PROTECTED]> wrote:
> >> This question came up when I was digging up info on
> RequestDispatcher
> >> forward vs. include and found refrences to these attributes,
> >> but no real
> >> examples.   Does struts still support the forward and include
> >> attributes
> ?> as a legacy or a servlet api spec thing? Or what?
> 
> >I'm confused.....  what's your confusion about? :)
> 
> 
> Why does the forward attribute exist? (I'm having to tweak the
> RequestDispatcher class a little bit and noticed how the process method
> was written)
> 

They are stil supported.

The original motivation was to allow you some flexibility in how
actions (from the viewpoint of the rest of the application) are
implemented ... for example, if you have a charting servlet available,
and it accepts request parameters to configure it's behavior, you
could leverage the validation part of Struts to check the request
parameters, but forward to the charting servlet in order to actually
produce the graph.

Craig

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

Reply via email to