tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shapira, Yoav" <>
Subject RE: Questions on loading servlet vs. loading JSP
Date Tue, 02 Nov 2004 19:19:27 GMT

As you know, a JSP is just a servlet after it's compiled.  A JSP call is
handled by the JSPServlet by default, which calls Jasper to evaluate
(and if necessary compile) the JSP into a .class file.  The request
processing and resource handling pipeline is otherwise identical.  As
the Tomcat source code is freely available to you (and anyone else),
feel free to confirm the above or just browse the code out of curiosity.

When you say "servlets get called from JSP's" -- what do you mean
exactly?  Is it an include, forward, or other RequestDispatcher-based
call?  Or is it a simple reference from an HTML page (in which case the
fact that the HTML page is generated by a JSP is irrelevant)?

Yoav Shapira

>-----Original Message-----
>From: John MccLain []
>Sent: Tuesday, November 02, 2004 1:50 PM
>To: tomcat jasper list; Tomcat Dev List; Tomcat user list
>Subject: Questions on loading servlet vs. loading JSP
>I have a webapp.
>In 2 servlets, I call JNI code.
>When I call the servlets from a browser DIRECTLY, all is well and the
>When the servlets get called from JSP's, the JNI code hangs.
>I know I am cleaning up after myself in the JNI code
>What is the difference in how Tomcat loads and processes a servlet call
>versus a JSP call???
>How can I debug/profile this to determine the problem???
>John McClain
>Senior Software Engineer
>TCS Healthcare
>"Before you criticize someone, walk a mile in their shoes.
>That way, you'll be a mile from them, and you'll have their shoes."
>To unsubscribe, e-mail:
>For additional commands, e-mail:

This e-mail, including any attachments, is a confidential business communication, and may
contain information that is confidential, proprietary and/or privileged.  This e-mail is intended
only for the individual(s) to whom it is addressed, and may not be saved, copied, printed,
disclosed or used by anyone else.  If you are not the(an) intended recipient, please immediately
delete this e-mail from your computer system and notify the sender.  Thank you.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message