Solved

org.apache.catalina.Context

Posted on 2014-12-15
6
53 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
  • 3
  • 3
6 Comments
 
LVL 61

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 61

Expert Comment

by:gheist
ID: 40521462
getServletContext

    ServletContext getServletContext()

    Return the servlet context for which this Context is a facade.
0
DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

 
LVL 1

Author Comment

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

Accepted Solution

by:
gheist earned 500 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

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

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

Suggested Solutions

For beginner Java programmers or at least those new to the Eclipse IDE, the following tutorial will show some (four) ways in which you can import your Java projects to your Eclipse workbench. Introduction While learning Java can be done with…
It is possible to boost certain documents at query time in Solr. Query time boosting can be a powerful resource for finding the most relevant and "best" content. Of course the more information you index, the more fields you will be able to use for y…
Video by: Michael
Viewers learn about how to reduce the potential repetitiveness of coding in main by developing methods to perform specific tasks for their program. Additionally, objects are introduced for the purpose of learning how to call methods in Java. Define …
This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.

930 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now