Unlike Struts, Tapestry does not know and understand people. If you still don't know what tapestry is, you can go to its site. TapeStry is one of my favorite MVC development frameworks, and another Cocoon. I used Cocoon two years ago. The version at the time was 1.8. Now it is 2.1.3, which has added a lot of functional characteristics, interested friends can go to research. TapeStry was first in sf.net and added Apache in May this year.
This introduction is to build a development environment of Tapestry, not the TapeStry development guide. Writing this article is to recommend Tapestry to you, let more people understand and use Tapestry very well-developed framework.
Plan a directory structure of the development environment before starting
Tomcatc: / TomcateClipsec: / Eclipse
First, install Tomcat
The Tomcat version I chose is 5.0.12. There is no purpose for selecting this version, you can choose other versions. Download Tomcat from http://jakarta.apache.org/tomcat, install it to the C: / directory. Regarding the specific installation configuration of Tomcat, this is not described here. Please refer to this site will launch the Tomcat installation configuration tutorial.
Use the text editor to open the c: /tomcat/conf/server.xml file, jump to the end of the file, find:
->
Remove this annotation of this sentence and change the properties of the Context element to:
Second, install Eclipse
Spindle is currently only supporting Eclipse 2.x from the Eclipse site http://www.eclipse.org. Unfold the downloaded file to the C: / directory.
Third, install SPindle
Spindle has a bug that does not work normally in J2SDK 1.4.0, it is recommended to upgrade J2SDK to the latest version.
This time you install SPINDLE online with Eclipse's Software Updates, so it is simple. First launch Eclipse, open the menu Help -> Software Updates -> Update Manager
Then build a new Site Bookmark, as shown below
Then enter TapeStry and http://spindle.sourceforge.net/Updates
Next is very simple, you can choose the latest version installation. Restart Eclipse after the installation is complete.
Third, install configuration Tapestry
Download TapeStry from http://jakarta.apache.org/tapestry. Start Eclipse, create a new project, select TapeStry Web Project. Because we have already configured Tomcat's Context, the project name must be Tapestry when creating a new TapeStry Web Project, and the Context Folder must also be Tapestry, and then next Next next. Finally, copy the JAR file under the lib directory in the downloaded Tapestry to the C: / Eclipse / Workspace / TapeStry / TapeStry / Web-INF / LIB directory, which is to run the TapeStry application.
Fourth, simple test
After the installation configuration is complete, it is now simply testing whether the development environment is successful. Add a line in the home.html file:
Hello, Tapesty! span>
Then start Tomcat, access our established TapeStry app through http: // localhost: 8080 / app, if you see "Hello, Tapesty!", Congratulations, TapeStry development environment is successful.
Five, summary
The development environment of building Tapestry is so simple, many of which step I tell very simple, if you don't understand any questions, you can contact Wayne@sentom.net and I can go to this site forum http: // www. Sentom.Net/forum submits your questions and views.