Serving Servlets !
Posted: May 26, 2011 Filed under: How-To, Linux, Techno irrelevency ., Tutorial | Tags: apache, dynamic, eclipse, foss, how, how-to, internet, java, jsp, linux, open, opensource, pages, servlet, source, to, tomcat, tutorial, ubuntu, web, Windows Leave a commentWhen staring web developement now a days many people start with PHP , Ruby on Rails , or something like that , but there was a Time when Servlets were King .
Servlets are still very Prominent and are also very powerful, and sometimes better than any other web development platform.
To get started with servlets using just Tomcat is very easy , but using Eclipse along with it Required a small bit of effort .
I spent 20 minutes on learning how to configure Eclipse to work with Tomcat 7
So here is a Tutorial for the same .
The Downloads
2 Things have to be downloaded
The Process
I am writing this tutorial for Linux but the concept is the same for Windows and Mac .
After Downloading
Extract Eclipse and tomcat into a folder
Run Eclipse
open Window->Preferences
Choose Server->Runtime Environments
Click Add
Choose Apache Tomcat v7.0
Choose the location where Tomcat was extracted
Click Finish
Now the Server has been successfully added .
The Project
Create a new Dynamic Web Project
Right click on the project select New->Servlet
Now you can create your Servlet and run it in eclipse with Tomcat , so what are you waiting for get coding!!