aspose file tools
The moose likes Servlets and the fly likes Display output in table Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of OCA Java SE 8 Programmer I Study Guide 1Z0-808 this week in the OCAJP forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Display output in table" Watch "Display output in table" New topic

Display output in table

Nitin Belaram
Ranch Hand

Joined: Mar 24, 2009
Posts: 67
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

Joined: Aug 03, 2008
Posts: 9326

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...

SCJP 6 | SCWCD 5 | Javaranch SCJP FAQ | SCWCD Links
I agree. Here's the link:
subject: Display output in table