tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrew Cathrow" <acath...@seagull.nl>
Subject RE: Quick Bean Example
Date Tue, 04 Apr 2000 08:52:19 GMT
Here's a rough cut


javax.servlet.http.HttpSession httpSession = request.getSession(true);
MyBean  bnBean = null;
bnBean = (MyBean) java.beans.Beans.instantiate(getClass().getClassLoader(),
"com.mycompany.MyBean");
httpSession.putValue("bnBean", bnBean);
bnBean.setName("Andy");
getServletConfig().getServletContext().getRequestDispatcher("/test.jsp").for
ward(request, response);

regards,
Aic

-----Original Message-----
From: Chris Bruce [mailto:chrisabruce@yahoo.com]
Sent: 04 April 2000 02:36
To: tomcat-user@jakarta.apache.org
Subject: Quick Bean Example


Can someone give me a quick example of how to pass a bean to a jsp page
from a servlet?  Any help or info would be appreciated.


Thanks,

Chris Bruce

__________________________________________________
Do You Yahoo!?
Talk to your friends online with Yahoo! Messenger.
http://im.yahoo.com

--------------------------------------------------------------------------
To unsubscribe, email: tomcat-user-unsubscribe@jakarta.apache.org
For additional commmands, email: tomcat-user-help@jakarta.apache.org


Mime
View raw message