Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3933794
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T23:38:30+00:00 2026-05-19T23:38:30+00:00

i want to render data this is how my jsp page table look like

  • 0

i want to render data

this is how my jsp page table look like
 this is what a table look like

how i achieve this,

please help me,

it creates a lot of confusion for me, that how many classes are to be define and what are the fields.

thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-19T23:38:30+00:00Added an answer on May 19, 2026 at 11:38 pm

    Most likely your data is coming from database and this is kind of List of javabeans returned.

    Let’s say this is:

    List<MyObjects> objects
    

    You need to set it in controller level:

    @RequestMapping(value="/table")
    public ModelAndView renderTable() {
        ModelAndView mv = new ModelAndView("/table"); 
        mv.add("objects",objects);
        return mv;
    }
    

    Now this is the way you render it on the JSP:

    <c:if test="${not empty objects}">
        <table>
            <c:forEach var="o" items="${objects}">
                <tr>
                    <td>${o.id}</td>
                    <td>${o.name}</td>
                    <td>${o.descriptio}</td>   
                </tr>
            </c:forEach>
        </table>
    </c:if>
    

    You can read about it more here:
    http://static.springsource.org/spring/docs/3.0.1.RELEASE/reference/html/view.html

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

csv sample: Date,128,440,1024,Mixed 6/30/2010,342,-0.26%,-0.91%,1.51%,-0.97% 6/24/2010,0.23%,0.50%,-1.34%,0.67% i want to render this data in a multi-line
I want to render a partial depending on a selection in selection box. This
I have a data table with binded to a large list. I want to
Please note this link Render HTML as an Image is not helpful. In previously
Hello I need help with displaying data from 2 table. So i Have 2
I have an asp.net backend that creates Hierarchical Data based on IHierarchicalEnumerable. This was
I want to add some class to row when I render a table, sample
I want to create a similar behavior to the data reader class but for
I'm using a QTabWidget to render multiple documents in a window, and I want
I want to assign the decimal variable "trans" to the double variable "this.Opacity". decimal

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.