Modify JSP then test changes right a way w/o rebuild in Eclipse

J

Jimmy

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
 
D

Daniel Pitts

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

I don't know about Tomcat, but Resin will detect a modified JSP and
recompile just it.

Perhaps your build-system needs a way to simply copy the JSP files
(rather than a clean-and-rebuild approach).
 
S

steen

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

If you're not using eclipse to edit the jsp's, why run the tomcat
through eclipse ?
If you run tomcat as a standalone, it will detect jsp changes and
rebuild the page.

/Steen
 
L

Lew

steen said:
If you're not using eclipse to edit the jsp's, why run the tomcat
through eclipse ?
If you run tomcat as a standalone, it will detect jsp changes and
rebuild the page.

Conversely, if you use Eclipse (or NetBeans, or many others) to edit the JSP
as well as to run the Tomcat server, the Tomcat server will notice the change
right away. Actually, since both IDEs work by linking to an external Tomcat
server, this answer reduces to the same information others provided.
 
N

neumannl

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
 
J

Jimmy

Thanks for all the answer.
I've tried to use Eclipse's WTP then start Tomcat (external
installation) within Eclipse but edit JSP inside the WebContent
directory using VI. Is there a flag I need to turn on so it will
recompile changes to the JSP? I haven't been able to find it so far.

Thanks,
Jimmy
 
L

Laaz

Thanks for all the answer.
I've tried to use Eclipse's WTP then start Tomcat (external
installation) within Eclipse but edit JSP inside the WebContent
directory using VI. Is there a flag I need to turn on so it will
recompile changes to the JSP? I haven't been able to find it so far.

Thanks,
Jimmy

Does it work of you edit your files with Eclipse?
And why do you want to edit your files with VI? :)

Lars
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,764
Messages
2,569,565
Members
45,041
Latest member
RomeoFarnh

Latest Threads

Top