struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dale Newfield <>
Subject Re: [struts] What actually processes a JSP file?
Date Sat, 27 Oct 2007 04:18:40 GMT
I believe there are lots of ways that JSP engines work.  Here's how the 
one in tomcat works:
In my app I have a file named login.jsp.
Inside $CATLINA_HOME (at work/Catalina/localhost/myapp/org/apache/jsp) 
it automatically creates
Which it then compiles to login_jsp.class
Which it then loads and uses.  This java code calls tag libraries, etc. 
where the OGNL you were asking about earlier might get evaluated.

That class extends org.apache.jasper.runtime.HttpJspBase and implements 

HttpJspBase implements javax.servlet.jsp.HttpJspPage, 
javax.servlet.jsp.JspPage,, javax.servlet.Servlet, 
javax.servlet.ServletConfig so I assume that's the Servlet you're 
looking for, and likely dictates the lifecycle of org.apache.jsp.login_jsp.

I think this process is related to why you can't serve .jsp content from 
inside .jar's (causing strife to those building struts2 plugins).


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

View raw message