Select this directory and press Open. Make sure that
Bundled Tomcat is selected for the server and all the other settings are the same as in
the following figure:
Chapter 2
[ 29 ]
Click on Next, to see the following dialog:
You don't have to change anything as NetBeans should be able to find out all the
necessary details automatically. Click on the Finish button, and the new NetBeans
project will be created for you.
Creating Your Working Environment
[ 30 ]
NetBeans structures the project as shown in the following figure:
You can see that the structure of the project as recreated by NetBeans is much closer
to the structure of a standard Java web application (read Appendix A if you are
unsure what this standard structure is).
All the libraries are already in place, and if you want to edit Java classes, their source
code can be found in the Source Packages folder. However, in this chapter we only
need to make sure that working configuration was created successfully, so let's just
run the project and see what will happen.
Chapter 2
[ 31 ]
Hit the F6 key (or press the third from the right button on the toolbar). In the Output
window you will have to wait for Tomcat startup, but then in a few seconds the
default browser's window will open, and in it you will see the Tapestry application
running, as shown in the following figure:
Click on the refresh link a few times to make sure the page is live, and displays the
current time each time after each refresh.
Pages:
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55