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

Calling JSP page as URL in another JSP page

68 Views

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

/irj/WEB-INF/portal/portalapps/IResource_Use/page2.jsp

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.

Bhavyasri.M