Solved

org.apache.catalina.Context

Posted on 2014-12-15
6
50 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
Comment Utility
getServletcontext() ?
0
 
LVL 1

Author Comment

by:thready
Comment Utility
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
Comment Utility
getServletContext

    ServletContext getServletContext()

    Return the servlet context for which this Context is a facade.
0
How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

 
LVL 1

Author Comment

by:thready
Comment Utility
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
Comment Utility
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
Comment Utility
Thanks
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

If your site has a few sections that need to be secure when data is transmitted between the server and local computer, such as a /order/ section for ordering or /customer/ which contains customer data, etc it would of course be recommended to secure…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
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…
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:

772 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

16 Experts available now in Live!

Get 1:1 Help Now