Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

If the jsp file get compiled into t

Status
Not open for further replies.

linusSanto

Programmer
Jul 31, 2003
15
IN
If the jsp file get compiled into the class file(after any chnage in the file itself)
Then why it is not possible that i can run it as a servlet
I mean to say if i keep the .class file from the work directory into the classes folder then it should be
executed as a normal servlet
Why it does not happens ?
 
why would you even want to in the first place?

I severely doubt a web container would execute a JSP the same way as a servlet, which afterall has a different class ancestry (javax.servlet.http.HttpServlet vs. javax.servlet.jsp.HttpJspPage for a JSP).
While both share javax.servlet.Servlet as an ancestor there are implementation differences.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top