You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Mahesh Agarwal <ma...@erunway.com> on 2001/10/06 19:42:08 UTC

how do u pass the data to jsp


hi

can anyone pls tell me how to pass the data to jsp(that is to fill up the
dynamic data in jsp).

will the jsp directly contact model to get the data or controller servlet
will get the data from model and pass the data to jsp,,,

waiting for a detail reply

thanks and regards
mahesh

Re: how do u pass the data to jsp

Posted by Ted Husted <hu...@apache.org>.
The best thing is to pass it in the request context (convenient passed
to Action.perform by the controller). 

The Struts tags are designed to help you retrieve information passed
through the request context.

So, the Action retrieves data from the model, and then passes it to the
view as part of the request. The view retrieves the data from the
request, using the tag extensions. 

-- Ted Husted, Husted dot Com, Fairport NY USA.
-- Custom Software ~ Technical Services.
-- Tel +1 716 737-3463
-- http://www.husted.com/struts/


Mahesh Agarwal wrote:
> 
> hi
> 
> can anyone pls tell me how to pass the data to jsp(that is to fill up the
> dynamic data in jsp).
> 
> will the jsp directly contact model to get the data or controller servlet
> will get the data from model and pass the data to jsp,,,
> 
> waiting for a detail reply
> 
> thanks and regards
> mahesh