Struts 2 Framework Tutorial Session 1 Introduction to Struts 2 Framework part 1

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
96,376
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Sep 1, 2010

Struts 2 Framework is a powerful framework. It has a lot of advantages when compared to other MVC web based frameworks. Struts 2 Tutorial gives an overview of how the request is processed in Struts 2 Framework. How Interceptors come to give a Huge advantage to Struts 2 Framework. Struts 2 Framework uses OGNL which is more powerful and is used with Ajax, JSP, VELOCITY, SiteMesh etc.
The power point of this video can be downloaded from http://java9s.com
This tutorial is for the J2EE professionals who have worked on Servlets, Java server pages, JSP, Filters.

Category:

Education

Tags:

License:

Standard YouTube License

  • likes, 9 dislikes

Link to this comment:

Share to:

Uploader Comments (java9s)

  • 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 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 .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 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

  • @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.

see all

All Comments (31)

Sign In or Sign Up now to post a comment!
  • 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.

  • @shanakamm

    Not really, Im not an english native speaker but I understand him all !

  • very hard to understand your accent .. but great work

Loading...

Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more