File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to populate a string array in a html table in jsp?

 
sheryl merchel
Greenhorn
Posts: 4
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I m little new to struts..
I want to create a html table like this

slno Question Options No of Answers
________________________________________
1 aaaa Yes 3
No 6
________________________________________
2 bbbb True 2
False 7


(Table is not drawn properly.Here Yes and No are the fields that come under the column 'Options' for Question with slno 1, with '3' and '6' as their respective number of answers.Likewise True and false are the options for Question 2, with '2' and '7' as their respective number of answers)

Here each row is an item of a list and the options for each question is contained in a string array which itself is an element of the list.
How can i populate this string array values inside the table.

I have something like this now,but its not working.
jsp :


Here questionValues is the string array and QuestionsList is a list.

FormDetails class:



Also please suggest any alternative way better than this to do this
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic