• Post Reply Bookmark Topic Watch Topic
  • New Topic

Can I use <jsp:useBean tag in portlet?

barry nevel
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a portlet in which I want to use a javabean by using <jsp:useBean> tag.
This works fine but I have a problem when I try to namespace it.

First off...
Do I need to namespace it or will the portal session ensure it's unique?

<c:set var="ns">
<portlet:namespace />

<jsp:useBean id="${ns}someBean" scope="session" class="xx.yy.zz" />

I get an error saying I cannot use EL expressions there.

Does anyone have any suggestions?

Ben Souther
Posts: 13411
Firefox Browser Redhat VI Editor
Do not set lab on fire. Or this tiny ad:
the new thread boost feature brings a LOT of attention to your favorite threads
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!