throws JspException
{
try
{
HttpServletRequest request = ( HttpServletRequest ) pageContext.getRequest( );
PortletURIImpl uri = ( PortletURIImpl ) request.getAttribute( PortletRequestImpl.PORTLET_URI_KEY );
String currentPortletName = ( uri != null )
? uri.getPortletName( )
: null;
if ( ( _unless == null ) || !_unless.equals( currentPortletName ) )
{
String portletName = getName( );
if ( portletName == null )