Currently, I change the JSP through VI, then shutdown Tomcat inside
Eclipse, then do clean-and-rebuild, then restart Tomcat to test.
There must be a smarter/faster way to test JSP changes.
Thanks for comments,
Jimmy
Hi,
An easy way the use Eclipse and Tomcat is by using the Webtools (WTP)
for Eclipse as follows:
- install your Tomcat somewhere on your computer, doesn't have to be
your eclipse workspace.
- go to
http://www.eclipse.org/webtools and download either WTP 2.0 or
WTP 1.5.x. The download page will show you what the Eclipse
prerequisites are. You need them as well. The main difference between
the two versions is that WTP 2.0 is not yet final but it supports
Tomcat 6 with the new Servlet/JSP spec.
- once installed open Eclipse -> perferences -> server and add your
Tomcat installation
- create a "dynamic web project".
- you can simply add/edit your JSP pages from Eclipse. They go in the
"WebContent" folder ot whatever you've named it.
- to run your project you can simply say Run As -> On server, then
select your tomcat runtime and that's it basically.
- if you change your JSP files Tomcat should be able to pick these
changes up without restarting. (There is no real point in editing
these files with VI if you're using Eclipse anyway)
Lars