Struts 2 Framework Tutorial Session 1 Introduction to Struts 2 Framework part 1
Uploader Comments (java9s)
All Comments (31)
-
The English in this video is not clear.
-
U need to go to a good spoken english institute.
And in some places it seemed like u were just reading something from the book.
And 'uh umm responsibilty' made it really horrible. Overall it was not a good tutorial
-
I can't understand u. U sound like u got peanutbutter on the roof of your mouth...
-
what a disgusting voice...
-
I have never met a professor that has explained these concepts as clear and concise as Srinivas. :)
-
You know what is funny? These fucking arrogant developers that have a broom up their ass always criticize and treat junior developers like shit and never, and I mean NEVER want to help anyone. They just want to chat about between their own arrogant friends. That's developers for you. Well, Srinivas is not one of those people. He is a wonderful person! :)
-
Great tutorial, what do you think about Spring?
-
That's a great info and well furnished, well knowledged explanation.
Thank you very much for very appreciable tutorial in video.
-
Not really, Im not an english native speaker but I understand him all !
-
very hard to understand your accent .. but great work
Hi very good and nice..
I 've a doubt. u said in struts2 for every request a new instance will be created with holding parameters ( avoinding form beans). The instance creation of action is only once or for every request new action class instance created?
naveen852 1 year ago
@naveen852 Yes. There will be new Instance of Action will be created for Every request as now the request parameters are mapped to the Action Instance. So obviously every request need to have Its own copy Action Instance.
This decision of mapping Form fields directly to Struts help using the Action Instance as Domain object directly. Remember that there is no need to extend any class from the Framework as it was in Struts 1.x. This keeps Classes clean and maintain less dependency on Struts.
java9s 1 year ago
@java9s .Thanks that was clear and helpful. But in struts 1.x acition servlet will create the instance of struts action right. SO for the life cycle of action class only on instance will be created and for each request a new thread will created right. Is in struts 2.0 also action instance is only one time creation or?
naveen852 1 year ago
@naveen852 Yes Naveen. In Struts 2 if there are 100 requests, there will be 100 action instances created. Where as in Struts 1.x if there are 100 requests, there will be only one instance of Action will be created. Hope this clarifies
java9s 1 year ago
@naveen852 If you consider JSP as the view, the servlet which acts as a controller will delegate the responsiblity of responding to the request to the Controller generated by translating the JSP. So it this controller which responds to the client. I feel i am correct in this place. There is no problem even if the same controller takes the responsibility to respond to the client. Both ways it is correct.
java9s 1 year ago