struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Motykowski, Peter P." <P.Motykow...@stanleyassociates.com>
Subject <logic:redirect> tag and tiles
Date Wed, 16 Jul 2003 14:27:14 GMT
I am using a custom tag in a tile to check if the current webapp session has
a valid database connection.  If it does not, redirect to the logon page.
This JSP file works fine when called directly, however when inserted as a
tile, the <logic:forward> tag does not work.

<%@ obligatory taglib directives %>

<dbTags:isConnected>
        Logged on as <sess:attribute name="username"/>
        <html:link page="/action/logonPage?logout">Log Out</html:link>
</dbTags:isConnected> <logic:redirect forward="logon"/>

The <dbTags:isConnected> tag is configured to: 

doStartTag - if database connection exists, EVAL_BODY_INCLUDE.  Else,
SKIP_BODY.

doEndTag - if database connection exists, SKIP_PAGE.  Else, EVAL_PAGE.

Has anyone seen any issues using logic:forward in a tiles configuration?

Thanks,
Peter

---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


Mime
View raw message