You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by "Motykowski, Peter P." <P....@stanleyassociates.com> on 2003/07/16 16:27:14 UTC
tag and tiles
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