This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Servlets and the fly likes Where is the context path ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Where is the context path ?" Watch "Where is the context path ?" New topic

Where is the context path ?

Hussein Baghdadi
clojure forum advocate

Joined: Nov 08, 2003
Posts: 3479

As you all know, each Java web application has a context.
To access our web application at out machine, we wrote :
but in actual deployment (Internet), we wrote :
Where did the conext go ?
(well, I'm not sure if this forum is suitable, Sorry)..
Ben Souther

Joined: Dec 11, 2004
Posts: 13410

Sounds like your app was configured to be the default webapp on that server.
Meaning the context path was "".

Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
I agree. Here's the link:
subject: Where is the context path ?