Tapestry is cool! And Eclipse too!";
return date + message;
}
}
Creating Your Working Environment
[ 42 ]
Right-click on the name of the project in Project Explorer and in the context menu
select Run As | Run on Server. The first time you invoke this command, Eclipse will
ask you to choose the server. Simply choose the existing server as shown in the next
figure, tick the checkbox to always use this server for this project and click on Finish.
Finally, the application runs in the same way, as it did in NetBeans, although this
time it is displayed in the built into Eclipse Web browser rather than an external one.
Notice that it does reflect the changes you have done to the code most recently.
Try to make a change to the Start.java file, it can be as simple as adding an extra
exclamation mark somewhere in the message. Then save the file. If you keep an
eye on the server in the servers view at the bottom of the IDE, you will notice that
Tomcat will restart the application almost immediately. The console view will output
a few lines like these:
Jul 10, 2007 8:07:10 AM org.apache.catalina.core.StandardContext reload
INFO: Reloading this Context has started
[INFO] TapestryFilter Startup time: 382 ms to build IoC Registry, 1,893
ms overall.
Pages:
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65