1

i m new to servlets and Jsps. I have set CLASSPATH for Servlet-api.jar only. And by doing this i am able to run both servlets and jsps Successfully.

My doubt is what is the reason that JSPs are being run successfully by setting servlet-api.jar and without setting Jsp-api.jar in the ClASSPATH.

1 Answers1

1

JSPs are translated to Java Servlet code and compiled, so they are in fact nothing else than Servlets. However, you will need the jsp-api.jar once you are using Taglibs and Expression Language.

Uooo
  • 6,204
  • 8
  • 36
  • 63