Hot deploy of JSP and other Web resources

Before happily switching back to 7.0.3 (was waiting for it's release) I've worked with Eclipse v3.3.1.1 for about a month and a half. Didn't like it (of course) but there was one thing it was doing quite Ok - it was silently redeploying our JSP pages and any other Web resources (JS files mostly) when they were saved.

As I suppose many of you know Eclipse has this idea of "Automatic build" when there's no a "Build" process - all one has to do is to save the file and then it'll be redeployed (be it JSP or Java).
It didn't work for our Java files but worked very well for Web resources, as I've already mentioned. My question is whether IDEA has or planning to provide anything similar to that ?

Today, I have a Tomcat server configured and run it with Shift+F10. The application is deployed. Now I change the JSP file and ?.. If I stop the server and start it again (btw, "Restart" would be very convenient in this point, even Eclipse has it :)) - I'll see my changes. But I suppose it would be amazing if IDEA had an option of deploying Web resources the moment they're saved, same way as Eclipse does.

Thank you !

Edited by: Evgeny Goldin on Mar 17, 2008 5:38 PM

9 comments
Comment actions Permalink

Of course, what I'm doing today is copying manually the JSP pages to Tomcat. Eclipse way of doing that for me was the only thing that I've liked in it (everything else was a total disaster for my taste)

0
Comment actions Permalink

Press CtrlShiftF9 to 'save' your files and you're there.

0
Comment actions Permalink

When editing the JSP page Build => Compile (CtrlShiftF9) is disabled so I'm still here :)

0
Comment actions Permalink

Press Ctrl+F9 (Make) to redeploy your application. Also you can use
"Package File" action to copy single file to the exploded dir.

Of course, what I'm doing today is copying manually the JSP pages to Tomcat. Eclipse way of doing that for me was the only thing that I've liked in it (everything else was a total disaster for my taste)



--
Nikolay Chashnikov
Software Developer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

0
Comment actions Permalink

See context menu "Package file". I have mapped that to Ctrl-Shift-F9 (but also left that keystroke in place for "compile" - one works for java, the other works for resource files like jsp and xml).
You can also always simply "Make Project" (ctrl-f9) and Idea will copy all changed resources.

All that only works of course, if you run your web app from an exploded directory.

0
Comment actions Permalink

Nice, "Package File" works ! "Make Project" causes Tomcat to fail on parsing a web.xml (some old issue in our project when project is hot-redeployed)
Thanks a lot.

0
Comment actions Permalink

I'm editing a TML (tapestry) file and don't see "Package File" in any menus. "Compile" is disabled.

Can't use "Make" because it causes all webapp to be reloaded (though I changed only tml file), which is very slow.

Any workarounds?

Thanks.

0
Comment actions Permalink

Hi.

Try to add .tml pattern to Settings / Compiler / Resource patterns, similar to patterns already provided there.

If this does not help, it should be the issue http://www.jetbrains.net/jira/browse/IDEADEV-34912

Alexander.

0

Please sign in to leave a comment.