Serving Servlets !

When 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 .

So Lets get Started…..

The Downloads

2 Things have to be downloaded

  1.  Eclipse IDE for Java EE Developers
  2. Apache Tomcat 7

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

After Extracting Eclipse ,

Run Eclipse

open Window->Preferences 

Choose Server->Runtime Environments

Click Add 

Choose Apache Tomcat v7.0

Click Next

Choose the location where Tomcat was extracted 

Click Finish

Now the Server has been successfully added .

The Project

Create a new Dynamic Web Project

After Creating the 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!!

Advertisements

I recently messed up my Gnome Panels by…

I recently messed up my Gnome Panels  by accidentally deleting the shutdown and Time applets .

So I  found a way  to Restore them to the default state.

Now the best way to do this is to do it via terminal

Open Terminal

Then Type the Following
(Note:Don’t leave any space between the 2 dashes)

gconftool  – -recursive-unset /apps/panel

Now all the panels Should disappear.
Then type the following to restore them to their default state

rm -rf ~/.gconf/apps/panel

Finally Execute the following to show all the panels .

pkill gnome-panel

I tested this on Maverick Meerkat (10.10) and it works fine , but it should work on all versions from Gutsy Gibbon (7.10) onwards .


How to Make Chromium Portable , Partially !

I have been using Chromium web browser for some time now , and I must say it is really good , and most of the time its pretty stable , but one thing I really hate is that it saves my user profile at

C:\Users\<Username>\AppData\Local\

Now to solve this I tried many techniques , and I found out that the most simplest and easiest solution was the best , so here it is .

Read the rest of this entry »