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

Java Server page tutorial part 3: JSP Life Cycle

JSP Life Cycle: A JSP life cycle can be defined as the entire process from its creation till the destruction which is similar to a servlet life cycle with an additional step which is required to compile a JSP into servlet. Following are the steps followed by a JSP Container: ◦ Compilation  ◦ Parsing the JSP.  ◦ Turning the JSP into a servlet.  ◦ Compiling  the servlet.  ◦ Initialization ◦ Execution ◦ Cleanup Architecture: 1.       JSP Compilation: When a browser asks for a JSP, the JSP engine first checks to see whether it needs to compile the page.  If the page has never been compiled, or if the JSP has been modified since it was last compiled, the JSP engine compiles the page. The compilation process involves three steps: ◦ Parsing the JSP. ◦ Turning the JSP into a servlet.  ◦ Compiling the servlet.  2.       JSP Initialization: When a container loads a JSP it invokes the jspInit() method before servicing any requests.  If you need to perform

OPERATION MANUAL FOR RS232 TO RS422/RS485 VICE-VERSA

INTRODUCTION: Milestone model LD-15U is a RS232,  to RS422/RS485 converter is designed for high-speed data transmission between computer system and or peripherals over Iong distance under high noise conditions. They provide dual line interface per signal. APPLICATIONS: Application for these converters can be for factory automation, Programmable logic controllers,, attendance recording systems, Barcode Readers, remote data transmission, remote terminals, EPABX etc. SPECIFICATIONS: Input: RS232-T×D, R×D, DSR (for control), GND (D9 Female connector) Output: RS422/RS485-Tx+, Tx-, Rx+. Rx-(D9 Male Connector). Each signal is protected by spike suppressor, fuse and has opto-isolation. Selection Switch: 1. Rear side has 2-way'SELECT' switch for selecting 2-Wire or 4-Wire mode in RS422/RS485 application. 2. (Optional) Rear side has 3-way'SELECT' switch for selecting AUTO Mode (No Handshake Signal), DSR+ Mode (+12V Control) and DSR-Model (-_12V Control) for co

JSTL-JSP Standard Tag Library part 1

Evolution of JSTL: Java is a flexible, general-purpose programming language, JavaServer pages(JSP) depends on java but hides some of the hard details of writing full- fledged programs.  The JSP Standards Tag Library(JSTL) builds on top of JSP, making it even easier to use. Architecture : In this figure large web applications are designed using java, JSTL, and othe components like databases. In large applications, it's common for requests from web browser to be handled by a java program called a servlet, which interacts with databases and other Java code on the server. The servlet figures out how it wants a response be printed and then forwards the user to the right JSTL page, which takes care of nothing more than presenting information. As JSP grew in popularity, it became clear that different sites' custom tags fell into familiar, frequently used patterns.  For example, many pages needed to loop over data to print tables and lists. Vendors of JSP c