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: Deploying WebFacing applications to WebSphere Application Server .

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 MYSERVER, 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://MYSERVER:9080/webfacing1/
The host name for your iSeries server is case sensitive. To see what this value should be, run the command CFGTCP from an iSeries 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.
Note: In WebSphere Application Server 3.5, the Create Web Application wizard by default adds /webapp/ to the Web path name for an application unless you have specified otherwise. To see what the host name should be, you would access your application with an address like:
http://MYSERVER:9080/webapp/webfacing-proj1/
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 iSeries 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 tag <a href> identifies an HTML link. For example:
<a href="WFInvocation.do? inv=INV1">CALL ORDENTR</a>Launch order entry.</a>
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.
Related concepts
Deployment descriptor