Skip to Content
0
Former Member
Nov 15, 2007 at 04:44 AM

how to call jsp from another jsp

48 Views

Hi, All,

I have several jsp files in my pagelet. I need to put a link in one jsp file. When client click the link, it will show another jsp file. Could anybody tell me how to do that? i have tried to use following code in page1.jsp,

IPortalComponentURI componentURI= componentRequest.createPortalComponentURI();

componentURI.setContextName("pagelet/page2.jsp");

String docuri = componentURI.toString();

<body>

click '<a href="<%=docuri %> ">here</a>' to link to pages.

But it does not work. Any help will be great appreciated.

Marea

Message was edited by:

Marea Yang

Message was edited by:

Marea Yang