Hi,
We are trying to import Orbean form in our cms application i.e. Fatwire. We are using tag "c:import" to import the orbean form where url value is http://localhost:5050/orbeon/fr/firstapp/firstform/new but we are getting the error when we are trying to save the data in form i.e. Session has expired.Unable to process the incoming request. We also used tag "i-frame" also and it is working fine with <i-frame/> but that is not recommended to use So Can you please let us know the alternative or some modification in <c:import/> so that we can save the data successfully. Regards, Haritha |
Administrator
|
Haritha,
(Note that some of your XML tags were lost somehow.) I don't know what "c:import" is so can't comment. But more, I am not sure what you are trying to achieve exactly. Which piece of data needs to go from where to where? Please describe your whole setup.
And in what circumstances are you getting this session expired? -Erik
On Wed, Mar 9, 2011 at 4:47 AM, haritha <[hidden email]> wrote: Hi, -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws |
Erik,
Thanks for your reply. Let me explain you the complete scenario. We are integrating the Orbean form with out Fatwire Content Management System i.e. We have already one site which is build on fatwire cms. Now we are integrating the orbean form with our site. Lets suppose we have created one registration form in orbean and now we want that form in our site So to get that form we are using "c:import" tag in jsp which has attribute "url" and in that url we are passing the giving the url of the registration which we created.After integrating form is coming correctly but it is not working. Please find the screen shot attached and code file which we are using to import the orbean form in our application. Note: Can you please let us know suppose you created one orbean form and there is one different Java application So if we want to get any orbean form in your java application how can we get that. Screenshot.xlscode.txt I hope this will help you in understanding our scenario. Please let me know if you need any further information. Regards, Haritha |
Hi Haritha,
How you are accessing seeion variables.in xpl? Smaran -----Original Message----- From: haritha [mailto:[hidden email]] Sent: Thursday, March 10, 2011 10:58 AM To: [hidden email] Subject: [ops-users] Re: Session has expired When we are importing the Orbean form by using the <c:import/> in our cms Erik, Thanks for your reply. Let me explain you the complete scenario. We are integrating the Orbean form with out Fatwire Content Management System i.e. We have already one site which is build on fatwire cms. Now we are integrating the orbean form with our site. Lets suppose we have created one registration form in orbean and now we want that form in our site So to get that form we are using "c:import" tag in jsp which has attribute "url" and in that url we are passing the giving the url of the registration which we created.After integrating form is coming correctly but it is not working. Please find the screen shot attached and code file which we are using to import the orbean form in our application. Note: Can you please let us know suppose you created one orbean form and there is one different Java application So if we want to get any orbean form in your java application how can we get that. http://orbeon-forms-ops-users.24843.n4.nabble.com/file/n3345213/Screenshot.xls Screenshot.xls http://orbeon-forms-ops-users.24843.n4.nabble.com/file/n3345213/code.txt code.txt I hope this will help you in understanding our scenario. Please let me know if you need any further information. Regards, Haritha -- View this message in context: http://orbeon-forms-ops-users.24843.n4.nabble.com/Session-has-expired-When-we-are-importing-the-Orbean-form-by-using-the-c-import-in-our-cms-tp3343498p3345213.html Sent from the Orbeon Forms (ops-users) mailing list archive at Nabble.com. Please do not print this email unless it is absolutely necessary. The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. www.wipro.com -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws |
Smaran,
We are not doing anything to set session variable Actually If we are using i-frame tag then it is able to maintain its session but when we are using c:import tag then its session is getting lost. Note: Here session means I am talking the session variable in orbean form i.e. which is set in xpl file. Regards, Haritha |
How you are setting the session variable in xpl.
-----Original Message----- From: haritha [mailto:[hidden email]] Sent: Thursday, March 10, 2011 11:23 AM To: [hidden email] Subject: [ops-users] RE: Re: Session has expired When we are importing the Orbean form by using the <c:import/> in our cms Smaran, We are not doing anything to set session variable Actually If we are using i-frame tag then it is able to maintain its session but when we are using c:import tag then its session is getting lost. Note: Here session means I am talking the session variable in orbean form i.e. which is set in xpl file. Regards, Haritha -- View this message in context: http://orbeon-forms-ops-users.24843.n4.nabble.com/Session-has-expired-When-we-are-importing-the-Orbean-form-by-using-the-c-import-in-our-cms-tp3343498p3345230.html Sent from the Orbeon Forms (ops-users) mailing list archive at Nabble.com. Please do not print this email unless it is absolutely necessary. The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. www.wipro.com -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws |
This post was updated on .
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-portlet and 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 |
Hi,
Any pointers on the topic will be very helpful. Are there any configuration settings apart from : 1.property as="xs:boolean" name="oxf.xforms.ajax-portlet" value="true" 2. appending "?orbeon-embeddable=true" to the form url needed to make the sample jsps "include-form.jsp" and "with-dojo.jsp" work? Regards, Haritha |
Administrator
|
Haritha,
What you are hitting is a typical case of embedding Form Runner into a page. Doing this requires some work. We have new two built-in ways of embedding: * through the PHP-based TYPO3 CMS [1] * through Liferay with the proxy portlet [2][3] Both implementations do a few things to make the session work. In particular, Ajax requests must reach Orbeon with the same session cookie that loaded the form originally.
So with say c:import, Orbeon Forms responds with HTML but also with a session cookie (JSESSIONID), unless Orbeon Forms shares the same servlet session as your JSP. Then Orbeon Forms Ajax requests that reach the server must have that same JSESSIONID.
That might be the issue you are hitting. Ideally, we would provide out of the box a component to do this, but haven't gotten around to doing that yet.
Now another but similar approach was to use what we called the Ajax portlet, which "include-form.jsp" and "with-dojo.jsp. Now this feature hasn't been tried in a while and it may be broken at the moment. We have some doc on this here:
-Erik [3] https://github.com/orbeon/orbeon-forms/blob/master/src/scala/org/orbeon/oxf/portlet/OrbeonProxyPortlet.scala
On Thu, Mar 10, 2011 at 10:00 PM, haritha <[hidden email]> wrote: Hi, -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws |
Free forum by Nabble | Edit this page |