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 …

via Java Application Development Tutorial » Search Results » ajax:

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.

For more info: How do I get the URL of a .jsp (portlet)?

Java Application Development Tutorial » Search Results » ajax

How do I get the URL of a .jsp (portlet)?

Share this post:

Related Posts

Leave a Comment