开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜