Is it true that JSP creates Servlet java code?
I am working with JSP.
My web server is tom cat.
Is it true that JSP creates Servlet java code of JSP files when it executes? If so how can I view them?
You are correct! JSPs are actually compiled down to servlets. You can actually see the .java files and the .class files if you look in the JAKARTA_HOME directory. The path should be something like this:
This path could vary depending on where you installed tomcat, what OS you are on, and how you have your contexts set up.
If using linux, or some other unix OS I would probably just go to the JAKARTA_HOME directory, and do a find for all classes. This should tell you where your .java and .class files for the servlets live.
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL