Skip to Content
0
Apr 24, 2008 at 11:34 PM

Javascript code to redirect window

43 Views

Hi,

I am developing a PAR file (containing a JSP) which I want to redirect to some other page with some parameters at the time of loading of iview. These parameters I am able to get correctly from a Java Bean. Now I am in need of code to redirect the iview (from this par). My current code is like this:

<%@ page import="java.util.ResourceBundle"%>

<%@ taglib uri="htmlb" prefix="hbj" %>

<jsp:useBean id="data" scope="request" class="com.sap.pct.fin.cad.test" />

<jsp:useBean id="cKey" scope="request" class="com.sap.pct.fin.cad.test.CKey" />

<hbj:content id="myContext" >

<hbj:page>

<%= cKey.getJavaScriptForURLCaller() %>

<% ResourceBundle rb = componentRequest.getResourceBundle(); %>

<hbj:form>

<%= cKey.getHiddenFormField() %>

<%= cKey.getJavaScriptForEventReceiver(componentRequest, myContext.getCurrentFormId()) %>

<hbj:textView text="<%=data.getEV_ID()%>" design="HEADER3"/>

</hbj:form>

</hbj:page>

</hbj:content>

Now i want to pass this EV_ID at runtime to some other URL like

http://sdn.sap.com?ABC=data.getEV_ID()

I tried using window.location but no use. Any inputs are welcome.

regards,

Justin