Its easy to run JSP from the Eclipse. You have to make a dynamic web application in Eclipse and then write your JSP code in a JSP page.
After writing your JSP code save the file and from Eclipse run it in embedded tomcat server.
Check the tutorial: JSP Hello World example using Eclipse IDE and Tomcat web server
In the above tutorial you will find video instruction of running JSP code from Eclipse.