ate         2004/11/16 15:09:30

  Modified:    applications/security/src/webapp/WEB-INF/security/login
                        login.jsp
  Log:
  Fix for login error count reporting, now also working on Tomcat 5.
  
  Revision  Changes    Path
  1.7       +4 -2      
jakarta-jetspeed-2/applications/security/src/webapp/WEB-INF/security/login/login.jsp
  
  Index: login.jsp
  ===================================================================
  RCS file: 
/home/cvs/jakarta-jetspeed-2/applications/security/src/webapp/WEB-INF/security/login/login.jsp,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- login.jsp 18 Oct 2004 02:12:59 -0000      1.6
  +++ login.jsp 16 Nov 2004 23:09:30 -0000      1.7
  @@ -14,8 +14,10 @@
   limitations under the License.
   --%>
   <[EMAIL PROTECTED] import="org.apache.jetspeed.login.LoginConstants"%>
  +<[EMAIL PROTECTED] import="org.apache.jetspeed.request.RequestContext"%>
   <[EMAIL PROTECTED] uri="http://java.sun.com/jstl/fmt"; prefix="fmt"%>
   <[EMAIL PROTECTED] uri="http://java.sun.com/jstl/core"; prefix="c"%>
  +<[EMAIL PROTECTED] uri="http://java.sun.com/jstl/core_rt"; prefix="c_rt"%>
   
   <fmt:setBundle 
basename="org.apache.jetspeed.portlets.security.resources.LoginResources" />
   
  @@ -27,8 +29,8 @@
       <a href='<c:url 
value="/portal/Administrative/change-password.psml"/>'><fmt:message 
key="login.label.ChangePassword"/></a>
     </c:when>
     <c:otherwise>
  -    <c:set var="retryCountKey"><%=LoginConstants.RETRYCOUNT%></c:set>
  -    <c:set var="retryCount" value="${sessionScope[retryCountKey]}"/>
  +    <%-- backdoor access to the portal session to get the login error count 
--%>
  +    <c_rt:set var="retryCount" 
value="<%=((RequestContext)request.getAttribute(RequestContext.REQUEST_PORTALENV)).getSessionAttribute(LoginConstants.RETRYCOUNT)%>"/>
       <c:if test="${retryCount != null}">
         <br>
         <i><fmt:message key="login.label.InvalidUsernameOrPassword"><fmt:param 
value="${retryCount}"/></fmt:message></i>
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to