portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pau...@apache.org
Subject cvs commit: jakarta-jetspeed-2/applications/demo/src/webapp/WEB-INF/demo/customerInfo Page1.jsp
Date Fri, 12 Mar 2004 04:28:21 GMT
paulsp      2004/03/11 20:28:21

  Modified:    applications/demo/src/webapp/WEB-INF/demo/customerInfo
                        Page1.jsp
  Log:
  o Portlet now displays the desired content.
  o Portlet now confirms that request.getAttribute() and renderRequest.getAttribute
    return different objects.  This appears to be in violation of PLT 16.3.1
    in the JSR 168 spec.
  
  Revision  Changes    Path
  1.3       +34 -2     jakarta-jetspeed-2/applications/demo/src/webapp/WEB-INF/demo/customerInfo/Page1.jsp
  
  Index: Page1.jsp
  ===================================================================
  RCS file: /home/cvs/jakarta-jetspeed-2/applications/demo/src/webapp/WEB-INF/demo/customerInfo/Page1.jsp,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- Page1.jsp	7 Aug 2003 23:58:57 -0000	1.2
  +++ Page1.jsp	12 Mar 2004 04:28:21 -0000	1.3
  @@ -1,6 +1,9 @@
   <%@ page language="java"
            session="false"
   %>
  +<%@ page import="java.util.Iterator" %>
  +<%@ page import="java.util.List" %>
  +<%@ page import="org.apache.jetspeed.demo.customerInfo.CustomerInfo" %>
   <%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %>
   <%@ taglib uri="http://java.sun.com/jstl/fmt" prefix="fmt" %>
   <%@ taglib uri='/WEB-INF/portlet.tld' prefix='portlet'%>
  @@ -8,7 +11,11 @@
   
   <div>
     Hello from Page 1 with Taglib<br>
  -  <table>
  +  <table width="100%">
  +    <tr bgcolor="lightgray">
  +      <th>Customer Name</th>
  +      <th>Date of Last Order</th>
  +    </tr>
       <c:forEach items="${CustomerList}" var="Customer">
       <tr>
         <td><c:out value="${Customer.name}" /></td>
  @@ -16,4 +23,29 @@
         <td><fmt:formatDate value="${Customer.lastOrderedAsDate}" /></td>
       </tr>
       </c:forEach>
  - </div>
  +    <tr>
  +      <td colspan="2" align="center">** End of List in request **</td>
  +    </tr>
  +<%
  + List customerList = (List) renderRequest.getAttribute("CustomerList");
  + for (Iterator i = customerList.iterator(); i.hasNext();)
  + {
  +   CustomerInfo customer = (CustomerInfo) i.next();
  +   out.println("<tr>");
  +   out.println("  <td>");
  +   out.println("    " + customer.getName()); 
  +   out.println("  </td>");
  +   out.println("  <td>");
  +   out.println("    " + customer.getLastOrderedAsDate()); 
  +   out.println("  </td>");
  +   out.println("</tr>");
  + }
  +%>
  +    <tr>
  +      <td colspan="2" align="center">** End of List in renderRequest **</td>
  +    </tr>
  +  </table>
  +  <p>
  +    <strong>NOTE:</strong> The above list should match!
  +  </p>
  +</div>
  
  
  

---------------------------------------------------------------------
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