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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T14:44:47+00:00 2026-06-11T14:44:47+00:00

I am creating a web app using java. I am very new to this,

  • 0

I am creating a web app using java. I am very new to this, and I have the following questions:

  1. I have jsp files for the front-end. Now, whenever I have to do a bulky back-end function I can either create a servlet and do a get request from jsp or I can create a simple java object, instantiate it in jsp and use it for backed function.
    Which one is better and why?

  2. Each back-end function needs to connect to a database. I want to do it only once for a user for the entire session and for all jsp pages. How is it done?

  • 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-11T14:44:48+00:00Added an answer on June 11, 2026 at 2:44 pm

    For question 1:

    If no servlet is needed why use it? Just do your bulky work in a plain Java class. By this way you will have less dependencies in you workflow.

    For question 2:

    Most app servers now have build in support for pooled connections. It is strongly adviced that you make use of this functionality. Now, there are plenty of ways you can go forward. The simplest and IMO best way is to create a database related Object that will handle connection open/close, perform updates/delete/select functions, and make use of this through out your application

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

Sidebar

Related Questions

In my Java Spring web app I am creating an image file. This file
I have written a web app using Java EE for altering the contents of
I have to call the web service using java script? e.g. I'm creating one
I'm using codeigniter to create a web app. I'm creating the drop down menus
I'm creating a web app with Django. Since I'm very familiar with Apache I
We are creating a web app where we need to have concurrency for a
I am interested in creating a web app that uses JSP , Servlets and
i'm creating a very simple (hello World quality) web application using spring mvc 3.0.
I have a web app, that also has an iPhone and Android app using
I'm creating a web app using Spring 3 and would like to harness the

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.