1+2) When using Struts with OXF:
a) The controller is Struts
b) The model is your Struts Action class
c) The view is your JSP (generating XML based on the beans provided by the model) and the OXF pipeline (transforming XML into HTML)
Compared to a pure OXF approach, with Struts+OXF you are using the Struts struts-config.xml instead of the OXF Web application controller, the Struts ActionForm instead of XForms, the Struts Validator instead of schema-based validation, and the Struts Action instead of a model implemented in XPL.
If I understand your email correctly, you would like to use Struts with the OXF XForms engine. This is not possible at this point, as Struts comes with its own form handling mechanism, which has nothing to do with XForms. It would be technically possible to modify the Struts code to replace the Struts form handling with the OXF XForms engine, but you would not use much of Struts in this scenario. The main different with a pure OXF approach would be that your model is implemented in a Java class (the Struts Action class), instead of a pipeline. If this is what you are looking for, I suggest you stick to the pure OXF approach and use the Java processor (http://www.orbeon.com/oxf/doc/processors-java) to implement your model in Java.
3) The OXF Struts integration works with Struts 1.1.
Alex
Greg Hess wrote:
Hi All,
I am designing a Struts based application and part of the functionality is to provide a generic process to edit an XML instance where the XML instance, xform-model.xsl and xform-view.xsl are fed into a process that will alter the XML instance.
Preferably I would like to design the main functionality/pages using Struts/JSP and leverage OXF and its XML pipelines to handle my XML instance editing and xforms processing.
1) With this design approach are their any limitations in regards to OXF functionality?
2) Could the Struts functionality be designed and tested first and incorporate OXF at a later stage, are their any implications?
3) What version of Struts is OXF compatible with?
Cheers,
Greg Hess
*Software Engineer*
*Wrapped Apps Corporation*
275 Michael Cowpland Dr.
Suite 201
Ottawa, Ontario
K2M 2G2
Tel: (613) 591 -7552
Fax: (613) 591-0523
1 (877) 388-6742
* <http://www.wrappedapps.com/>*
------------------------------------------------------------------------
_______________________________________________ oxf-users mailing list [EMAIL PROTECTED] http://mail.orbeon.com/mailman/listinfo/oxf-users
_______________________________________________ oxf-users mailing list [EMAIL PROTECTED] http://mail.orbeon.com/mailman/listinfo/oxf-users
