You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Michael <to...@meinsenf.at> on 2001/11/21 17:34:01 UTC
ServletContext - PLS HELP!!
Hi!
Can you help me, in what I'm doing wrong?
I set an attribute in the servletcontext:in the initmethod!
i can access the object using: config.getServletContext().getAttribute("test")
but not
request.getAttribute("test")
WHY???
how to access this attribute if I only know the HttpServletRequest-object but not the HttpServlet-object, though I know the contextpath (request.getContextPath())???
thanks
michi