path
may also be a relative path ("images/myimage.gif"), in which case it is a url to a resource in the current "portal", typically a path relative to the current webapp. Allowing a relative path is an extension of the behaviour defined by the portlet specification. The returned URL is always an absolute url. Some browsers do not understand relative url's supplied for certain parameters (such as the location of css files).
@return an absolute URL
@see javax.portlet.PortletResponse#encodeURL
For robust session tracking, all URLs emitted by a servlet should be run through this method. Otherwise, URL rewriting cannot be used with browsers which do not support cookies. @param url the url to be encoded. @return the encoded URL if encoding is needed;the unchanged URL otherwise.
It resolves "*" contained in URI, if any, to the proper Locale, and the browser code. Refer to {@link org.zkoss.web.servlet.Servlets#locate(javax.servlet.ServletContext,ServletRequest,String,org.zkoss.util.resource.Locator)}for details. @param uri it must be empty or starts with "/". It might contain"*" for current browser code and Locale. @return the complete URL (excluding the machine name).It includes the context path and the servelt to interpret this extended resource.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|