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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T02:36:01+00:00 2026-05-30T02:36:01+00:00

My tables are populated using jsp scriptlets. Displaying is not a problem but when

  • 0

My tables are populated using jsp scriptlets.
Displaying is not a problem but when I do a submit which will do an add on the DB.
I want my table to reload the new result on the table, but I think because I’m using jsp scriptlet
I may have to reload the whole page but I don’t want to do that, is there a way I could
refresh/reload my table with the new result?


    <% 
    List<Person> list = Function.doQueryFromDB();
    for(Person person : list)
    { %>

        <TR>
            <TH ><%=person.getName()%><B></B></FONT>
        </TR>
    <%
    }
    %>
    </table>

    <% 
    List<Person> list = Function.doQueryFromDB();
    pageContext.setAttribute("person", list);
    %>

    <table id="sampTable">
    <c:forEach  var="per" items="${person}">
        <tr>
              <td><c:out value="${per.name}"  /></td>
        </tr>
    </c:forEach>
    </table>
  • 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-30T02:36:01+00:00Added an answer on May 30, 2026 at 2:36 am

    Just rearrange the business code so that the data is loaded from the DB after the new row is inserted.

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

Sidebar

Related Questions

I need to add a NOT NULL column to an existing (populated) table that
iv created a database with some tables and populated them using SQL server 2008,
I have a problem that is common, but I am not quite sure exactly
I am using 2 Tables (JTable) with their DefaultTableModels. The first table is already
How many JSPs to create to maintain one table for data entry. Add.jsp to
Using SQL2k5, I have a staging table that contains columns that will populate numerous
My web app uses half a dozen tables, each of which get populated when
I have several sparsely populated tables in an Excel workbook from which I need
Given the following tables: CREATE TABLE tree ( id serial NOT NULL, name character
I have two mysql tables: /* Table users */ CREATE TABLE IF NOT EXISTS

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.