Posted by
haritha on
Mar 10, 2011; 6:00am
URL: https://discuss.orbeon.com/Session-has-expired-When-we-are-importing-the-Orbean-form-by-using-the-c-import-in-our-cms-tp3343498p3345240.html
Just to clarify better, here is the scenario:
We need to include forms developed on Orbeon in our website pages (the pages are jsp based, developed on a CMS). To include the form, we have tried the below approaches:
1. IFrame: We invoked the form URL using an IFrame from the page jsp, it works perfectly well, no errors. but since an IFrame approach also has a few shortcomings on the css and UI of the form-page integration, we are looking for other options.
2. <c:import> tag: We have tried using the c:import tag which comes with JSTL Core Tags Library (
http://www.tutorialspoint.com/jsp/jstl_core_import_tag.htm). With this we were able to get the HTML fragment returned by the form URL("
http://localhost:5050/orbeon/fr/appname/formname/new?orbeon-portlet=true") and include it onto the page, however, it throws the below error when we try to save the form data.
Error : Session has expired.Unable to process the incoming request.
3. Tried jsp:include tags, but it doesnt work either.
Also, we are using the default "eXist" persistence framework that comes with Orbeon, and are not using any customized components, nor have we modified the xpl files or session settings.
I have also looked into the approach described in:
http://wiki.orbeon.com/forms/doc/developer-guide/configuration-properties/configuration-properties-xforms#TOC-Ajax-portletand tried running the sample jsps : "/xforms-jsp/include-form/include-form.jsp" and "/xforms-jsp/include-form/with-dojo.jsp" , but they also seem to not work, and show this error:
Fatal error: The element type "img" must be terminated by the matching end-tag "".
Are there any other alternate approaches for including orbeon forms onto webpages. Any help will be greatly appreciated.
Regards,
Haritha