[thelist] is my asp style sloppy?

Howard Cheng howcheng at ix.netcom.com
Fri Feb 15 11:24:01 CST 2002


This is because in JSP, your JSP code is converted to a servlet, which is
proper Java, and all your interwoven code blocks, like:

<% if (b) { %>
         <p>blah blah blah</p>
<% } %>

... get translated into:

if (b) {
         out.println("<p>blah blah blah</p>");
}

In other words, the application server (Tomcat or whatever) converts the
"sloppy" JSP code into proper Java code for the JVM to run. This is why
when you make any changes to a JSP page, the first time you hit it there's
a slight delay as the JSP is compiled into a servlet. You can actually view
these servlet files -- they're stored in CATALINA_HOME/work (at the same
level as /webapps).

At 08:44 PM 2/14/2002 -0500, Warden, Matt wrote:
>JSP is a system comparable to .NET. Yet, the mentioned practice is
>perfectly legal in JSP. The CPU doesn't blow up or anything. Seems to
>work just fine.

::::::::::::::::::::::
Howard Cheng
howcheng at ix.netcom.com
AIM: bennyphoebe
ICQ: 47319315




More information about the thelist mailing list