• Post Reply Bookmark Topic Watch Topic
  • New Topic

Can I use <jsp:useBean tag in portlet?

 
barry nevel
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
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 />
</c:set>

<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?

Thanks.
 
Ben Souther
Sheriff
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
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!