1. 程式人生 > >Jsp取得應用路徑

Jsp取得應用路徑

Returns the portion of the request URI that indicates the context of the request. The context path always comes first in a request URI. The path starts with a "/" character but does not end with a "/" character. For servlets in the default (root) context, this method returns "". The container does not decode this string.
Returns:
a String specifying theportion of the request URI that indicates the contextof the request