portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dlest...@apache.org
Subject cvs commit: jakarta-jetspeed-2/applications/demo/src/webapp/WEB-INF/demo/userinfo userinfo.jsp help.html
Date Sat, 22 May 2004 21:27:11 GMT
dlestrat    2004/05/22 14:27:11

  Added:       applications/demo/src/webapp/WEB-INF/demo/userinfo
                        userinfo.jsp help.html
  Log:
  Added userinfo portlet.
  
  Revision  Changes    Path
  1.1                  jakarta-jetspeed-2/applications/demo/src/webapp/WEB-INF/demo/userinfo/userinfo.jsp
  
  Index: userinfo.jsp
  ===================================================================
  <%--
  Copyright 2004 The Apache Software Foundation
  
  Licensed under the Apache License, Version 2.0 (the "License");
  you may not use this file except in compliance with the License.
  You may obtain a copy of the License at
  
      http://www.apache.org/licenses/LICENSE-2.0
  
  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.
  --%>
  <%@page import="javax.portlet.PortletRequest" %>
  <%@ taglib uri='/WEB-INF/portlet.tld' prefix='portlet'%>
  <%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %>
  
  <portlet:defineObjects/>
  
  <h3>User roles</h3>
  
  <c:choose>
  
    <c:when test="${empty renderRequest.userPrincipal}">
  	  Login to see the roles you've been assigned
    </c:when>
  
    <c:otherwise>
      User: <c:out value='${renderRequest.userPrincipal.name}'/><br>
      <br>
      <b>Portlet Request - User info:</b>
      <br>Render request: <%= renderRequest.getAttribute(PortletRequest.USER_INFO)
%>
      <br>Request: <%= request.getAttribute(PortletRequest.USER_INFO) %>
    </c:otherwise>
  
  </c:choose>
  <br>
  For help on role configuration select the help icon.
  
  
  
  1.1                  jakarta-jetspeed-2/applications/demo/src/webapp/WEB-INF/demo/userinfo/help.html
  
  Index: help.html
  ===================================================================
  <h3>Example user info</h3>
  
  <p>
    Help to be coming soon.
  </p>
  
  
  

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


Mime
View raw message