Download
FAQ
History
PrevHomeNext API
Search
Feedback
Divider

The Example JSP Pages

This chapter illustrates JSP scripting elements using a version of the hello2 example introduced in Chapter 4--webclient--that accesses a Web service. To build, package, deploy, and run the webclient example:

  1. Build and deploy the JAX-RPC Web service MyHelloService described in Creating a Web Service with JAX-RPC.
  2. In a terminal window, go to <INSTALL>/jwstutorial13/examples/jaxrpc/webclient/.
  3. Run ant build. This target will spawn any necessary compilations and copy files to the <INSTALL>/jwstutorial13/examples/jaxrpc/webclient/build/ directory.
  4. Start Tomcat.
  5. Run ant install. The install target notifies Tomcat that the new context is available.
  6. Open your browser to http://localhost:8080/webclient/greeting

Note: The example assumes that the Java WSDP runs on the default port, 8080. If you have changed the port, you must update the port number in the file <INSTALL>/jwstutorial13/examples/jaxrpc/webclient/response.jsp before building and running the examples.


Divider
Download
FAQ
History
PrevHomeNext API
Search
Feedback
Divider

All of the material in The Java(TM) Web Services Tutorial is copyright-protected and may not be published in other works without express written permission from Sun Microsystems.