>-----Original Message-----
>From: Caldarale, Charles R [mailto:[email protected]]
>Subject: RE: parallel deployment question
>
>> From: Leo Donahue - OETX [mailto:[email protected]]
>> Subject: RE: parallel deployment question
>
>> I guess I thought it would get the path name from the name of the .war file.
>
>Read the doc:
>http://tomcat.apache.org/tomcat-7.0-doc/config/context.html#Naming
>
" If a version is specified then the context path remains unchanged (the path
being demo) and both the **context name** and the base name have the string
'##' appended to them followed by the version identifier"
I thought the context name would be demo##001 after reading this. That last
line of Java code just prints demo.
protected void doGet(HttpServletRequest request, HttpServletResponse
response) throws ServletException, IOException {
ServletContext servletContext = getServletContext();
PrintWriter out = response.getWriter();
out.write("getContextPath(): " +
servletContext.getContextPath());
out.write("\n");
out.write("getRealPath-getServletName: " +
servletContext.getRealPath(getServletName()));
out.write("\n");
out.write("getServletContextName: " +
servletContext.getServletContextName());
out.write("\n");
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]