Quantcast
Channel: SCN : Discussion List - SAP Enterprise Portal : Administration and Development
Viewing all articles
Browse latest Browse all 2686

Passing Bean in AbstractPortalApplication

$
0
0

Hello Experts,

 

I have worte this Code:

 

public class PopupIview extends AbstractPortalComponent {

     public void doContent(IPortalComponentRequest request, IPortalComponentResponse response) {

         

          IUser user = request.getUser();

          INotificationRule rule = new NewsNotificationRule();

             

          PopupBean ruleBean = new PopupBean();

          request.getServletRequest().setAttribute("rule", ruleBean);

                  

          //fill your bean with data here...             

          ruleBean.setMessage(rule.getMessage(user));                   

         

 

          IResource html = request.getResource(IResource.JSP,"pagelet/popup_ui.jsp");

          response.include(request, html);

     }

}


and this JSP-Page starting with this


<HTML>

<jsp:useBean id="rule" scope="request" class="ui.PopupBean" />


But while executing this, in the JSP-Page the rule-Bean is empty. I saw that it has an other Obejct-ID. So why my Bean from the portal application isn't used?


Thanks and Greetings,

Thomas




Viewing all articles
Browse latest Browse all 2686

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>