You make mention to this technique as being model 2.
This make me assume that this should be documented somewhere.
Can you point me to a few resources?
I have thought that I could merely store the bean data in the session.
But I wasn't sure how exactly to store it/how to get it from the jsp.
Also, if I instantiate a bean in the servlet then include the jsp then
it would be available?
d.
Trevor Squires wrote:
>
> Despite other people recommending that you checkout project 'X' or project
> 'Y' api, perhaps you should first look at the servlet/jsp api.
>
> You have three contexts to play with for intra-servlet communication
> (after all a jsp is just a servlet), application, session and request.
>
> The simplest thing you can do is read the javadoc for HttpServletRequest,
> namely the [get|set]Attribute calls.
>
> I can't say that this is the "best" way to communicate between your
> servlet and your JSP but if you're new to model 2 (which is what you are
> describing) it is definately the "first" way you should try.
>
> Trevor
>
> On Wed, 10 Jan 2001, dferugson wrote:
>
> > I would like to use servlets for my jndi and communication to my ejb and
> > I would like the servlet to somehow place information given to it from
> > the ejb into a javaBean that can then be used by the jsp. This way jsp
> > developers need to know nothing about ejb.
> >
> > What is the best way to have the servlet pass to the jsp?
> >
> > Thanks.
> >
>
> --
> --------------------------------------------------------------
> To subscribe: [EMAIL PROTECTED]
> To unsubscribe: [EMAIL PROTECTED]
> List Help?: [EMAIL PROTECTED]
--
Doug Ferguson
Software Developer
www.coremetrics.com
512-342-2623x212
512-619-9972(cell)
--
--------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
List Help?: [EMAIL PROTECTED]