Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Display output in table  RSS feed

 
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: 9610
37
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...
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!