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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T08:58:11+00:00 2026-05-23T08:58:11+00:00

I built a Java web application with multiple servlets and jsps. I first had

  • 0

I built a Java web application with multiple servlets and jsps. I first had servlets only for shopping cart options such as adding products and deleting products etc. But then noticing lot of Java code in jsps I made a servlet for every Dynamic jsp which solved part of my problem. I want to know whether my design is good or bad. Or is their other way to reduce Java code from the jsp?

  • 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-23T08:58:11+00:00Added an answer on May 23, 2026 at 8:58 am

    You could consider a MVC framework such as Spring MVC. This will allow you to consolidate your java code in Controller classes and use JSP’s for what they are generally good for which is serving as a template engine. Plus with Spring you will only need to configure a single servlet for the dispatcher servlet.

    Leveraging an MVC has additional benefits because you are working with a well known abstraction. A lot of boiler plate has been written for you. You can map your model data to simple POJOs that can be rendered cleanly in the JSPs through the Spring Tag Library. The Spring Bean Container will provide boiler plate Dependency Injection code that will allow you to write more modular,testable code faster.

    The net out is working with raw JSPs and Servlets is a thing of the past. A ton of convenience code has been built on top of the spec and its implementations. Any implementation that you do will end up repeating a lot of this work(without the benefit of thousands of users testing it for you).

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

Sidebar

Related Questions

i've build an web application, i have servlet as controler and java classes as
I want to build a secure web-service betweeen a Java producer and a Java
Is there a way to shutdown a computer using a built-in Java method?
We have a Java Applet built using AWT. This applet lets you select pictures
Our build is annoyingly slow. It's a Java system built with Ant , and
In our infrastructure, we have lots of little Java projects built by Maven2. Each
Does Java have a built-in way to escape arbitrary text so that it can
Is there any built-in functionality for classical set operations on the java.util.Collection class? My
Is there a built-in way to escape user input in java using the JDBC
I'm in the process of writing a Java 2D game. I'm using the built-in

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.