I am new to the world of java server pages. What software i need to run a jsp code?
You need a webserver and a jsp engine. I recommend Orion server (orionserver.com) for the money or Tomcat if you need a free server. In many cases, the jsp engine also has a built in web server; although, Tomcat does not.
As a beginner It will be easy if u use java webserver2.0 as its easyily available(trial version) .Just save ur jsps in its public_html dir and call them from browser after starting the server(bin/httpd.exe)
Orion is also free for development purposes and is only 4mb to download. Another good product for beginners is JRun (allaire.com) which has a developer version that never expires with a 3 developer maximum connections.