Hello,

I know - oooold topic, but after a long time I had to touch this piece
of code again because Weblogic still does not like the tag.

> I have a big problem with the InstanceBasedSecuritymanager described in 
> Freddy's StripesBook: Using the security-tags, I get this unfriendly 
> exception:
>
> javax.servlet.ServletException: javax.servlet.jsp.JspTagException: Since tag 
> class org.stripesstuff.plugin.security.AllowedTag does not implement BodyTag, 
> it cannot return BodyTag.EVAL_BODY_BUFFERED
>       ...

What I found out is that instead of returning EVAL_BODY_AGAIN, both the
AllowedTag and the NotAllowedTag should return EVAL_BODY_INCLUDE (as it
is written in the Javadoc of AllowedTag.doStartTag()). In this case,
everything should work fine in every servlet container. This is also the
return value for other popular libraries like the JSTL core ForEachTag.

Maybe someone can change the tags in StripesStuff SVN to return the
above int value instead of the wrong one?

Kind regards,
Marcus


------------------------------------------------------------------------------
RSA(R) Conference 2012
Mar 27 - Feb 2
Save $400 by Jan. 27
Register now!
http://p.sf.net/sfu/rsa-sfdev2dev2
_______________________________________________
Stripes-users mailing list
Stripes-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/stripes-users

Reply via email to