Details

    • Type: Sub-task
    • Status: Closed
    • Priority: Trivial
    • Resolution: Invalid
    • Affects Version/s: 1.0.0.RC4
    • Fix Version/s: None
    • Component/s: SECURITY, WEB MVC
    • Labels:
      None
    • Environment:
      Windows XP, Java 1.6, roo command line creation

      Description

      File: \src\main\webapp\WEB-INF\layouts\default.jspx

      Replace:

      <c:if test="${pageContext.request.userPrincipal != null}">
      <c:out value=" | "/>
      <span>
      <spring:url var="logout" value="/static/j_spring_security_logout" />
      <a href="${logout}"><spring:message code="security.logout" /></a>
      </span>
      </c:if>

      With:
      <c:choose>
      <c:when test="${pageContext.request.userPrincipal != null}">
      <c:out value=" | "/>
      <span>
      <spring:url var="logout" value="/static/j_spring_security_logout" />
      <a href="${logout}"><spring:message code="security.logout" /></a>
      </span>
      User: <b>=${pageContext.request.userPrincipal.name}</b>
      </c:when>
      <c:otherwise>
      <c:out value=" | "/>
      <span>
      <spring:url var="login" value="/login" />
      <a href="${login}"><spring:message code="security.login" /></a>
      </span>
      </c:otherwise>
      </c:choose>

      Add the following line to the \src\main\webapp\WEB-INF\i18n\messages.properties (#security):

      security.login=Login

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                jcgarcia Juan Carlos GarcĂ­a del Canto
                Reporter:
                jsandman Jon Sandberg
              • Votes:
                3 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - 0.5h
                  0.5h
                  Remaining:
                  Remaining Estimate - 0.5h
                  0.5h
                  Logged:
                  Time Spent - Not Specified
                  Not Specified