Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Displaying list of items horizontally  RSS feed

 
Nithish Yalamanchili
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hai All

I have a table named Projects in Database which contains all the project names. What i need is to display all the project names from table in horizontal row at the top of table . Help me out.
EG:
ABC XYZ BBB AAAA AED ...

in this manner in JSP PAGE

Nithish
 
Vassili Vladimir
Ranch Hand
Posts: 1585
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Develop a custom tag that retrieves the values from the database and then accordingly creates an HTML table that consists of one row (tr) and for each project name create a new cell (td).

Best of luck ...
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Or use JSTL's forEach tag.
Look at how the rows are built in this example.
[ September 19, 2007: Message edited by: Ben Souther ]
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!