Skip to main content

Struts 2 Part1


struts framework struts struts 2 the struts spring struts struts tags struts 1 struts architecture struts example replacing struts jsp framework struts latest version struts tiles struts action struts 2 framework struts 1.3 struts mvc framework struts struts 1.2 web struts struts 3 struts select struts html struts 1.1 struts web struts controller replacing shocks and struts j2ee struts struts mvc architecture struts 2 tags struts validation strut support struts filter used struts struts actionform struts versions jsp struts struts test strut framework struts action mapping struts taglib struts validation framework struts form struts introduction struts application struts html tags struts overview tiles struts struts programming struts 2 project latest struts version introduction to struts framework jsp mvc framework struts example project struts plugin struts project struts tag library struts bean what are struts action struts introduction to struts struts web xml struts documentation struts forward struts development simple struts example struts tld mvc struts sample struts application struts dispatchaction struts property struts formfile struts actionforward mvc architecture in struts struts example program jakarta struts struts servlet struts pdf struts validator struts mvc framework struts framework components simple struts application struts program j2ee with struts framework struts web application struts actionerrors what is struts struts web application example struts framework pdf struts jsp struts tutorial struts web framework struts2 framework struts model spring framework struts 1.2 architecture struts actions struts complete reference struts module struts 1.2 9 ajax with struts struts2 mvc struts action form struts basics struts validator framework struts questions struts tutorial for beginners struts nested validation framework in struts struts2 project struts explained struts bean tag strut replacement struts menu struts actionerror struts 2 x strutin struts book struts 2 mvc struts token strut technology struts action scope struts features struts framework architecture struts 2 tutorial hibernate framework struts2 latest version struts download installing struts struts 1 architecture struts session mvc in struts struts2 tutorial struts example code struts in j2ee struts license struts framework example struts notes ajax struts example struts1 architecture struts in action struts 1 x architecture struts multibox define strut what is struts framework struts framework tutorial j2ee design patterns pdf struts action example jsp struts example struts code struts tutorial for beginners with examples struts 2.0 architecture struts wiki tutorial struts controller in struts structs 2 struts portlet struts scope tomcat struts struts software struts checkbox latest version of struts how struts work struts 2 tutorial for beginners struts forms download struts learn struts strut presentation struts hibernate struts redirect struts radio define struts struts workflow diagram with explanation projects on j2ee x strut action class in struts strut2 struts action classes struts web service struts framework tutorial for beginners struts project download jsf spring integration struts workflow diagram ldap jndi struts configuration j2ee notes advantages of struts difference between struts 1 and 2 jsf struts in struts struts jsf struts login struts architecture diagram how do struts work what is struts 2 what is a strut struts project free download wiki struts what are struts used for strut strut struts layout struct 2 struts configuration file struts iterate struts version history struts2 tutorials ejb database learn struts 2 struts 2 x tutorial struts tutorial video strust 2 meaning of strutted struts 1 tutorial struts template struts mvc tutorial struts action parameter structs tutorial struts framework tutorial pdf struts include why struts strutss stratus 2 about struts jsp struts tutorial struts tutorial step by step struts source code basics of j2ee struts basics for beginners struts config xml file application of struts struds tutorial struts framework tutorial for beginners pdf struts framework download struts 2 framework tutorial struts concepts struts 2 architecture diagram what is the use of struts struts 3.0 tutorial struct tutorial use of struts structs framework components of struts learn struts step by step advantages of struts framework struts 2 basics architecture of struts latest version of struts framework struts history what is struts config xml struct framework struts framework wiki struts beginners tutorial struts jsp tutorial struts with web services example why use struts client framework struts 1.2 framework tutorial learn struts2 why struts framework is used jakarta struts pdf simple struts program struts config xml tutorial the struts download what is struts2 struts sample code how to use struts struts mvc architecture diagram jakarta struts framework advantages of struts 2 over struts1 struts action types design patterns in j2ee 2 status struts architecture pdf strut framework tutorial struts 1 framework tutorial difference between struts and servlets

Struts 2, Introduction To Struts Framework
Let us see the quick and brief introduction to struts 2 framework, struts is an open source framework given by Apache software foundation under one of its projects called Jakarta.  Struts are the framework, used to develop web applications for java with mvc2 architecture.
Actually struts 1 was introduced in 2004 and this framework is failed to satisfy the needs of customers in today’s worlds,  finally, Apache joined with OpenSymphony and created struts2.x.
struts 2 = webwork2 + struts 1
webwork2 is the framework from OpenSymphony,  java based mvc2.
You know what struts 2 is not an extension of struts 1, it's the combination of struts 1 and webwork2 some features taken from struts1 and some from webwork2 and finally released this struts2 framework.
 Types of frameworks
Frameworks are divided into 2 types,
  • Invasive
  • Non-Invasive
Invasive means, it will force the programmers to create their classes by extending or implementing from per-defined classes or interfaces provided by that framework.  Non-Invasive means it won't forces the programmer to extend or implement its own classes or interfaces.
Struts are the type of Invasive framework.
 Why struts so popular
  • Struts supports extensive validations where other frameworks doesn’t
  • Having inbuilt support for I18N
  • Struts 2 actions classes are spring friendly so we can easily integrate
  • In build, AJAX themes to make the applications more dynamic
  • Finally, good framework for front end based applications, I will explain this point later haha
 Model 1 and Model 2 (MVC) Architecture
Before developing the web applications, we need to have an idea about design models. There are two types of programming models (design models)
  1. Model 1 Architecture
  2. Model 2 (MVC) Architecture

 

Model 1 Architecture

Servlet and JSP are the main technologies to develop the web applications.
The servlet was considered superior to CGI. Servlet technology doesn't create a process, rather it creates a thread to handle the request. The advantage of creating a thread over process is that it doesn't allocate separate memory area. Thus many subsequent requests can be easily handled by the servlet.
The problem in Servlet technology Servlet needs to recompile if any designing code is modified. It doesn't provide separation of concern. Presentation and Business logic are mixed up.
JSP overcomes almost all the problems of Servlet. It provides better separation of concern, now presentation and business logic can be easily separated. You don't need to redeploy the application if JSP page is modified. JSP provides support to develop the web application using JavaBean, custom tags, and JSTL so that we can put the business logic separate from our JSP that will be easier to test and debug. 

Comments

Popular posts from this blog

దోసకాయ పూర్ణం | cucumber curry

How to merge Objects in Javascript

 let person = {     firstName: 'Rocky',     lastName: 'g',     age: 23 }; let job = {     jobTitle: 'Angular Developer',     location: 'UK' }; let employee = {     ...person,     ...job }; console.log(employee);

క్యారెట్ ఊరగాయ | carrot pickle