Launching your application in a browser

Before you can access your WebFacing application in a browser, the application must first be started in WebSphere® Application Server. For information about starting your application in the application server, see the section of this guide: Testing and deploying WebFacing applications .

Once your application is started, it can be accessed through a browser with an address of the form:
http://host_name:<host_port>/<context_root>/
For example, if your server is MYHOST, your port is 9080, and the context root value that you entered for the application in the administrative console is webfacing1, then you would access the application with an address like:
http://MYHOST:9080/webfacing1/

To view the host name for your i5/OS® system, run the command CFGTCP from an i5/OS command line. On the Configure TCP/IP menu, choose option 12 Change TCP/IP domain information and make note of the Host name value. This is the value, without the quotation marks, that you must specify for your host name.

You can also include the file name index.jsp at the end of your addresses. For example, you can use an address of the form:
http://host_name:<host_port>/<context_root>/index.jsp
The index.jsp file is generated by the WebFacing conversion. Most Web server configurations do not require that it is included as part of a URL. That is, in most configurations, if a user enters a URL that ends with the <context_root>, the server by default displays the index.jsp file for that context.

When you access the page, you see links that correspond to the Command labels you chose for the CL commands that you created in the WebFacing Project wizard. By clicking these links, you launch the corresponding applications on your i5/OS server and the output for the application is displayed in your browser.

You can create your own pages to launch your applications. If you want to do this, you can use the webfacing/services/invocation/html/invocations.jsp page as a starting point or add the links in invocations.jsp to your own pages. To use the links, open up a source editor and look for HTML tags that start with <a href= and end with </a>. The anchor tag <a> identifies an HTML link. The href parameter is a required attribute that specifies the link's destination. For example:
<a href="WFInvocation.do?inv=INV1">CALL ORDENTR</a>Launch order entry.
Your links will vary from this depending on the command you are using to call the application. To use the link, copy and paste the link into the source for your HTML pages.

To use any of these links, you will need to copy the javascript source from the <head> section of index.jsp into the <head> section of your own page. This source begins with the tag: <script language="javascript"> and ends with the tag </script>. If you create your own pages, they must be included in the Web application that was created for your WebFacing project.


Feedback