Struts learning handbook

xiaoxiao2021-03-06  45

Http://www.caterpillar.onlyfun.net/pmwiki/pmwiki.php/opensource/strutsgossip

Strutsgossip

Edit this page Literature Preview Group recently updated this page update process

Model 2 is a mainstream mode of designing Web applications, but also verified the best Web layer architecture mode, at the Javaworld Conference in February 1999, Govind Seshadri

Understanding JavaServer Pages Model 2 ARCHITECT I clearly pointed out that Model 2 is a kind of

MVC mode.

Jakarta Struts is supported by web MVC development models

Framework, by

Craig McClanahan launched the project in March 2000, currently

A sub-project in the Apache Jakarta project, even if Struts currently says its design poorly unsteado, it is more staff, and the document is rich. It is still a high-tech MVC when the industry develops web applications. Framework selection.

Learning handbook

This will sort out my understanding of Struts, and servlet container used during the finishing process is

Tomcat 5.5.4, Struts version is 1.2.4, and Struts 1.2 has also made a lot of improvements, you can take a look at 1.2

Release Notes understands some changed content.

Struts core framework

The main category of MVC and some auxiliary categories are supported in Struts, which will better understand the MVC's operational process in Struts.

Struts Basic Workflow The First Struts Program Introduction RequestProcessor Introduction ActionMapping Introduction Action Message Management Internationalization Information Use Actionform Servo Table Single Authentication Exception Struts Aided Scheme

In addition to basic MVC architectural support, Struts provides some auxiliary programs for some advanced issues that may face when actually developed, and you can consider whether these programs are used to save time to develop similar tools.

Using Dispatchaction Using LookUpdispatchaction Using DynaActionform Map-Backed ActionForm ActionMappings Wong-term Modular Module Chemical Plugin interface acquisition DataSource Archive upload Struts Tag Library

If your View layer technology is using JSP, and you want to develop quickly, make full use of the Struts framework, you can use the Struts tag library, try to have criticism, but use it to save a lot of effort.

Use struts tags

If you are using a version of JSP 2.0, the Bean tab allows you to get a Scriplet to get a servlet-related message. If you are using JSP 2.0, you can use Expression Language and its hidden object to replace some Bean tags.

Other Bean Tag Reference

Struts HTML tag components are used to replace some static HTML components, which allows you to use the Struts framework in the JSP page, like ActionForm binding, unified message management, etc., but also give it, what you pay is The coupling of the VIEW layer and the Struts frame may be increased.

, , , Other HTML tag reference Logic tab Mainly related to page rendering logic, decision to present according to the specified criteria Components, Struts's Logic tag overlaps part of the tags in JSTL, so it is recommended that you use the Struts's Logic tag as an auxiliary tag outside JSTL.

Other logic tags Reference Validator Framework

The Jakarta Commons Validator framework can move the validation logic to the ActionForm, the auxiliary Struts developers use or self-order the verification of the client and the servo.

Set Validator Framework Client Verifier Servo End Verifier Validator Message Management Built-in Verifier Self-subscription Verifier Tiles Template Engine

Tiles is a template engine that allows web configurations (Layout) tags to separate, providing a layout management mechanism.

Set the Tiles template engine using XML management template resources using JSP management template resources

Reference

Struts's reference is a lot, casually

Google will have a bunch of, but most of them are English, Chinese resources are more zero, which is collected from several comparison Struts resource websites.

Struts API Struts User Guide Struttin 'with Stuts Struts User Guide Simplified Chinese Translation DeveloperWorks Struts Free E-Book

转载请注明原文地址:https://www.9cbs.com/read-56860.html

New Post(0)