Skip to Content
author's profile photo Former Member
Former Member

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

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






package hii;





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')";









thx in advance...

Awaiting for solution

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Posted on Oct 22, 2006 at 06:18 AM

    Hi mehul prajapati,

    I think you have a problem with the " character.

    When you get the html page use 'view source' and see if there are missing " in the java script onload line.

    If yes, then change your java code so all " will be closed.


    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.