hi :-)
Why the jsp is converted into servlet in the container? reason? why cant is evalute as a jsp file itself?
JSP is an extension of servlet technology :-)
why did not they develope a seperate container for jsp?
Note: (an excerpt from a book)
"Inside the JSP container is a special servlet called the page compiler.
The servlet container is configured to forward to this page compiler all HTTP
requests with URLs that match the .jsp file extension.
This page compiler turns a servlet container into a JSP container.
When a .jsp page is first called, the page compiler parses and compiles
the .jsp page into a servlet class. If the compilation is successful,
the jsp servlet class is loaded into memory. On subsequent calls,
the servlet class for that .jsp page is already in memory; however, it could have been updated.
Therefore, the page compiler servlet will always
compare the timestamp of the jsp servlet with the jsp page. If the .jsp page
is more current, recompilation is necessary. With this process, once
deployed, JSP pages only go through the time-consuming compilation
process once"
For more info you can refer to the packages: javax.servlet.jsp and
javax.servlet.jsp.tagext
and also the two servlet packages: javax.servlet and javax.servlet.http
you might be asking why refer to servlet packages? because JSP needs it :-)
as i mention earlier, JSP is an extension of servlet technology.
hope other's will also give answer about your question.
regards,