Thanks Ted
the logic:forward was what I was looking for. Don't ask me why I didn't realize that by reading the docu.
(If I ask I am silly, if I dont ask I stay silly)
-----------
Given that you've defined a session attriute named "LOGON", you could do
this using only the Struts tags in the standard distribution:
<logic:notPresent name="LOGON">
<logic:forward name="logon"/>
</logic:notPresent>
Just be sure to put it at the very top of the page, before the buffer
gets flushed.
You might also like to take a look at the Jaktarta Taglibs. There are
all kinds of interesting and useful things over there. For example, the
request library includes an isUserInRole tag, so if you were using
container-based authentication, you could do this:
<req:isUserInRole role="user" value="false">
<logic:forward name="logon"/>
</req:isUserInRole>
Assuming all your authenticated principals are in the "user" group.
This is also a nifty way to include/exclude controls based on whether a
principal is authenticated, and then on their authorization role.
> "Friedli Beat [UFA AG Her]" wrote:
>
> Hi list
>
> I am shure, it is possible to check by entering a jsp-page if a
> sertain property is set and if not to forward the to another jsp-page.
>
> I'm looking for a tag like this
>
> <logic:equal name="nav" property="page" value="logon">
>
> <some_struts_tag:find_forward="logon" />
> </logic:equal>
>
> I know the way with a spezial tag I create myself. But i thinks it's a
> little bit overkill, and I would like to have the controll in the
> jsp-page and not in a tag.
>
> Mit freundlichen Gr�ssen
>
> Beat Friedli

