5

The title is pretty straightforward.

I would like to know if there is any possibility of seeing the compiled jsp (the servlet generated) directly into eclipse. Without deploying onto any server.

David
  • 910
  • 1
  • 12
  • 22
  • 1
    This is still server-specific. Which one are you using? – skaffman Jul 19 '10 at 15:57
  • Any server is okay as long as I can make sure the jsp code is correct. I know that with tomcat I can deploy from eclipse and check the result of the compilation in some kind of work directory. But I would like a fully integrated into the ide solution. – David Jul 19 '10 at 17:38

1 Answers1

4

If you work with JSPs, I suggest to buy MyEclipse since it can compile JSPs and show you problems (compile errors, etc) in the editor. Eclipse 3.6 also works but JSP support is much better in MyEclipse.

If you just want to compile the JSPs, then have a look at Maven. With the help of the JSPC Plugin, you can compile the JSPs into Java code and then add this source folder to your project.

For completeness: There is an ancient Tomcat plugin along with the UQBar Extension. That will configure Tomcat to compile the JSPs into a work folder in your project as you use them (i.e. this is not precompilation but the usual on-the-fly-JSP-compilation).

Aaron Digulla
  • 321,842
  • 108
  • 597
  • 820
  • I'm not interested in buying MyEclipse. :) Thanks for the info about JSPC plugin, I didn't try it, but it seems that it is the best I can have for the moment. – David Aug 11 '10 at 09:09
  • @David: When working a lot with JSPs, MyEclipse is worth its money. I also feel odd about buying OSS but $65 is less than I spend on comic books every month. – Aaron Digulla Aug 11 '10 at 09:59