You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Ayusman dikshit <Ay...@infosys.com> on 2006/05/23 17:17:59 UTC
servlet context of an jsp page.
Hi All,
Please correct me if I am wrong.
1)Does tomcat 5.5 also provide an implementation of jsp specs?
2) In side an jsp if I write
this.getClass().getName() then
the class name I get is an implementation of servlet only? (I get
something like org.apache.jsp_myjspname)
So can I get the servlet config object of this class by doing
this.getServletConfig() ???
and the context of this jsp page (or class) by doing
this.getServletConfig().getServletContext() ???
Please suggest.
TIA
Ayusman
**************** CAUTION - Disclaimer *****************
This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely for the use of the addressee(s). If you are not the intended recipient, please notify the sender by e-mail and delete the original message. Further, you are not to copy, disclose, or distribute this e-mail or its contents to any other person and any such actions are unlawful. This e-mail may contain viruses. Infosys has taken every reasonable precaution to minimize this risk, but is not liable for any damage you may sustain as a result of any virus in this e-mail. You should carry out your own virus checks before opening the e-mail or attachment. Infosys reserves the right to monitor and review the content of all messages sent to or from this e-mail address. Messages sent to or from this e-mail address may be stored on the Infosys e-mail system.
***INFOSYS******** End of Disclaimer ********INFOSYS***
Re: servlet context of an jsp page.
Posted by Mark Thomas <ma...@apache.org>.
Ayusman dikshit wrote:
> 1)Does tomcat 5.5 also provide an implementation of jsp specs?
Read http://tomcat.apache.org/
> the class name I get is an implementation of servlet only? (I get
> something like org.apache.jsp_myjspname)
The class hierarchy is something like:
yourjsp_jsp extends org.apache.jasper.runtime.HttpJspBase
org.apache.jasper.runtime.HttpJspBase extends javax.servlet.httpHttpServlet
> So can I get the servlet config object of this class by doing
Read the servlet spec.
http://java.sun.com/products/servlet/reference/api/index.html
Mark
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org