Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • 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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic