tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael" <tom...@meinsenf.at>
Subject ServletContext - PLS HELP!!
Date Wed, 21 Nov 2001 16:34:01 GMT
 
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 

Mime
View raw message