incubator-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <>
Subject [Incubator Wiki] Update of "xap/XAPStruts" by Robert Buffone
Date Thu, 01 Mar 2007 05:45:16 GMT
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Incubator Wiki" for change notification.

The following page has been changed by Robert Buffone:

+ ==Introduction==
  This page describes how to integrate [ Apache XAP] with [
Struts2]. I use the Person Manager struts sample to illustrate how to upgrade an html application
to use XAP. Overall the integration is quite simple.  I was able to repurpose all of the Java
code (Data Model, ActionHandlers) from the sample.  All that needed to be done was to re-write
the *.ftl files to output a combination of <strong>xModify</strong> and <strong>XAL</strong>
instead of html.
- I have uploaded a zip file of the converted Person Manager application to my people directory.
+ I have uploaded a zip file of the converted Person Manager application to my people directory.
 [ Download the XAP Person
Manager Code]  To run the code unzip the archive ontop of the an exploded version of the struts2-showcase-2.0.6.war.
 You can then run the sample by going to http://<server-address>:<port>/struts2-showcase-2.0.6/xap/ajax-index.html
  The reason why integration with web frameworks is so easy, is that the XAP client retrieves
the markup used to describe the application from the server and then renders it entirely on
the client.  This is the opposite of other Ajax toolkits where:
@@ -14, +16 @@

  Another reason that integration is fairly seamless with web frameworks is that XAP communicates
with the server in the same manner that a HTML application does through the use of HTTP get
and posts.  
- In the example
+ ==Sample Walk Through==
+ In the example there are the following files
+ *struts.xml - Added an include to the struts-xap.xml file
+ *struts-xap.xml - Created action handlers for my XAP application.  I used the existing ActionHandler
and beans from the person manager example.
+ *decorators.xml - Add

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message