How do I get the URL of a .jsp (portlet)?
I have a view.开发者_开发技巧jsp and I want to load another .jsp via AJAX and need the URL of this .jsp. How do I get it?
You can use request
variable to get access to instance of HttpServletRequest and the use getRequestURI
method to construct URL to another JSP by replacing view.jsp with desired value.
精彩评论