Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Is request.getContextPath() necessary?

843836Feb 4 2004 — edited Apr 18 2008
I used to start a URL with request.getContextPath() for navigating any JSP files inside of the application. Since I can't pass it into a Javascript, I have a URL without it. The approach seems working so far. Does that mean that it isn't necessary to start a URL with request.getContextPath() ?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 16 2008
Added on Feb 4 2004
6 comments
2,842 views