In an Action class I am writing, I would like to be able to get the
real physical path to the web app. Eg: C:/webserver/webapp/instance

According to the docs, the request.getRealPath("instance") is going
away. It looks like the ServletContext would work, but I do not know
how to get the context from an Action class.


/java docs
public java.lang.String getRealPath(java.lang.String path)

Deprecated. As of Version 2.1 of the Java Servlet API, use
ServletContext.getRealPath(java.lang.String) instead.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to