org.apache.catalina.Context

Within a servlet, how can one obtain a reference to org.apache.catalina.context?

Thanks,
Mike
LVL 1
threadyAsked:
Who is Participating?
 
gheistCommented:
catalina context is implementation of servlet context. you should call servlet context API and never directly implementation (Think about jetty, jboss, and more expensive options)
0
 
gheistCommented:
getServletcontext() ?
0
 
threadyAuthor Commented:
sorry, I thought I responded to this - that's not an org.apache.catalina.Context, that's a javax.servlet.Context.  That was my first guess too though...  :)
0
Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

 
gheistCommented:
getServletContext

    ServletContext getServletContext()

    Return the servlet context for which this Context is a facade.
0
 
threadyAuthor Commented:
Again, that's javax.servlet.servlet context, not the one I'm looking for...
0
 
threadyAuthor Commented:
Thanks
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.