Solved

org.apache.catalina.Context

Posted on 2014-12-15
6
62 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
Salesforce Has Never Been Easier

Improve and reinforce salesforce training & adoption using WalkMe's digital adoption platform. Start saving on costly employee training by creating fast intuitive Walk-Thrus for Salesforce. Claim your Free Account Now

 
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

MIM Survival Guide for Service Desk Managers

Major incidents can send mastered service desk processes into disorder. Systems and tools produce the data needed to resolve these incidents, but your challenge is getting that information to the right people fast. Check out the Survival Guide and begin bringing order to chaos.

Question has a verified solution.

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

Suggested Solutions

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). #…
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
Viewers learn about the “while” loop and how to utilize it correctly in Java. Additionally, viewers begin exploring how to include conditional statements within a while loop and avoid an endless loop. Define While Loop: Basic Example: Explanatio…
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 …
Suggested Courses

738 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