My Blog List

Saturday 16 July 2011

what is STRUTS 2.O ?

HI!
 Here is all about Struts 2.0
 So let's starts with what is Struts 2.0 ?


Struts 2.0 is a open source framework ,which is used for creating Java Web Application.
This framework is designed for creating web application based on MVC architecture module.
As Struts 2.0 is based on MVC architecture ,it separates business logic code from your page designing or presentation

The main objective of Struts2.0 is to separates Business Logic from Presentation.
The struts2.0 framework was introduced to support the development of a web application with  its set of Application Programming Interfaces(APIs).These APIs provide a specific architecture and a mechanism to reuse the model view and controller parts of a web application.

MVC Design Pattern for Struts 2.0

As we have seen Struts 2.0 based on MVC architecture (i.e. Model View Controller i think there is no need to explain  MVC model in detail because  you are good java programmer :-))
in Struts 2.0  for model (business logic)  we use Java Bean or we can say form Bean,for View we use JSP, HTML and for controller we use FilterDispatcher (nothing but servlet).
in word Struts2.0 programming model ,view and controller are respectively Action,Result and FilterDispatcher classes.


here is an Architeture










Flow of Struts2.0 base Application
  1. User Sends request.
  2. Filterdispatcher determines appropriate action
  3. Interceptors are applied
  4. Executin of action
  5. Output rendering
  6. Returns of request(reverse ordering)
  7. Displays the result to user


thank you for reading
upcomming blog
  How to configure Dababase in Eclipse IDE for HIBERNATE project...

you can request your topic ...:-)