Thursday, August 07, 2008

Tapestry First Impression

To do this, you have need Eclipse J2EE as IDE, Apache Tomcat as application server, and Tapestry Libraries as web component framework.

In Eclipse, make a dynamic web project titled HelloWorld and point target runtime to Apache Tomcat. Import library from Tapestry libraries into WEB-INF/lib/ folder. In WebContent/ folder make 2 files. They are, Home.html and Home.page. Also in src/ folder make a package named com.ndung.helloworld and one Java file in that package named Home.java.

Home.html


Home.java


Home.page

In WEB-INF/ folder edit web.xml:


Run or deploy HelloWorld project in server. Point your web browser into http://localhost:8080/HelloWorld/app

No comments: