That is not acceptable to me  ( well to me it is, but not our designers...)

Prime directive : No scripts at all in a jsp page.

My next question is therefore: Can a tag write jsp-code? Probably not...

Hmmm, what about a TEI with an object bound to the page that either throws
or not throws an exception?

I'll try that, and if anyone has any better suggestion I'm very interested
in those.

Johan


----- Original Message -----
From: "Frank Eggink" <[EMAIL PROTECTED]>
To: "Orion-Interest" <[EMAIL PROTECTED]>
Sent: Saturday, April 21, 2001 1:43 PM
Subject: RE: JSP tags


> Johan,
>
> Guess you could throw the exception using a scripting element in the page.
>
> <%
> if (yourBean.isNotAccessible()) {
> throw new NoAccessException("....");
> }
> %>
>
> FE
>
> On Friday, April 20, 2001 4:23 PM, Johan Fredriksson
> [SMTP:[EMAIL PROTECTED]] wrote:
> > I'm trying to do a login check from within a tag. Checking the session
> for a userid and then checking the required permits to that page.
> >
> > If it is a match my doEndTag returns EVAL_PAGE, if required permission
is
> missing, SKIP_PAGE is returned.
> >
> > This works, ie the user gets a blank page when not sufficient rights is
> assoc with the user for that page. But I'd like to throw a
> NoAccessException instead and let Orion handle that one with an errorpage.
> >
> > Tag newbie as I am, I cannot figure out how to throw that exception from
> the tag and still be a correct tag.  Just complains about not being
> compatible with doEndTag() (TagSupport)
> >
> > Is there a way to get around this?
> >
> > Johan
> >
> >
> >  << File: ATT00008.html >>


Reply via email to