You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by Markus Wiederkehr <as...@fantasymail.de> on 2004/09/20 15:32:07 UTC
Error handling (OgnlException hides PageRecirectException)
I have the following problem:
My HTML template tries to access a page property through an OGNL
expression. Access to the property should be restricted to
administrators. But when I throw a PageRedirectException inside the
property getter it gets caught by the OGNL framework which throws a
OgnlException instead. Thus the desired page redirect doesn't work.
I modified two OGNL source files to solve the problem (OgnlRuntime.java
and OgnlPropertyAccessor.java). Is there another solution?
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-dev-help@jakarta.apache.org
Re: Error handling (OgnlException hides PageRecirectException)
Posted by Howard Lewis Ship <hl...@gmail.com>.
How is it that your template is referrencing a property it shouldn't.
Seems like your doing security checks at the wrong granularity.
On Mon, 20 Sep 2004 15:32:07 +0200, Markus Wiederkehr
<as...@fantasymail.de> wrote:
> I have the following problem:
>
> My HTML template tries to access a page property through an OGNL
> expression. Access to the property should be restricted to
> administrators. But when I throw a PageRedirectException inside the
> property getter it gets caught by the OGNL framework which throws a
> OgnlException instead. Thus the desired page redirect doesn't work.
>
> I modified two OGNL source files to solve the problem (OgnlRuntime.java
> and OgnlPropertyAccessor.java). Is there another solution?
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-dev-help@jakarta.apache.org
>
>
--
Howard M. Lewis Ship
Independent J2EE / Open-Source Java Consultant
Creator, Jakarta Tapestry
Creator, Jakarta HiveMind
http://howardlewisship.com
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-dev-help@jakarta.apache.org