See code added below.

--- carnell <[EMAIL PROTECTED]> wrote:
> If in my JSP page, say bookholiday.jsp, I would like to include
> output from
> bookholidayshow servlet...
> 
> bookholiday.jsp:
> <html>
> <include body/various menus and stuff>
> <%
 RequestDispather rd = request.getRequestDispatcher("bookholidayshow");
 if (rd != null)
     rd.include(request, resource);
> %>
> </body>
> </html>
> 
> bookholidayshow.java(class/servlet)
> doGet(...)
> {
>     out.println... etc..
> }
> 
> But how do I use RequestDispatcher in the JSP? Can't make much sense
> of the
> docs.
> 
> ----- Original Message -----
> From: "Wyn Easton" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Tuesday, November 14, 2000 12:38 PM
> Subject: Re: Integrating servlet output into JSP
> 
> 
> > This may be over simplifying your problem, but have you looked
> > at the RequestDispather include() method?
> > It allows you to use the output of another servlet/JSP in the
> current
> > servlet/JSP.
> >
> > --- carnell <[EMAIL PROTECTED]> wrote:
> > > I am currently migrating two projects that we have, both in
> Servlets
> > > into
> > > JSP.
> > >
> > > Rather than rewriting everything into Model 2/with JSP
> architecture,
> > > is it
> > > possible for me to write a JSP page that includes the output of
> the
> > > Servlet(which make use of out.println a lot etc). I could simply
> > > remove the
> > > outs in the Servlet which generate the html/body/end body/end
> html
> > > HTML
> > > tags.?
> > >
> > > Thanks,
> > >
> > > Craig.
> > >
> >
> >
> > =====
> > Wyn Easton
> > [EMAIL PROTECTED]
> >
> > __________________________________________________
> > Do You Yahoo!?
> > Yahoo! Calendar - Get organized for the holidays!
> > http://calendar.yahoo.com/
> >
> 


=====
Wyn Easton
[EMAIL PROTECTED]

__________________________________________________
Do You Yahoo!?
Yahoo! Calendar - Get organized for the holidays!
http://calendar.yahoo.com/

Reply via email to