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