Skip to Content
Jul 30, 2008 at 02:50 AM

JSP Dynpage development



I am using JSPDynpages and am trying to save a value in my bean and get access to this value on my JSP page. I have not been able to get the value from my bean to the jsp page any thoughts on what I may be doing wrong would be appreciated.

Below is the code I am working with


public void doProcessBeforeOutput() throws PageException


myBean myBean = new myBean();

((IPortalComponentRequest)getRequest()).getServletRequest().setAttribute("myBean", myBean);

// fill your bean with data here...

myBean.setBappiReturn( "Hello World");




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

<%@ page import="com.sapportals.portal.prt.runtime.PortalRuntime" %>

<%@ page import="com.sapportals.portal.prt.resource.IResource" %>

<jsp:useBean id="myBean" scope="request" class="myBean.myBean" />

<hbj:content id="myContext" >

<hbj:page title="PageTitle">

<hbj:form id="myFormId" >

<%= myBean.getBappiReturn()%>






public class myBean implements Serializable


public String bappiReturn = "";


  • @return


public String getBappiReturn() {

return bappiReturn;



  • @param string


public void setBappiReturn(String string) {

bappiReturn = string;




<?xml version="1.0" encoding="UTF-8"?>



<property name="PrivateSharingReference" value=",,,,,jco,jcoclient"/>



<component name="JSPProject">


<property name="tagLib" value="/SERVICE/htmlb/taglib/htmlb.tld" />

<property name="ClassName" value="JSPProject.JSPProject"/>

<property name="ComponentType" value="jspnative"/>

<property name="JSP" value="pagelet/JSPTest.jsp"/>



<property name="tagLib" value="/SERVICE/htmlb/taglib/htmlb.tld"/>