my dog learned polymorphism
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 Java Interview Guide this week in the Jobs Discussion 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 ?
It's not a secret anymore!