...
...
Section | |||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
...
- LoginAs and session management using API.
- Upload of a sample Tutorial Project into a designer frevvo designer account.
FormTypeFeed:Initialization of a form with XML data, Attachment and Wet Signature
- List Projects, Forms and Workflows
- Raw and Pop-Up links to use Forms/Workflows
- Edit link to edit Forms/Workflows in design mode
- View Submissions link to list all Form/Workflow Submissions
- TaskFeed: embed task list
- SubmissionFeed: Logout of user account using API
- List of all Form/Workflow submissions
- Link to Edit each submission
- Links to submission XMLs
- Link to submission print PDF
- Links to wet signatures in each submission
- Links to uploaded attachments in each submission
...
You will need to do the following to complete this tutorial:
- Install and start up up frevvo. (e.g.http://localhost:8082)
- Create a tenant (e.g. apitutorial) with a tenant admin user (e.g. admin).
- Add a designer user account (e.g. designer) to your tenant.
Follow these steps to install the Java API tutorial web application.
Download the Java API Tutorial v5.2 zipfile.
- Extract the web-application api.war file to the <frevvo-home>\tomcat\webapps directory.
We are using the tomcat servlet which is included in the bundlefrevvo bundle. Re-start frevvo. This will expand the war to the <frevvo-home>\tomcat\webapps\api directory.
...
These client libraries are already added in <frevvo-home>\tomcat\webapps\api\WEB-INF\lib directory of the web application that we are using. However, the actual jar versions may be different depending on the version of frevvo being used. To ensure that you have the latest versions of these files, it is recommended that you replace the client libraries that come with the Java API Tutorial Project with the .jar files located in the <frevvo-home>\ext\client directory of your buildyour frevvo build.
Follow these steps to perform the replacement:
- Stop frevvo.
- Copy the latest jar files from <frevvo-home>\ext\client directory of your buildyour frevvo build.
- Replace the files in the <frevvo-home>\tomcat\webapps\api\WEB-INF\lib directory with the client libraries copied in Step 2 .
Configure and Execute the Web Application
You must update the server frevvo server and tenant information in the doLogin.jsp file for the web application to work. Follow the steps below:
- Edit the <frevvo-home>\tomcat\webapps\api \apitutorial\doLogin.jsp file.
On line number 14, replace the default values with your frevvo server and port number:
Code Block service = new FormsService("http", "localhost", 8082, null); to service = new FormsService("http", "<your-frevvo-server-host>", <your-frevvo-server-port>, null);
On line number 20, replace the default values with the admin username, tenant and admin user password previously created for this tutorial:
Code Block "admin@apitutorial", "admin" to "<your-tenant-admin-user>@<your-tenant>", "< your-tenant-admin-user-password>"
- Save the file and re-start frevvo (tomcat).
To check if your web application is working, browse http://<your frevvo server host>:<port>/api/apitutorial/index.html. E.g. http://192.168.1.71:8082/api/apitutorial/index.html. You should see a login page like this one:
...
- This JSP page contains a small HTML form with a username field which accepts the username the frevvo username to be logged in to.
It also accepts a URL parameter targeturl which is used to redirect the user after login. If a targeturl is not passed to the login.jsp page it will use formtypes.jsp as the default targeturl:
Code Block String url = request.getParameter("targeturl"); if (url == null) url = "formtypes.jsp"; url = "doLogin.jsp?targeturl=" + url;
...