WebWork2 initial contact

xiaoxiao2021-03-06  40

Download address

https://webwork.dev.java.net/servlets/projectdocumentlistListListListListListListListListListListListListListList

Download zip package, unzip, first look at Document Doc / Index.htm, Documentation-> Geting Started

2. Installation

The installation steps are in detail here. But it is always in English, it seems to be more slower than Chinese.

Installation is actually very simple. Nothing is copying a few JAR

The package under WebWork- (Version) .jar, / lib / core is the most important. You should copy to WebApp's Web-INF / LIB, in addition, copy the / src / webapp / template to copy a past, and finally, the web application directory structure is as follows

/ MyWebApp /

/ MyWebApp / Template /

/ mywebapp / meta-inf /

/ myWebApp / Web-INF /

/ myWebapp / web-inf / class /

/ myWebapp / web-inf / lib /

/ myWebapp / web-inf / lib / core & optional * .jar

/MYWEBAPP/Web-inf/web.xml

3. Run Demo

Copy WebWork-Example.War to WebApps, extract to WebWork-Example, start Tomcat, enter

Http: // localhost: 8080 / WebWork-Example can see the DEMO page.

4. Frequently Asked Questions

In clicking Demo

Simple Counter Using A

VelocityResult

Abnormal:

Java.lang.illegalargumentException: no such setting: webwork.i18n.encoding

Workaround: Find the web-esample / web-inf / class / web.properties file,

Find web.custom.properties = test, COM / OpenSymphony / Webwork / OtherTest, in front, add notes ###

Let's add a Webwork.i18n.Encoding = GBK, restart Tomcat, try again.

5. Related links

Http://forum.javaeye.com/viewtopic.php?t=6529 Webwork2 Memorial Solution

Http://forum.javaeye.com/viewtopic.php?t=7958&postdays=0&portr=asc&Start=0 Webwork2 Spring Hibernate experience

Http://moxie.blogdriver.com/diary/moxie/inc/webwork.doc Webwork tutorial

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

New Post(0)