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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T21:10:07+00:00 2026-06-17T21:10:07+00:00

Please help me in choosing a very best design pattern for a web application..

  • 0

Please help me in choosing a very best design pattern for a web application..

I have “request and response” parameters which came from a Java Servlet call.. how to design my class so that i can do it effectively, re-usability and to add customized code to serve the response back to the application.

There are around 15 action types basing on the condition i need to do some business logic and PLSQL calls..

Initially I though of to use Factory design pattern for this 15 actions to create 15 classes and to serve the request in a static method having a new instance of 15 diff. classes. Even i got MVC in my mind to design.. but here there is no framework its pure Servlet handling..

But now I decided, before doing the modification I want to know which is the best design pattern to follow

by the by one more question is it good way if i pass the request and response as parameter to the business logic classes and do the modifications ?

  • 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-17T21:10:09+00:00Added an answer on June 17, 2026 at 9:10 pm

    +1 to @Renjith’s comment about not mixing business logic into the servlet level, but if you want to work directly with servlet’s request and response objects, I suggest you take a look at servlet filters and HttpServletRequestWrapper.

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

Sidebar

Related Questions

Please help, I need to pass string to function with few optional parameters which
please help me to identify which of these following is more optimized code? for(int
Please help me I'm developing an android application to display a pinch zoom-able and
I have an application which uses Dijit Combobox. What happens is, I click on
Please help. I have the following - ListView and its two handlers AdminUsersListView_ItemEditing, AdminUsersListView_Load.
I've a web application which returns a set of JSON Data to be displayed
please help, i'm developing an online quiz application. All the questions and answers will
Please help me somebody to convert unicodestring into string This is how i am
Please help me with this update query. I COMPLETELY understand how redundant this is
please help me arrange these 3 buttons horizontally like this photoshopped image: Please take

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.