In fact, the JSP page or the regular servlet will be called with the
same request object. You may pass parameters from one to the other via
request.setAttribute and request.getAttribute.

The difference between <jsp:include and <jsp:forward is just that the
first one will return to your page, and not the second one

SC

"Kirkdorffer, Daniel" wrote:
>
> Craig,
>
> A question to you on your answer.  Having not dived into the newer spec,
> being a 0.91 user with WebSphere, when you say using <jsp:include> will
> include the outout from a servlet, what output would that be?  I assume that
> I'd have to pass any params my servlets typically expect via a GET approach
> in the URL.  Right?
>
> Dan
>
> > ----------
> > From:         Craig R. McClanahan[SMTP:[EMAIL PROTECTED]]
> > Reply To:     Craig McClanahan
> > Sent:         Wednesday, September 29, 1999 5:32 PM
> > To:   [EMAIL PROTECTED]
> > Subject:      Re: invoking servlet inside JSP
> >
> > Mary Wong wrote:
> >
> > > Is there support for invocation of the service() of a regular (ie.
> > > non-JSP-compiled) servlet inside a JSP page without explicitly calling
> > that
> > > service() in the JSP?  I am thinking of a feature similiar to the
> > <droplet
> > > bean=...> tag used in ATG Dynamo.
> > >
> >
> > I'm not familiar with Dynamo, but check out the <jsp:include> element --
> > it can be
> > used to include the output from a servlet (or a JSP page) in the output of
> > the
> > page containing this element, without ever having to acquire a reference
> > to the
> > servlet or call it's service() method yourself.
> >
> > >
> > > Thanks in advance,
> > > -Mary
> > >
> >
> > Craig McClanahan
> >
> > ==========================================================================
> > =
> > To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> > JSP-INTEREST".
> > FAQs on JSP can be found at:
> >  http://java.sun.com/products/jsp/faq.html
> >  http://www.esperanto.org.nz/jsp/jspfaq.html
> >
>
> ===========================================================================
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
> FAQs on JSP can be found at:
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html

--
_______________________________________________________________________
    ----  ----  -     ---   Stephane Cachat - Developpement JAVA
   /     /  /  /      /     email : [EMAIL PROTECTED]
  ----  /  /  /      /      tel : +33 (4) 72 69 59 00
    /  /\ /  /      /       fax : +33 (4) 72 69 59 01
----  ---\  ----  ---       SQLI - 66 quai Ch. de Gaulle - 69006 LYON

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
FAQs on JSP can be found at:
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html

Reply via email to