Solved

org.apache.catalina.Context

Posted on 2014-12-15
6
69 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
What Is Blockchain Technology?

Blockchain is a technology that underpins the success of Bitcoin and other digital currencies, but it has uses far beyond finance. Learn how blockchain works and why it is proving disruptive to other areas of IT.

 
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 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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

If you've heard about htaccess and it sounds like it does what you want, but you're not sure how it works... well, you're in the right place. Read on. Some Basics #1. It's a file and its filename is .htaccess (yes, with a dot in the front). #…
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.
Suggested Courses

635 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