Skip to Content
Former Member
Jul 11, 2008 at 09:51 AM

Calling JSP page as URL in another JSP page


Hi All,

I want to present the jsp file as an URl on another JSP file.

For that I have done like this.


IResource rs = componentRequest.getResource(IResource.JSP, "page2.jsp");

String JSP_URL = rs.getResourceInformation().getURL(componentRequest);


<_a href="<%=JSP_URL%>">Page2</a>

when I print the JSP_URL, it is giving the path as


But while accessing through URL, it is giving the following error.

Directory web-inf is not accessible for browsing.

Can anybody tell me how to access the jsp page.

Thanks in advance.