File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
not able to access the ServletContext path
bhaskarvignesh chandra sekaran
Joined: Jun 27, 2009
Jul 03, 2009 09:47:25
i have hosted a web application in
using Jsp/servlet. My problem is am not able to access the ServletContext path. My
<%@ page import="java.io.*"%> <html> <head> </head> <body> Web Application Context Path <% String s = getServletContext().getServletContextName(); if(s!=null) out.println(s); %> </body> </html>
My guess is that they have deployed my context app in a folder other than tomcat/web-app
how to access the my context
SCJP, SCWCD,preparing for SCDJWS
View my facebook profile
Author and ninkuma
Joined: Jan 10, 2002
Jul 03, 2009 10:38:57
Please do not cross-post the same question in multiple forums. It wastes people's time when multiple redundant conversations take place. Please
for more information.
Asking smart questions
Books by Bear
I agree. Here's the link:
subject: not able to access the ServletContext path
Tomcat 4 : How to deploy and run JSP and Servlets
Tomcat 404 error
initParam for EL not working
contextDestroyed- odd behaviour?
Servlet context in Tomcat Production server
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015