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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T11:15:38+00:00 2026-05-13T11:15:38+00:00

I have a JSP page which display a list from servlet, it has a

  • 0

I have a JSP page which display a list from servlet, it has a textbox which is used to filter the search result. I am selecting a item in the list (table) and redirecting to another page for editing the details after finishing the editing. I am able to come back to the search page via servlet, but I am unable to preserve the search condition in the textbox and its result. How to do that? I am thinking of setting up a session value and get it in search page, is that correct? Or is there any other way?

  • 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-13T11:15:38+00:00Added an answer on May 13, 2026 at 11:15 am

    Storing it in the session scope is the easiest way but, depending on how big your application is expected to be, it could arise some scalability issues.

    As an alternative, when you select an item in the list, you could forward (instead of redirect because if you make a redirect, you lose the request parameters) to another page, passing the search query as a parameter in the request. One possibility is to have a form with two hidden fields (the query and selected item):

    <form action="go_to_the_detail">
    <input type="hidden" name="selectedItem" value="value_selected_item" />
    <input type="hidden" name="query" value="query" />
    </form>
    

    In the editing page:

    <form action="go_to_save_item">
    <input type="hidden" name="query" value="query_obtained_from_the_request" />
    
    item fields to be modified
    </form>
    

    So, when the user finishes editing the item, the query will be passed again in order to be displayed in the search box.

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

Sidebar

Related Questions

I have a jsp page which I'm using to display a datatable. If I
I have a jsp page which has different IF conditions.On load of the jsp
I have a list of bean objects passed into my JSP page, and one
On a JSTL/JSP page, I have a java.util.Date object from my application. I need
I have a JSP which attaches a XSL to an XML document pulled from
I have a html form which have a select list box from which you
I have a JSP page which includes an iframe , Iframe contains the image
i have a page which has 4 frames the code is as below <frameset
I have a login.jsp page which contains a login form. Once logged in the
I'm trying to include a jsp page from a servlet: RequestDispatcher rd = ctx.getRequestDispatcher(

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.