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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T15:58:04+00:00 2026-06-04T15:58:04+00:00

Good day. Having read about Model 2 architecture I got confused about some points.

  • 0

Good day. Having read about Model 2 architecture I got confused about some points.
For example my controller servlet url-pattern is '*.perform'.

  1. How do I access the database and put the bean into the session if my jsp url does not correspond the servlet url-pattern?
  2. If I’ve done the action, why do I use forward? The url remains the same 'actionName.perform'
  3. How should be the app designed for the servlet to process every page and forward to the corresponding JSP without processing it again?
  • 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-04T15:58:06+00:00Added an answer on June 4, 2026 at 3:58 pm
    1. The point of a front controller is that it intercepts all requests. You should never send a request to a JSP directly. Always to some *.perform URL. All your links and forms must poiunt to an *.perform URL.
    2. The forward gives the control, at server-side to another resource. Once the controller servlet has finished its job, it gives the control to the JSP, which generates the markup. This all happens at server-side, and the browser knows nothing about this. It’s absolutely normal for the URL to remain the same.
    3. See 1. I don’t understand what you mean by “without processing it again”, though.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Good day all, I am having some trouble with image permissions. I am loading
Good day everyone. I have been having the same problem all day at work
Good day, If I have for example the documents which have the following fields
Good day, I am having an issue trying to get the Text on a
Good day everybody! Having the following code: template<typename T, typename OutStream = std::ostream> struct
good day, i am having a bit of a problem here. i am using
Good day, I am having a little bit of a problem. I want to
good day! I am having a problem on showing the updated version of my
Good day, I'm having a problem with asp.net 2.0 viewstate. Basically, I want to
Good day everybody, I'm having troubles with the display of a data that does

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.