This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
The moose likes Tomcat and the fly likes how to get Context information inside a class? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "how to get Context information inside a class?" Watch "how to get Context information inside a class?" New topic
Author

how to get Context information inside a class?

bengt hammarlund
Ranch Hand

Joined: Oct 17, 2003
Posts: 78
I need to get the context path inside a POJO running at Tomcat.
Is there a way to do it without having to pass the session object or the context instance?


<b><i>Bengt Hammarlund</i><br />� Sun Certified Java Programmer</b>
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to get Context information inside a class?
 
Similar Threads
getRequestDispatcher() method
How to get DISK absolute path according URL
passing session values between two web application
How to play audio using this code in Grid View
RequestDispatcher in servletcontext