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 4115654
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T22:36:37+00:00 2026-05-20T22:36:37+00:00

I am a newbie in struts 2, I want to display multiple rows from

  • 0

I am a newbie in struts 2, I want to display multiple rows from a database table to a jsp file. How to pass or set the properties to get the the rows in jsp page.

  • 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-20T22:36:37+00:00Added an answer on May 20, 2026 at 10:36 pm

    This is the method I often use:

    public class anAction {
        private list displayList<RowBean>;
    
        ... the setter/getter for displayList and get the rows from JDBC resultset into the displayList somewhere in the code...
    }
    

    The RowBean is a JavaBean that corresponds to a row of resultset.

    The use the following code segment to extract the content on the jsp page:

    <s:iterator value="displayList">
    <tr>
    <td>attribute1</td><td>attribute2</td>...<td>attributeN</td>
    </tr>
    </s:iterator>
    

    where the attribute1 … attributeN are the same as the attributes defined in the RowBean.

    Hope this helps.

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

Sidebar

Related Questions

newbie here .. wondering why in the table i get something called '[object node]'
I m a newbie & i m good at Struts framework. Today i tried
Newbie question. I have a NSMutableArray that holds multiple objects (objects that stores Bezier
newbie for clearcase. Since clearcase's config is rather different from other concept in git,
I am a xml newbie trying to create a XDocument type from a xml
Newbie to windows scripting. I need help running the .bat file on the command
Newbie question: Can one substitue commands, properties or methods for NSStrings or char at
Newbie IIS question: I want to setup HTTPS access for my XHTML page (not
Newbie to .NET data apps here, coming from a Visual Foxpro background. I'm planning
Newbie SQL question here --> I've got an Occurrences table that contains a row

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.