tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Reynir Hübner <rey...@hugsmidjan.is>
Subject RE: servlet to jsp
Date Sun, 30 Sep 2001 20:35:53 GMT
u must use the requestDispatcher to forward the request onto the JSP
page from the servlet.

then you can use what ever in your JSP to access what ever beans your
servlet instanciates and puts into the request object.
request.putAttribute()


-----Original Message-----
From: Huaxin [mailto:hxzhang@cs.ualberta.ca]
Sent: 29. september 2001 21:11
To: tomcat-user@jakarta.apache.org
Subject: servlet to jsp


how can i create a bean in a servlet, and then the serlet
forward/include to a jsp, the jsp can read from the bean?

thanks a lot


Mime
View raw message