HI All,
I have a requirement to forward the control to and fro from my web application to Orbeon and vice versa(in the same application not seperate app i.e., my app and Orbeon). I would like to display my index.jsp first then from this I would like to forward to the Orbeon page. I am unable to achieve this requirement. Please anybody help me... Thanks & Regards, Ingoba |
Administrator
|
Ingoba,
If using separate deployment, you're not really forwarding to Orbeon Forms from your application, but rather have a subset of your pages that generate XForms which will be processed by Orbeon Forms before being sent to the browser. You can find more about this on: http://www.orbeon.com/ops/doc/reference-xforms-java Alex |
Thanks for your kind information. But i am not using seperate deployment. I am using the integrated deployment. My web.xml is : <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd"> <web-app> <display-name>Liteweight Customization Tool</display-name> <description> Orbeon Forms is an open source forms solution that handles the complexity of forms typical of the enterprise or government. It is delivered to standard web browsers (including Internet Explorer, Firefox, Safari and Opera) thanks to XForms and Ajax technology, with no need for client-side software or plugins. Orbeon Forms allows you to build fully interactive forms with features that include as-you-type validation, optional and repeated sections, always up-to-date error summaries, PDF output, full internationalization, and controls like auto-completion, tabs, dialogs, trees and menus. </description> <context-param> <param-name>oxf.resources.factory</param-name> <param-value>org.orbeon.oxf.resources.PriorityResourceManagerFactory</param-value> </context-param> <context-param> <param-name>oxf.resources.priority.1</param-name> <param-value>org.orbeon.oxf.resources.WebAppResourceManagerFactory</param-value> </context-param> <context-param> <param-name>oxf.resources.priority.1.oxf.resources.webapp.rootdir</param-name> <param-value>/WEB-INF/resources</param-value> </context-param> <context-param> <param-name>oxf.resources.priority.2</param-name> <param-value>org.orbeon.oxf.resources.ClassLoaderResourceManagerFactory</param-value> </context-param> <context-param> <param-name>oxf.classloader.enable</param-name> <param-value>false</param-value> </context-param> <context-param> <param-name>oxf.classloader.ignore-packages</param-name> <param-value>java. javax. org.apache.log4j. org.xml. org.w3c.</param-value> </context-param> <context-param> <param-name>oxf.properties</param-name> <param-value>oxf:/config/properties.xml</param-value> </context-param> <context-param> <param-name>oxf.initialize-logging</param-name> <param-value>true</param-value> </context-param> <filter> <filter-name>ops-xforms-filter</filter-name> <filter-class>org.orbeon.oxf.servlet.OPSXFormsFilter</filter-class> </filter> <filter-mapping> <filter-name>ops-xforms-filter</filter-name> <url-pattern>/xforms-jsp/*</url-pattern> </filter-mapping> <servlet> <servlet-name>ops-main-servlet</servlet-name> <servlet-class>org.orbeon.oxf.servlet.OPSServlet</servlet-class> <init-param> <param-name>oxf.main-processor.name</param-name> <param-value>{http://www.orbeon.com/oxf/processors}page-flow</param-value> </init-param> <init-param> <param-name>oxf.main-processor.input.controller</param-name> <param-value>oxf:/page-flow.xml</param-value> </init-param> <init-param> <param-name>oxf.error-processor.name</param-name> <param-value>{http://www.orbeon.com/oxf/processors}pipeline</param-value> </init-param> <init-param> <param-name>oxf.error-processor.input.config</param-name> <param-value>oxf:/config/error.xpl</param-value> </init-param> <init-param> <param-name>oxf.http.accept-methods</param-name> <param-value>get,post,head,put,delete</param-value> </init-param> <load-on-startup>1</load-on-startup> </servlet> <servlet> <servlet-name>hhprofileconfigdatarmanager</servlet-name> <servlet-class>com.ipass.apps.hct.controller.HHConfigDataManager</servlet-class> <load-on-startup>1</load-on-startup> </servlet> <servlet> <servlet-name>filecontroller</servlet-name> <servlet-class>com.ipass.apps.hct.controller.FileController</servlet-class> </servlet> <servlet> <servlet-name>ops-xforms-server-servlet</servlet-name> <servlet-class>org.orbeon.oxf.servlet.OPSServlet</servlet-class> <init-param> <param-name>oxf.main-processor.name</param-name> <param-value>{http://www.orbeon.com/oxf/processors}pipeline</param-value> </init-param> <init-param> <param-name>oxf.main-processor.input.config</param-name> <param-value>oxf:/ops/xforms/xforms-server.xpl</param-value> </init-param> <init-param> <param-name>oxf.error-processor.name</param-name> <param-value>{http://www.orbeon.com/oxf/processors}pipeline</param-value> </init-param> <init-param> <param-name>oxf.error-processor.input.config</param-name> <param-value>oxf:/ops/xforms/xforms-server-error.xpl</param-value> </init-param> <load-on-startup>1</load-on-startup> </servlet> <servlet> <servlet-name>ops-renderer-servlet</servlet-name> <servlet-class>org.orbeon.oxf.servlet.OPSServlet</servlet-class> <init-param> <param-name>oxf.main-processor.name</param-name> <param-value>{http://www.orbeon.com/oxf/processors}pipeline</param-value> </init-param> <init-param> <param-name>oxf.main-processor.input.config</param-name> <param-value>oxf:/ops/xforms/xforms-renderer.xpl</param-value> </init-param> <init-param> <param-name>oxf.error-processor.name</param-name> <param-value>{http://www.orbeon.com/oxf/processors}pipeline</param-value> </init-param> <init-param> <param-name>oxf.error-processor.input.config</param-name> <param-value>oxf:/config/error.xpl</param-value> </init-param> </servlet> <servlet> <servlet-name>display-chart-servlet</servlet-name> <servlet-class>org.jfree.chart.servlet.DisplayChart</servlet-class> <load-on-startup>2</load-on-startup> </servlet> <servlet> <servlet-name>exist-xmlrpc-servlet</servlet-name> <servlet-class>org.exist.xmlrpc.RpcServlet</servlet-class> </servlet> <servlet> <servlet-name>exist-rest-servlet</servlet-name> <servlet-class>org.exist.http.servlets.EXistServlet</servlet-class> <init-param> <param-name>basedir</param-name> <param-value>WEB-INF/</param-value> </init-param> <init-param> <param-name>configuration</param-name> <param-value>exist-conf.xml</param-value> </init-param> <init-param> <param-name>start</param-name> <param-value>true</param-value> </init-param> <load-on-startup>2</load-on-startup> </servlet> <servlet> <servlet-name>exist-webdav-servlet</servlet-name> <servlet-class>org.exist.http.servlets.WebDAVServlet</servlet-class> <init-param> <param-name>authentication</param-name> <param-value>basic</param-value> </init-param> </servlet> <servlet> <servlet-name>exist-atom-servlet</servlet-name> <servlet-class>org.exist.atom.http.AtomServlet</servlet-class> <init-param> <param-name>authentication</param-name> <param-value>basic</param-value> </init-param> </servlet> <servlet-mapping> <servlet-name>hhprofileconfigdatarmanager</servlet-name> <url-pattern>/hhprofileconfigdatarmanager</url-pattern> </servlet-mapping> <servlet-mapping> <servlet-name>filecontroller</servlet-name> <url-pattern>/filecontroller</url-pattern> </servlet-mapping> <servlet-mapping> <servlet-name>ops-main-servlet</servlet-name> <url-pattern>/</url-pattern> </servlet-mapping> <servlet-mapping> <servlet-name>ops-xforms-server-servlet</servlet-name> <url-pattern>/xforms-server/*</url-pattern> </servlet-mapping> <servlet-mapping> <servlet-name>ops-renderer-servlet</servlet-name> <url-pattern>/xforms-renderer</url-pattern> </servlet-mapping> <servlet-mapping> <servlet-name>exist-xmlrpc-servlet</servlet-name> <url-pattern>/exist/xmlrpc</url-pattern> </servlet-mapping> <servlet-mapping> <servlet-name>exist-rest-servlet</servlet-name> <url-pattern>/exist/rest/*</url-pattern> </servlet-mapping> <servlet-mapping> <servlet-name>exist-webdav-servlet</servlet-name> <url-pattern>/exist/webdav/*</url-pattern> </servlet-mapping> <servlet-mapping> <servlet-name>exist-atom-servlet</servlet-name> <url-pattern>/exist/atom/*</url-pattern> </servlet-mapping> <servlet-mapping> <servlet-name>display-chart-servlet</servlet-name> <url-pattern>/chartDisplay</url-pattern> </servlet-mapping> <session-config> <session-timeout>30</session-timeout> </session-config> <welcome-file-list> <welcome-file>welcome.html</welcome-file> </welcome-file-list> </web-app> The problem is I couldn't start the application with my welcome.html. Please help me. Thanks, Ingoba |
Administrator
|
Ingoba,
I see. You have the following mapping in your web.xml: <servlet-mapping> <servlet-name>ops-main-servlet</servlet-name> <url-pattern>/</url-pattern> </servlet-mapping> That means that all the paths will go to the Orbeon Forms servlet (except the others that you have mapped explicitly). So a request to /welcome.html will run Orbeon Forms which will look for that page in the page-flow.xml (and most likely won't find it). If you want to path not to processed by Orbeon Forms, you need to be more restrictive in the paths you map to Orbeon Forms, say by just mapping /forms to the ops-main-servlet. In addition, you will need to map at least /ops and /config from which Orbeon Forms loads resources it needs. Alex |
Thank you very much. I am able to display the welcome page.
Ingoba
|
Administrator
|
Ingoba,
Excellent. Thank you for the update, and I am glad this helped. Alex |
Free forum by Nabble | Edit this page |