I am NEW to java. I am learning java. So I installed eclipse, configured jdk and able to run java programs from eclipse. I have started learning JSP and servlets. I installed tomcat. I do not know how to configure my webapps folder and enable tomcat server in eclipse. I want to edit and run HTML, XML, JSP,JS and servlets from eclipse. I am using mac book pro (snow leopard).
Your earlier response would be helpful to me. Its kind of work stopped to me. I am unable to proceed further studying without knowing this setup.
Thanks in advance.
If you search for "integrating tomcat with eclipse" you will find many useful links. Basic things will be configuring a Tomcat server runtime in Eclipse and making the web project run on the configured server.
@Bear Bibeault Thanks for the help.
I am finding it more difficult to edit,create new JSP, HTML, Servlets and .java files separately in text editor. Compiling the servlets in terminal is time consuming. I wanted to use eclipse to edit these files.
Please let me know,
1. I would like to know how to import the webapps project in eclipse
2. how to configure tomcat sever from eclipse.
3. how to run servlets in eclipse
Since I am learning the basics now, step by step help would be appreciable.
Bear Bibeault wrote:Personally I don't run Tomcat in the IDE -- I run a standalone instance. I think that it's easier to manage and more closely resembles the deployment environment.
That's why I hate the standard WTP plugin - it totally mucks around with the Tomcat environment. Badly. And incompletely.
On the other hand, I do use the sysdeo plugin, since it almost totally replicates production servers using the same config files as Tomcat does when running stand-alone. The only significant difference being that instead of logging to catalina.out, the tomcat stdout/stderr stream gets redirected to the Eclipse console window. Usually that's a difference that makes no difference. For rare cases when it doesn't (meaning that the whole Tomcat setup is messed up), that's when I run Tomcat stand-alone.
Science is the process of replacing what we "know" with what is TRUE. Politics, alas, often prefers to be the opposite.
Thanks a lot for your help. I am able to configure tomcat in eclipse. The installed java development IDE. then I reinstalled eclipse for J2EE develoment ide. and i was able to run the servlet.
Thanks alot. once again.
I am writing a servlet to download a jar file. Its throwing null pointer exception.This is the code snippet