Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

You can open a web browser to http://localhost:8080/tutorial1/ to see the running application:

Default Start page for Application

The ApplicationThe date and time in the middle of the page proves that this is a live application.
Let's look at what Maven has generated for us. To do this, we're going to load the project inside Eclipse and continue from there.

...

Choose the "existing projects" option:

Import Project into Eclipse

Now EclipseNow select the folder created by Maven:

Select folder to import

When importWhen you click the Finish button, the project will be imported into the Eclipse workspace.
TODO: Picture of Java Browsing Perspective

...

Choose the Run ... item from the Eclipse Run menu to get the launch configuration dialog:

Eclipse Run Dialog

Select DialogSelect Jetty Web and click the New button:

Eclipse Launch Configuration

We've filled in a name for our launch configuration, and identified the project. We've also told Jetty Launcher where our Jetty installation is. We've identified the web context as src/main/webapp, and we've turned on NCSA logging for good measure.
In addition, we've set up the context as "/tutorial1", which matches what our eventual WAR file, tutorial1.war, would be deployed as inside an application server.

...

Make sure you save changes; then click the refresh link in the web browser:

Application after live class reloading

This reloadingThis is one of Tapestry's early wow factor features: changes to your component classes are picked up immediately. No restart. No re-deploy. Make the changes and see them now. Nothing should slow you down or get in the way of you getting your job done.

...