Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

org.apache.catalina.Context

Posted on 2014-12-15
6
Medium Priority
?
74 Views
Last Modified: 2015-01-05
Within a servlet, how can one obtain a reference to org.apache.catalina.context?

Thanks,
Mike
0
Comment
Question by:thready
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
6 Comments
 
LVL 62

Expert Comment

by:gheist
ID: 40502422
getServletcontext() ?
0
 
LVL 1

Author Comment

by:thready
ID: 40521216
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
 
LVL 62

Expert Comment

by:gheist
ID: 40521462
getServletContext

    ServletContext getServletContext()

    Return the servlet context for which this Context is a facade.
0
How Blockchain Is Impacting Every Industry

Blockchain expert Alex Tapscott talks to Acronis VP Frank Jablonski about this revolutionary technology and how it's making inroads into other industries and facets of everyday life.

 
LVL 1

Author Comment

by:thready
ID: 40521733
Again, that's javax.servlet.servlet context, not the one I'm looking for...
0
 
LVL 62

Accepted Solution

by:
gheist earned 2000 total points
ID: 40521942
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
 
LVL 1

Author Closing Comment

by:thready
ID: 40532868
Thanks
0

Featured Post

Turn your laptop into a mobile console!

The CV211 Laptop USB Console Adapter provides a direct Laptop-to-Computer connection for fast and easy remote desktop access with no software to install.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you are a web developer, you would be aware of the <iframe> tag in HTML. The <iframe> stands for inline frame and is used to embed another document within the current HTML document. The embedded document could be even another website.
Java functions are among the best things for programmers to work with as Java sites can be very easy to read and prepare. Java especially simplifies many processes in the coding industry as it helps integrate many forms of technology and different d…
Viewers learn how to read error messages and identify possible mistakes that could cause hours of frustration. Coding is as much about debugging your code as it is about writing it. Define Error Message: Line Numbers: Type of Error: Break Down…
This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.
Suggested Courses

722 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question