Skip to Content
0
Former Member
Oct 20, 2006 at 03:49 PM

problem in <body onLoad=""> while executing from jspDynPage

41 Views

Hello Friends

the below mentioned html file is working properly but when i m passing these file as response from jspdynpage

It is not working

the function written in onLoad method doesn't get executed. Plz help out .. its urgent..

html file

-


<html>

http://xyz.abc.com/irj/portal')">

</body>

</html>

-


package hii;

import com.sapportals.htmlb.page.DynPage;

import com.sapportals.htmlb.page.PageException;

import com.sapportals.portal.htmlb.page.JSPDynPage;

import com.sapportals.portal.htmlb.page.PageProcessorComponent;

import com.sapportals.portal.prt.component.IPortalComponentResponse;

public class hii extends PageProcessorComponent {

public DynPage getPage(){

return new hiiDynPage();

}

public static class hiiDynPage extends JSPDynPage{

public void doInitialization(){

}

public void doProcessAfterInput() throws PageException {

}

public void doProcessBeforeOutput() throws PageException {

IPortalComponentResponse res = (IPortalComponentResponse)this.getResponse();

String str = "alert('hi hello')";

res.write("<html>");

res.write("http://xyz.abc.com/irj/portal')\">");

res.write("</body>");

res.write("</html>");

this.setJspName("hii.jsp");

}

}

}

thx in advance...

Awaiting for solution