Skip to Content
0
Former Member
Jan 12, 2006 at 12:36 PM

Opening 1 jsp from another

13 Views

Hi,

I am opening one jsp on click of a button of another.

Button's even code is here:

InputField txt = (InputField) this.getComponentByName("InputName");
	IPortalComponentRequest req = (IPortalComponentRequest) this.getRequest();
	IPortalComponentResponse res = (IPortalComponentResponse) this.getResponse();
req.getComponentSession().putValue("openurl", "Yes");

Based on This value "Yes", another JSP is opened via this...

<%
try	{
	com.sapportals.portal.prt.component.IPortalComponentRequest componentRequest;
	String open = componentRequest.getComponentSession().getValue("openurl").toString();
	if(open.equals("Yes"))	{
%>
 	 <SCRIPT language="JavaScript"> 	 	
		 	EPCM.doNavigate("pcd:portal_content/Dev/EP1/testAPC");
	 </SCRIPT>
<% } 
}
catch(Exception ex)	{ %>
<%= "Test" %>
<%
}
%>

But i am getting exception...

Can you plz guide me in this?

Regards,

Dev