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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T07:01:15+00:00 2026-06-12T07:01:15+00:00

I have a desktop application from where a client can add a new user,

  • 0

I have a desktop application from where a client can add a new user, can chat with other user etc… I have 2 options now:

  1. To make a handler servlet which will get post request on
    according to request the handler servlet will call required
    servlet(e.g loginServlet, chatServlet , addUserServlet etc)
  2. Directly call the required servlet from client e.g make direct
    request to chatServlet for chat, login and addUser

Remember my client side is a desktop application. Which method is good for implementing and future enhancements.
Thank you

  • 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-12T07:01:16+00:00Added an answer on June 12, 2026 at 7:01 am

    Well,I think you should go with the 1 st Approach by using Front Controller pattern.

    It should consist of only a SINGLE SERVLET which provides a centralized entry point for all requests.This servlet will delegate all request to the required servlet.

    You need to do only following thing to apply the front controller pattern in your application:

           <servlet>
           <servlet-name>////servlet name: FrontController</servlet-name>
           <servlet-class>////Fully qualified servlet name e.g: org.chat.controller.FrontController</servlet-class>
           </servlet>
          <servlet-mapping>
          <servlet-name>FrontController<servlet-name>
          <url-pattern>/*</url-pattern>
    <servlet-mapping>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have implemented a client-server transferring from Windows desktop application to iPhone App. I
I have a desktop application that needs to upload/download images to/from service computer over
I have to pass information from a desktop application to Web application and vice
Work on C# Desktop project,I have an account on paypal ,From my desktop application
We have a WPF Application that runs from both desktop and as a XBAP
I come from the iPhone development world but have never developed desktop applications. Now
I have a desktop application where the user has a library of encrypted ZIP
Thirteen23 have one twitter client application which is amazing. You can see the demo
We have a desktop application run on a few thousand client computers. We want
I have a Java client/server desktop application, where the communication between client and server

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.