• Post Reply Bookmark Topic Watch Topic
  • New Topic

Any overhead with extension .jsp?

 
Peter Maxwell
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Everybody,
Suppose if i have a static html page named with extension .jsp will it affect the time for retrieval of the page?
Or would the container simply treat the jsp as html in that case?

Thanks.
 
Sebastian Janisch
Ranch Hand
Posts: 1183
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Every JSP page gets translated into a plain old Servlet by the container.
So, even if your JSP contains only static html content, the container couldn't care less :-) .

In case you care to see what the JSP is getting translated to, check the 'work' directory in your Tomcat installation folder.
Watch out though, it's getting messy
 
Peter Maxwell
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sebastian Janisch wrote:Every JSP page gets translated into a plain old Servlet by the container.
So, even if your JSP contains only static html content, the container couldn't care less :-) .

In case you care to see what the JSP is getting translated to, check the 'work' directory in your Tomcat installation folder.
Watch out though, it's getting messy


Thanks .
Heh,And I thought that the container would be smart like an optimizing compiler.
 
Sebastian Janisch
Ranch Hand
Posts: 1183
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey,

no the container is not that smart. He shreds everything into the translated servlet.

If you just enter



the generated Java file will contain something like this:

 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!