Integrating custom jsps with Orbeon Form Runner
Posted by Seema Shukla on
URL: https://discuss.orbeon.com/Integrating-custom-jsps-with-Orbeon-Form-Runner-tp3010153.html
Hi Friends,
With reference to our last communication (please refer attached mail), We succeeded in invoking JSP code for table creation at the time of form publishing.
We achieved it by making the following changes in orbeon-form-builder.jar / forms / orbeon / builder / form / dialog-publish.xml.
dialog-publish.xml
____________________________________________________________________________
<xforms:group ref=".[not(normalize-space($response) != '')]">
<xhtml:div class="fb-publish-message">
<xhtml:ol>
<xhtml:li>
<xhtml:a href="/fr/{$metadata-instance/application-name}/{$metadata-instance/form-name}/summary" target="_blank">
<xforms:output value="$form-resources/dialog-publish/messages/open-summary"/>
</xhtml:a>
</xhtml:li>
<xhtml:li>
<xhtml:a href="/fr/{$metadata-instance/application-name}/{$metadata-instance/form-name}/new" target="_blank">
<xforms:output value="$form-resources/dialog-publish/messages/open-new"/>
</xhtml:a>
</xhtml:li>
<!-- Modified Code!>
<xhtml:li>
<xhtml:a href="http:// localhost:8088 / Orbeon_DB / Test / TableCreation.jsp">
Create Table For This Form
</xhtml:a>
</xhtml:li>
<!-- Modified Code Ends!>
</xhtml:ol>
</xhtml:div>
</xforms:group>
________________________________________________________________________________
When the user clicks the link Create Table For This Form, the control transfers to TableCreation.jsp which executes the table creation logic at the time of form-publishing.
We have also written a code that pulls the record from the table orbeon_form_data, after it is entered by the end-user, and saves it in our own tables. We, however, have not been able to locate an invocation point for this jsp. Ideally, we want this code to be invoked when the user clicks the "Save Button" on the form served by the form runner. We extensively perused through orbeon_form_runner.jar but could not find the action that corresponds to the click of the "Save Button".
Could you please help us in resolving this issue ??
Thanks & Regards,
Seema