This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Struts and the fly likes dynamic list in struts 2 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "dynamic list in struts 2" Watch "dynamic list in struts 2" New topic
Author

dynamic list in struts 2

stefano biondi
Greenhorn

Joined: Dec 04, 2010
Posts: 5
i'm using s:iterator e display:table to view my list

now i have a problem

there is a dynamic list for which i don't know the number and the name of columns so i have to build the table when i get the info; a solution could be write a dynamic table using code java in the jsp

it's not very good to see but it works (i have not written the code but it seems easy)

now i ask: it is possible to make that using s:iterator e display:table?

thanks
Joe Ess
Bartender

Joined: Oct 29, 2001
Posts: 8836
    
    7

Are you asking how to output a table using an iterator tag or how to integrate Struts with display tag?


"blabbing like a narcissistic fool with a superiority complex" ~ N.A.
[How To Ask Questions On JavaRanch]
stefano biondi
Greenhorn

Joined: Dec 04, 2010
Posts: 5
Joe Ess wrote:Are you asking how to output a table using an iterator tag or how to integrate Struts with display tag?


my problem was to use dinamically s:iterator, a very stupid problem, i have solved

thanks
 
Consider Paul's rocket mass heater.
 
subject: dynamic list in struts 2
 
Similar Threads
Iterating over HaspMap<String,List<Object>> and comparing values.
struts 2.0 <s:select> tag problem
Dynamic radio button problem
Sticky nested lists problem in Struts 2
s:radio and display tag