Results 1 to 3 of 3

Thread: SiteMesh issue, authz tag doesn't work in footer

  1. #1
    Join Date
    Mar 2007
    Location
    Toronto, ON
    Posts
    69

    Default SiteMesh issue, authz tag doesn't work in footer

    This tag works fine in the page being wrapped:

    Code:
    <authz:authentication operation="username"/>
    However it has no output in my footer.jsp which is included in my default.jsp (this is my decorator page).

    Any ideas?

    footer.jsp (default.jsp below)
    Code:
    <%@ include file="taglibs.jsp" %>
    
    	<div id="divider"><div></div></div>
        <span class="left">Version @APPVERSION@ |
            <span id="validators">
                <a href="http://validator.w3.org/check?uri=referer">XHTML Valid</a> |
                <a href="http://jigsaw.w3.org/css-validator/validator-uri.html">CSS Valid</a>
            </span>
            <fmt:message key="user.login"/> <authz:authentication operation="username"/>
        </span>
        <!-- Built on @BUILD-TIME@ -->
    default.jsp
    Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    
    <%@ include file="../common/taglibs.jsp"%>
    <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
        <head>
            <title><decorator:title/></title>
            <link rel="stylesheet" type="text/css" media="all" href="<c:url value='/styles/simplicity/theme.css'/>" />
            <link rel="stylesheet" type="text/css" media="print" href="<c:url value='/styles/simplicity/print.css'/>" />
            <decorator:head/>
        </head>
    <body>
    
        <div id="page">
        	<div id="header" class="clearfix">
                <jsp:include page="../common/header.jsp"/>
            </div>
            <div id="content" class="clearfix">
                <div id="main">
                    <decorator:body/>
                </div>
            </div>
            
            <div id="footer" class="clearfix">
                <jsp:include page="../common/footer.jsp"/>
            </div>
            
            
        </div>
    </body>
    </html>

  2. #2
    Join Date
    Aug 2004
    Location
    Denver
    Posts
    249

    Default

    Do you have the SecurityContextHolderAwareRequestFilter in your filterChain?

    http://www.acegisecurity.org/multipr...estFilter.html

  3. #3
    Join Date
    Mar 2007
    Location
    Toronto, ON
    Posts
    69

    Default

    Hi Matt. I didn't, I have added it now. Looks like I have a bit of reworked to do to get security working again with the addition of this new filter. I will keep playing with it and see what I can get going.

    Thanks for your help!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •