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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T01:44:00+00:00 2026-06-05T01:44:00+00:00

I have a database setup with hibernate, and I want to call a search

  • 0

I have a database setup with hibernate, and I want to call a search on the table in my JSP page. How to I call my java function with the jsp page and store the results, then print them on the jsp page?

Search function (Search by subject)

public Iterable<Layouts> getSelectedLayouts(String subjectName){}

I have the class containing this method in my jsp page as a spring bean

custom:useSpringBean var="layoutManager" bean="LayoutManager" 

where LayoutManager is the class

I don’t know how to call the method in the jsp page and output the results

I’m using a spring/hibernate to connect to the database, and running my jsp on a local tomcat server

  • 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-06-05T01:44:02+00:00Added an answer on June 5, 2026 at 1:44 am

    Since it’s not clear from your question as to what framework you’re using. I will just give you a very general and simple answer but you can use the same idea in any framework you use.

    You probably have a button in your jsp page which when clicked will invoke a servlet. Inside the servlet, you will have access to the fields that were submitted via the jsp page. Use the fields to create a search object(DAO) and query the database with it.

    When you get results from the database, save it in session scope. So now in your jsp page, you can access the object and display it. You can use jstl to access the fields of the object.

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

Sidebar

Related Questions

I have a database set up with hibernate. In my jsp page I display
We have replication setup on a database and is working fine. Now we want
I have indexed my database using Hibernate Search. I use a custom analyzer, both
I have a SQLite database setup for my android application and I have it
If you've got a database setup in Django, how can you have the TestRunner
I have setup a database view. When users import the data from the view
I have setup multiple SQL Service Broker Queues in a database but have not
I have a tool that is setup to query our Clearquest Database to return
currently I'm trying to have a setup where a generic database is distributed to
I'm building a Route Planner Webapp using Spring/Hibernate/Tomcat and a mysql database, I have

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.