I am quite new to XmlBeans, but I have been playing around for some
weeks.  What I need to do is to produce xml documents by getting 
users to fill in html forms.  Solution is based on Tomcat, Java 
servlets, Velocity and Spring.

My naive approach is to use a simple model-view-controller pattern 
where the controller takes the HttpRequest.parameterMap and an 
XmlObject class, use reflection and makes an instance of the 
XmlObject.  This is not hard, but a little bit involved because
String properties are handled differently from other properties.
(I.e. xsetXXX and xgetXXX to get real XmlSimpleType objects whereas
non-String objects use getXXX, setXXX and addNewXXX.)

The other way around, i.e. for the model, I have a generic class
XmlModel to make it easy for Velocity to extract presentation 
information and validation information from XmlObjects and into 
html pages.  By the use of reflection my object is populated with
all XmlSimpleType properties from an XmlObject object.

A few questions:

  1. Has anyone here done something similar?
  2. Are there any obvious tools I that I have overseen?
  2. Is my approach otherwise sensible?
 
-- 
   Jon Haugsand



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to