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

  • Home
  • SEARCH
  • 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 7783617
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T19:53:32+00:00 2026-06-01T19:53:32+00:00

In Struts2, every request create action object. so here no thread. it fully thread

  • 0

In Struts2, every request create action object. so here no thread. it fully thread safe.
But how it give good performance. Here every object work in one stack. (but thread will create multiple stack for execution)

How it handle multipule requests without thread ?

  • 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-01T19:53:33+00:00Added an answer on June 1, 2026 at 7:53 pm

    In short if you know about how exactly S2 work, you will come to know why this was designed this way.

    In S2 your action classes also work as Model object like transferring data from UI to the bean and from bean to UI, this is one of the reason it was decided to make New copies of Action instance for each request.

    Regarding the performance if i am correct creating thread for each request, than framework has to take care of synchronizing the data so that it should be thread safe, is really a big overhead and which will in end will not improve overall performance.

    S2 action are neither servlets nor controllers.I believe you are getting yourself confused with S2 filter and S2 Action classes and in end every request has its own instance of the request scoped S2 action.

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

Sidebar

Related Questions

My questions are: In Struts2, does every action object have its own corresponding ActionContext
The struts2 validation framework allows you to define your validation for an action or
I have been looking how to implement a thing in struts2 jstl but it
My JSP receives an ArrayList of beans from a Struts2 action. I want to
I want to log every user action that change domain in my web application.
Almost every new Java-web-project is using a modern MVC-framework such as Struts or Spring
In every MVC framework I've tried (Rails, Merb, Waves, Spring, and Struts), the idea
We have a Struts 2 web application that's used by pretty much every employee
In struts2 version 2.1.x there is a new UnknownHandler that kicks in when a
In struts2 upload methods, can I choose where the uploaded file must be saved.

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.