----------------------------------------------------------------
BEFORE YOU POST, search the faq at <http://java.apache.org/faq/>
WHEN YOU POST, include all relevant version numbers, log files,
and configuration files.  Don't make us guess your problem!!!
----------------------------------------------------------------

Hello,

We are considering to port our system from WebSphere 2 to JServe. A typical
request is served by
a servlet that does all the necessary back-end operations and then invokes
the appropriate JSP to
generate the HTML page. The JSP is passed a bean that contains the dynamic
data for that page.

How does a JSP can be invoked from a servlet in JServe ? Our current JSP
invocation code is listed below, is there and equivalent method in JServe ?


---------- this is how we do it in WebSphere

      com.sun.server.http.HttpServiceRequest implHttpRequest =   // cast
request to implHttpRequest
            ((com.sun.server.http.HttpServiceRequest) httpRequest);

      implHttpRequest.setAttribute("myBean", myBean);  // associate the bean
with the request. This
                                                       // allows the JSP to
access it

      com.sun.server.http.HttpServiceResponse implHttpResponse =  // cast
response to  implHttpResponse
                    ((com.sun.server.http.HttpServiceResponse)
httpResponse);

      implHttpResponse.callPage(jspPagePath, httpRequest);  // invoke the
JSP to generate the HTML page

----------

Thanks,

Tal
[EMAIL PROTECTED]

> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of Chris
> Roberts
> Sent: Friday, September 22, 2000 8:20 AM
> To: [EMAIL PROTECTED]
> Subject: Re: apache with tomcat
>
>
> ----------------------------------------------------------------
> BEFORE YOU POST, search the faq at <http://java.apache.org/faq/>
> WHEN YOU POST, include all relevant version numbers, log files,
> and configuration files.  Don't make us guess your problem!!!
> ----------------------------------------------------------------
>
> Excellent question! But you might want to post it to the Tomcat
> discussion
> located at jakarta.apache.org.
>
>
> >From: Erwan TROEL <[EMAIL PROTECTED]>
> >Reply-To: "Java Apache Users" <[EMAIL PROTECTED]>
> >To: [EMAIL PROTECTED]
> >Subject: apache with tomcat
> >Date: Fri, 22 Sep 2000 16:31:05 +0200
> >
> >----------------------------------------------------------------
> >BEFORE YOU POST, search the faq at <http://java.apache.org/faq/>
> >WHEN YOU POST, include all relevant version numbers, log files,
> >and configuration files.  Don't make us guess your problem!!!
> >----------------------------------------------------------------
> >
> >  I suppose i succeed in installing apache and tomcat  running together ,
> >  i suppose because how can i know if it's good?
> >
> >
> >--
> >--------------------------------------------------------------
> >Please read the FAQ! <http://java.apache.org/faq/>
> >To subscribe:        [EMAIL PROTECTED]
> >To unsubscribe:      [EMAIL PROTECTED]
> >Search Archives:
> ><http://www.mail-archive.com/java-apache-users%40list.working-dogs.com/>
> >Problems?:           [EMAIL PROTECTED]
> >
>
> _________________________________________________________________________
> Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
>
> Share information about yourself, create your own public profile at
> http://profiles.msn.com.
>
>
>
> --
> --------------------------------------------------------------
> Please read the FAQ! <http://java.apache.org/faq/>
> To subscribe:        [EMAIL PROTECTED]
> To unsubscribe:      [EMAIL PROTECTED]
> Search Archives:
> <http://www.mail-archive.com/java-apache-users%40list.working-dogs.com/>
> Problems?:           [EMAIL PROTECTED]
>
>



--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Search Archives: 
<http://www.mail-archive.com/java-apache-users%40list.working-dogs.com/>
Problems?:           [EMAIL PROTECTED]

Reply via email to