|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.oroad.stxx.xform.XMLFormHandler
Loads and populates xml forms.
| Constructor Summary | |
XMLFormHandler()
|
|
| Method Summary | |
protected org.w3c.dom.Document |
extractModel(java.lang.String path)
Extracts an xml form model from an xform file |
void |
init(javax.servlet.ServletContext ctx,
org.apache.struts.config.ModuleConfig moduleConfig,
java.util.Map moduleProps,
StxxProperties stxxProps)
Initializes variables and loads the xml models from either an xml model file or the xforms themselves. |
protected void |
loadModelsFromXForms()
Loads the xml form models from within the xforms themselves. |
protected void |
loadModelsFromXML(java.lang.String path)
Loads the xml form models from the model xml file. |
void |
populateXMLForm(org.apache.struts.action.ActionMapping mapping,
XMLForm xform,
javax.servlet.http.HttpServletRequest request)
Populates the XML form. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public XMLFormHandler()
| Method Detail |
public void init(javax.servlet.ServletContext ctx,
org.apache.struts.config.ModuleConfig moduleConfig,
java.util.Map moduleProps,
StxxProperties stxxProps)
throws javax.servlet.ServletException
ctx - The servlet contextmoduleConfig - The module configmoduleProps - The stxx plugin propertiesstxxProps - stxx properties
javax.servlet.ServletException - If anything goes wrong
public void populateXMLForm(org.apache.struts.action.ActionMapping mapping,
XMLForm xform,
javax.servlet.http.HttpServletRequest request)
mapping - The action mappingxform - The xml formrequest - The http request
protected void loadModelsFromXForms()
throws javax.servlet.ServletException
javax.servlet.ServletException - If something goes wrong
protected void loadModelsFromXML(java.lang.String path)
throws javax.servlet.ServletException
path - The path to the model xml file
javax.servlet.ServletException - If something goes wrong
protected org.w3c.dom.Document extractModel(java.lang.String path)
throws javax.servlet.ServletException
path - The path to the xform file
javax.servlet.ServletException - If something goes wrong
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||