The doGet methodAdded by IBM on July 25, 2013 | Version 1 (Original)
|You use the servlet's doGet method to process a request for an XFDL form.
This presumes that you have created a link somewhere, perhaps on a Web page, that triggers the servlet and uses one or more parameters to indicate which form is being requested.
Given this scenario, the following algorithm presents a simple way to respond to such a request:
Parent topic: Normal Servlet Operations
- User clicks a link that requests an XFDL form from the servlet.
- The request falls through the IBMWorkplaceFormsServerServlet to your doGet method.
- In your doGet method, you retrieve one or more parameters from the request object.
- Based on those parameters, you load a form from the local file system, write the form to the output stream of the response object, and set the content type of the response object to application/vnd.xfdl.
Once you have written the form to the response object, you can end your doGet
method. The IBMWorkplaceFormsServerServlet object will continue operations from that point.
- The IBMWorkplaceFormsServerServlet automatically detects whether the user's computer has the Viewer installed, and returns the form in either XFDL or HTML as appropriate.