EMBEDDED PUBLIC FORMS#

Embedding a Self Servie Public Form Within an External Web Page#

The public form must be embedded inside a .jsp page, with arguments PUBLIC=true and FORM=[insert form name here].

For example: http://localhost:8988/selfService/EmbeddedTestPage.jsp?PUBLIC=true&FORM=WPRPO

To embed the public form, we need to add a ‘jsp include statement’ with page set to the url of the public form'

For example: <jsp:include page="public?FORM=WPRPO" />

Please note that this statement hard codes the web page to load only the WPRPO public form. Changing the FORM argument in the URL will do nothing. A separate external .jsp page will need to be created to embed another public form.

Retrieving Web Resources on the Server#

To retrieve web resources such as page images, we need to include the dynamic web resource path via JSP. To do this, we include the following JSP statements in the external page:

  • <%@ page import="com.highlinecorp.web.*,com.highlinecorp.schema.*" %>
  • <% String resourcePath = Settings.getDynamicWebResourcePath()+"/images/PublicForms/EmbeddedDemo/";%>

The second statement assigns the resource path of all external page images on the server to the Java variable, resourcePath. Each image src in the external page will need to be linked via JSP to this resource path.

For example:
<a><img src="<%=resourcePath%>bnav-sit_off.gif" alt="Site Map" id="bnav-sit" height="13" width="55"></a>