bonjour

My JSP work well with the three servlet container :
( JSP 1.2 and  SERVLET 2.3 )
resin 2.01
tomcat 4.0b5
ServletExec 4.0

but if I code in the JSP something like that :
getServletContext().setAttribute("xdbf",adbf);
DBF adbf = (DBF)getServletContext().getAttribute("xdbf");

It works well with tomcat and resin but not with servletexec


if I code the same like that  ( I add getServletConfig() ) :

getServletConfig().getServletContext().setAttribute("xdbf",adbf);
DBF adbf = (DBF)getServletConfig().getServletContext().getAttribute("xdbf");

it works well with the three !!

which is the right code in the new api 2.3 of servlet ?
getServletConfig() is not necessary in this case for Tomcat, the reference
?? but necessary with an other servlet container ??

CH

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to