[Burichan] [Futaba] [Gurochan] [Photon] - [Home]

[Return]
Reply mode
Name
Link
Subject
Comment
File
Password (for post and file deletion)
Leave empty (spam trap):
  • Supported file types are: GIF, JPG, PNG
  • Maximum file size allowed is 1000 KB.
  • Images greater than 200x200 pixels will be thumbnailed.

File: 1208233340132.jpg -(29128 B, 570x327) Thumbnail displayed, click image for full size.
29128 No.1   [Reply]

<table>
<tr>

	<td colspan="2">
<% String message = (String)request.getAttribute("message");
if (message != null)out.println(message); %>
</td></tr>

<tr><td><h3>Your Cart</h3></td></tr>
<%
ArrayList theCart = new ArrayList();
theCart = (ArrayList)session.getAttribute("cart");
//theCart = (ArrayList)request.getAttribute("cart");
if (theCart != null){

int number = 0;
if( theCart.size() > 0){
number = theCart.size();
}
for (int c=0; c < number; c++)
{
ProductFormBean product = (ProductFormBean)theCart.get(c); //elementAt(c);
out.println("<tr><td>"+product.getProductId()+"</td><td>"
+product.getDescription()+"</td><td>"
+product.getQuantity()+"</td></tr>");
}

}
else{

out.println("Nothing returned");

}
%>
</table>



Delete Post []
Password