Mark,
You need to get the attribute from the session, not the request.  In the
JSP, use session.getAttribute(......).

and in the controller, use, session.setAttribute().


Regards,
Richard

At 01:36 PM 1/3/2002 -0500, you wrote:
>Yep, and it works for named instances created in the Controller servlet, but
>not for the bean class from within Controller.  So, for instance (pun
>intended(, if I
>
>     String string = "This works";
>     req.setAttribute( "myString", string);
>
>from Controller, I can getAttribute from the JSP and display it as HTML.
>But, given a JavaBean class MyBean the properties of which are set by
>RecordSet values by a DAO class SQLgateway,
>
>     req.setAttribute( "MyBean", MyBean);
>
>from Controller yields "null" (in HTML) for each getAttribute in the JSP.
>
>
>Mark
>
>-----Original Message-----
>From: Richard Yee
>Sent: Thursday, January 03, 2002 11:50 AM
>
>Mark,
>Do you have a setAttribute("userbean", userBean); anywhere?
>
>Regards,
>
>Richard
>
>___________________________________________________________________________
>To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
>of the message "signoff SERVLET-INTEREST".
>
>Archives: http://archives.java.sun.com/archives/servlet-interest.html
>Resources: http://java.sun.com/products/servlet/external-resources.html
>LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to