The Java EE 6 Tutorial, Volume I

ProcedureDeploying and Running the HelloWorld3 Example

Before You Begin

The application's Run properties must be set to run the RESTful web service. For the provided application, this task has been completed. For future reference, right-click the project node, select Properties, then select Run, and enter the Relative URL. For this example, you would enter /helloGreeting.

  1. Right-click the project node, HelloWorld3, and select Deploy.

  2. Right-click the project node, HelloWorld3, and select Run.

    The Run property does not specify a particular name, so none is shown in the browser window when it displays. The browser window simply shows the message Hello.

  3. Append a name to the URL in the web browser, so that the URL looks like this: http://localhost:8080/HelloWorld3/helloGreeting?name=your_name.

  4. The message Hello and the name your_name display in the browser.