MHL3060 / bentux

Automatically exported from code.google.com/p/bentux
0 stars 0 forks source link

addressing display info on confirm page. #52

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
if you login, select a product or two, check out.

Go through checkout process -> on confirm.html page.

The box below shows invalid info for price. or the price is right, we need to 
add the total maybe?

Original issue reported on code.google.com by lhkh...@gmail.com on 21 May 2010 at 10:26

GoogleCodeExporter commented 9 years ago
sorry I meant by show the ''right'' info

                <display:column property="product.price" titleKey="product.price" />

Original comment by lhkh...@gmail.com on 21 May 2010 at 10:31

GoogleCodeExporter commented 9 years ago
Can you add the total column to it?

Original comment by benli3...@gmail.com on 21 May 2010 at 2:21

GoogleCodeExporter commented 9 years ago
<c:set var="i" value="${0}"/> 
            <c:forEach var="c" items="${shoppingItems}">
                <c:set var="i" value="${i+c.total}"/>
            </c:forEach>
            <li class="label"><fmt:message key="cart.sub.total" /> : $ ${i}</li>

I have the code above using it and working on cart.jsp, however not working on 
confirm.jsp. I even added the 
formBackingObject on confirmcontroller. 

Original comment by lhkh...@gmail.com on 22 May 2010 at 5:31

GoogleCodeExporter commented 9 years ago
you can use the alternative, 

do the total in the controller instead of in the jsp file so you can just use 
<c:out value="${}" /> instead.

Original comment by benli3...@gmail.com on 22 May 2010 at 7:45

GoogleCodeExporter commented 9 years ago
you mean in the handleRequest()? or I have to return the variable?

Original comment by lhkh...@gmail.com on 23 May 2010 at 7:44

GoogleCodeExporter commented 9 years ago
you can add it to ModelAndView object or the map object (referenceOBjects 
function

Original comment by benli3...@gmail.com on 23 May 2010 at 6:51