• Post Reply Bookmark Topic Watch Topic
  • New Topic

Why a jsp pages is translated into servlet ?

 
Sundaralingam Subramaniyan
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
what is the reason for translating a jsp page to servlet within the container?
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
JSP, unlike PHP, Perl, ASP, etc, isn't a scripting language.

Because JSPs are converted to servlets and compiled, they have the benefit of being pure Java. This means that the entire Java API is available to the JSP/servlet developer. It also means that they, like any other compiled Java objects can benefit from run time optimizations and Just In Time (JIT) compilation from the HotSpot run time environment.
[ October 17, 2007: Message edited by: Ben Souther ]
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!