Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Display output in table

 
Nitin Belaram
Ranch Hand
Posts: 67
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I had a servlet in which i am setting value in request.setAttribute("AttributeUser", users );

I want to display request.setAttribute(AttributeUser, users ) values in a html table .


please suggest How can i do this.






 
Ankit Garg
Sheriff
Posts: 9521
22
Android Google Web Toolkit Hibernate IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are you expecting a complete solution. I don't think you'll get that here . I can give you some idea though.

Since I don't know the structure of New_USER class, I'm assuming it would be something like this



Now in your JSP, you need to iterate over the List using the forEach tag. You can see an example here. Just iterate over the List and display the properties of New_USER class using table tags in the loop...
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic