Hi,

I've been working on getting PetStore to work on Geronimo and encountered an issue I can't yet work out.

Does anyone know what the following snippet does and why it doesn't work on Geronimo/Jetty? When I've uncommented the code within <%-- --%>, the page where you can place an order works, otherwise it does not. How could I pinpoint the root cause?

<c:forEach var="item" items="${pageResults.list}">
 <tr>
  <td class="petstore_listing">
   <c:url value="/item.screen" var="viewItemURL">
    <c:param name="item_id" value="${item.itemId}"/>
   </c:url>
   <a href='<c:out value="${viewItemURL}"/>'>
  <%--
    <c:out value="${item.attribute}" />
  --%>
    <c:out value="${item.productName}"/>
   </a>
   <br>
   <c:out value="${item.description}"/>
  </td>
  <td class="petstore_listing" align="right">
   <fmt:formatNumber value="${item.listCost}" type="currency" />
   <br>
   <c:url value="/cart.do" var="cartURL">
     <c:param name="action" value="purchase"/>
     <c:param name="itemId" value="${item.itemId}"/>
   </c:url>
   <a href='<c:out value="${cartURL}"/>'>
    Add to Cart
   </a>
  </td>
 </tr>
</c:forEach>

The url to the page is http://localhost:8080/petstore/product.screen?product_id=FL-DSH-01. Just select pets category in the Pets frame on the left and nothing will be printed out unless the page has been changed(for reference it's in sandbox\petstore\target\geronimo-1.0-SNAPSHOT\config-store\36\petstore.war by default)

That's the last visible issue with PetStore. There's another with LoginModule, but I don't expect it will take much time to work out.

Any help appreciated.

Jacek

Reply via email to