tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "KY K Lui" <kyluitomc...@mailcity.com>
Subject use servlet context in a bean
Date Sat, 27 May 2000 16:21:24 GMT
i want to use bean in my jsp page.

I have a application scope bean which has id="beanid"

How can other bean access this application bean?
can i use "getServletContext().getAttribute("beanid");"?
however if i use this, my bean needs to extends HttpServlet.

i like a servlet rather than a bean.......
am i right?

thanks


Get your FREE Email at http://mailcity.lycos.com
Get your PERSONALIZED START PAGE at http://my.lycos.com

Mime
View raw message