jaxfront logoVersion 3.0

JSP Integration Sample

This demo shows how you may embedd JAXFront into your own JSP using the tag jaxforms.

Here is an example of using the JAXFront JSP tag jaxforms:
<jaxfront:jaxform id="person" xsd="examples/purchaseOrder/po.xsd" xui="examples/purchaseOrder/po.xui" xml="examples/purchaseOrder/po-001.xml"> 
</jaxfront:jaxform>
			
Pass the following parameters for the tag "jaxforms" in your JSP. The bold parameters are mandatory:

Param Description
id This id identifies your jaxfront form.
xsd This is the XSD identifier to generate a new form. You may pass an id or an URL. Check out the class "com.jaxfront.tags.FormTag". In this example the id points to valid XSD location relative to the servlet context. See po.xsd
xml This is the XML identifier to bind to the new form. You may pass an id or an URL. Check out the class "com.jaxfront.tags.FormTag". In this example the id points to valid XML location relative to the servlet context. See po-001.xml
xui This is the XUI identifier (layout & rules) to generate a new form. You may pass an id or an URL. Check out the class "com.jaxfront.tags.FormTag". In this example the id points to valid XUI location relative to the servlet context. See po.xui.

To know more how to create your own XUI, see the XUI editor manual.
Be sure the taglib "jaxfront.tld" can be found. Add the file (you find it in the jaxfront-demo.war) to your WEB-INF/lib directory.
This demo servlet will generate an interactive XHML form based on the following resources:

JAXFront by xcentric technology & consulting GmbH [*].
(c) 2001-2015 Copyright. All rights reserved.