hi kindly tell me how to execute jsp or servlets with the help of eclipse with some small program
You may go through the following links, may these will be helpful for you
http://www.roseindia.net/java/javaee6/eclipseAndTomcat7Download.shtml Through this link you can read about downloading of eclipse and installing tomcat server into it.
http://www.roseindia.net/hibernate/hibernate4/hibernate4ExampleEclipse.shtml Going through this link you may understand how to create a java project in Eclipse and how can you add additional capabilities to it.
For creating a web application in Eclipse you can follow the following steps in eclipse : File-> new -> dynamic web project Then follow the process as you have been read in the above tutorial links.
Then you can go through the link http://www.roseindia.net/jsp/crud-application.shtml This will help you in how to create a web application in eclipse.