tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tim Funk <funk...@joedog.org>
Subject Re: Pre-compiled JSPs?
Date Tue, 06 Sep 2005 14:56:53 GMT
For example:

File a.jsp
<% String worldVar = null; %>
<%@include file='b.jsp'%>
Hello  <%=worldVar%>

File b.jsp
<%worldVar = "world"%>


Notice b.jsp will not precompile. But then again - no one should be calling 
b.jsp since its not a jsp - its a jsp fragment. It should be calld b.jspf.

I am guessing - your pages have a similar issue.

-Tim


Richard Burman wrote:

> Sorry, I don't understand. How will my JSP compile at all if a section
> (fragment) is ignored and, presumably, omitted from the resulting java
> file?
> 
> -----Original Message-----
> From: Tim Funk [mailto:funkman@joedog.org] 
> Sent: 06 September 2005 15:05
> To: Tomcat Users List
> Subject: Re: Pre-compiled JSPs?
> 
> errorOnUseBeanInvalidClassAttribute (IIRC) is a test when jsp:useBean is
> used 
> without a default constructor being available.
> 
> If you are using include files which were as meant as compile time
> include 
> fragments, rename them (the include files) to jspf and they will be
> ignored 
> by the jsp compiler.
> 
> -Tim
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message