IBM WAS actually supports JSP 0.91, not 0.92.

You can do something like the following in your servlet:

try {
    ((HttpServiceRequest)req).setAttribute("myBean", myBean);
    ((HttpServiceResponse)resp).callPage("/MyPage.jsp", req);
} catch (Exception e) {
}

And then in the JSP page you reference the bean like so:

<BEAN NAME="myBean" TYPE="com.whatever.MyBeanClass" introspect="no"
create="no" scope="request"></BEAN>

Then reference properties of the bean in expressions like so:

<%= myBean.getMyProperty() %>

etc...

Dan
--
Daniel Kirkdorffer
NACN IS: 425-580-6225
Sr. Consultant, Syllogistics LLC
Email: [EMAIL PROTECTED]
Web:   http://www.syllogistics.com/

> ----------
> From:         Ashok MAdhavan[SMTP:[EMAIL PROTECTED]]
> Reply To:     Ashok MAdhavan
> Sent:         Wednesday, July 14, 1999 9:36 PM
> To:   [EMAIL PROTECTED]
> Subject:      Comm. between Servlet and JSP using bean in IBM Websphere
>
> Hi all,
>
> I am using IBM websphere WAS. I am using servlet for control and jsp
> for display. I know how to pass data from a servlet to a jsp using bean
> for JSP spec 1.0.
> but IBM WAS supports spec 0.92 only. does anybody know how to go about
> it.
>
> Regards
>
> M.Ashok
> _________________________________________________________
> Do You Yahoo!?
> Get your free @yahoo.com address at http://mail.yahoo.com
>
> ==========================================================================
> =
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the
> body
> of the message "signoff JSP-INTEREST".  For general help, send email to
> [EMAIL PROTECTED] and include in the body of the message "help".
>

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JSP-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to