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
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.
Omri
Add a comment