Appfuse tutorials

来源:互联网 发布:asp asp.net php 编辑:程序博客网 时间:2024/06/03 01:35

AppFuse Tutorials

If you've just downloaded AppFuse and want to setup it up on your machine, your best bet is the QuickStart Guide. Once you've got everything setup, the tutorials below are a great resource for learning how to develop with AppFuse. NOTE: These tutorials are included in AppFuse's distribution. If you want to update your project's copy (in the docs directory), run "ant wiki".

As of 1.6.1, you can generate most of the code covered in these tutorials. If you're using Struts+Hibernate, you can generate allof it. For Spring and WebWork, it was too much trouble to write theinstallers so you will need to manually configure the Controllers andActions. This was mainly due to the fact that I'm not using XDoclet forthese web frameworks and the limitations of using Ant as an installer.The AppGen tool which generates the code is covered in Part I.

There's also an AppFuse Generator project that has similar functionality to AppGen.

Part I: Creating new DAOs and Objects in AppFuse - A HowTo for creating Java Objects (that represent tables) and creating Java classes to persist those objects in the database.


Translations: Chinese, Portuguese, Spanish

Part II: Creating new Managers - A HowTo for creating Business Facades that talk between the database tier (DAOs) and the web tier (Actions or Controllers).


Translations: Chinese, Portuguese, Spanish

Part III: (Struts) Creating Struts Actions and JSPs- A HowTo for creating Actions and JSPs in your AppFuse project.Includes generating JSPs and customizing them to look good. Also, youwill write a WebTest to test the JSPs functionality. Other webframework options are as follows:


Translations: Chinese, Portuguese
  • Spring: Creating Spring Controllers and JSPs

Translations: Portuguese
  • WebWork: Creating WebWork Actions and JSPs
  • JSF: Creating JSF Beans and JSPs
  • Tapestry: Creating Tapestry Pages and Templates

Part IV: (Struts) Adding Validation and List Screen- Adding validation logic to the personForm so that firstName andlastName are required fields and adding a list screen to display allperson records in the database.


Translations: Chinese, Portuguese
  • Spring: Adding Validation and List Screen

Translations: Portuguese
  • WebWork: Adding Validation and List Screen
  • JSF: Adding Validation and List Screen
  • Tapestry: Adding Validation and List Screen
NOTE: You can generate the files created in these tutorials by using AppGen.If you experience problems - you should be able to compare your resultsto what AppGen does. To do this, cd into extras/appgen, and run "anttest-detailed". This will create an "appfuse-appgen" project, generatethe code in these tutorials, and test everything.

Thomas Gaudin's Excellent AppFuse Tutorials

Thomas Gaudin has put together a couple of detailed and easy-to-follow tutorials on his site.

  • Handling Dates with AppFuse and Struts
  • Building a persisted dynamic web tree
  • Flexi-Float Sitemesh decorator for AppFuse
  • Lucene Integration with Spring and Hibernate

Related AppFuse HowTos

  • How I setup my Development Environment.

Translations: Portuguese
  • Developing your AppFuse application in Eclipse.

Translations: Portuguese
  • Using AppFuse with MyEclipse: Part I and Part II.
    • AppFuse also supports IDEA 4.0 out-of-the-box, or at least the project files are included.
  • How to run your AppFuse web application and testcases in a debugger.
  • Using Anthill or CruiseControl to automate AppFuse testing.
  • How do I create object relationships with Hibernate.
  • How to run AppFuse on Resin.
  • How to run AppFuse on Orion.
  • How to run AppFuse on Oracle.
  • How to run AppFuse on DB2.
  • How to run AppFuse on PostgreSQL.
  • How to run AppFuse on MS SQL.
  • How to use Velocity Templates instead of JSPs.
  • XDoclet Template for Hibernate in Eclipse.
  • How to add a library dependancy into AppFuse.
  • How to add a servlet into AppFuse.
  • How to autogenerate PDF documents from DAO layer.
  • How to automatically generate random data.
  • How to integrate code coverage tool with appfuse

Server Configuration

  • Apache 2.x and SSL
  • Apache 2.x and Tomcat 4.x
    • Apache/Tomcat/SSL in Real-Time
  • Apache 1.3.x and Tomcat 4.x
  • Starting Apache and Tomcat

  • Jabber Server Setup (1.4.2)
  • Securing Directories in IIS
  • Tips for configuring Tomcat

Other

  • AppFuse Developer Tips
  • AppFuse Rich Client Integration
  • Appfuse Visualised Beans

Outdated Articles that still get some traffic:

  • Struts Example for iPlanet
  • Wiki Evaluation (Java-based)
原创粉丝点击