This week's giveaway is in the
We're giving away four copies of
video training course and have Ken Kousen on-line!
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
video training course this week in the
help in JSP
Joined: Mar 19, 2004
Feb 16, 2006 22:52:00
I have a bean like this:
private Double amount;
private String check;
private String voucher;
private List items;
private List accountNo;
and i am setting all this values after getting it from datbase.
Now i am able to print values of inventory, amount check in
page but not able to print List type properties. How to print this using <logic:iterate> or using nested tag.
for printing other values i am writing like this
<jsp:useBean id="workOnExpenseVO" type="com.ci.prize.view.vo.releaseexpense.WorkOnExpenseVO" scope="session"/>
<bean:write name="workOnExpenseVO" property="amount" />
and i am getting the list also using this.
<bean:write name="workOnExpenseVO" property="items" />
Now how can i iterate this list and print all the values in jsp page.
Please help me on this..
Thanks in advance!!
Joined: Sep 20, 2003
Feb 17, 2006 10:04:00
Mukesh you posted in wrong place. Post your query in JSPs category
Author and ninkuma
Joined: Jan 10, 2002
Feb 17, 2006 10:58:00
The JSTL <c:forEach> tag will allow you to iterate through the List.
Asking smart questions
Books by Bear
I agree. Here's the link:
subject: help in JSP
Display Check Boxes & Dropdowns in Struts with search results
I need ur support in sorting out the struts issue
Iterate List on jsp (struts)
Populating a List using JSTL and spring MVC
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015