"<a href=\"" + httpServletResponse.encodeURL("dir/sample.jsp") + "\">Sample</a>"
<session-descriptor> <session-param> <param-name>URLRewritingEnabled</param-name> <param-value>true</param-value> </session-param> <session-param> <param-name>WAPEnabled</param-name> <param-value>true</param-value> </session-param> </session-descriptor>