?
Thanks for your help!
Richard.
-Original Message-
From: Tim Funk [mailto:[EMAIL PROTECTED]
Sent: 06 September 2005 17:01
To: Tomcat Users List
Subject: Re: Pre-compiled JSPs?
There is no need to turn jspf into classes. The jspf are included by
real jsp
files. Those jsp files are turned
Yes, think of jspf like .h files in c. You don't compile .h files, but .c
files include .h files at compile time.
-Tim
Richard Burman wrote:
Hi Tim,
Sorry, I'm sure I'm being a bit dense but I seem to be missing something
important here.
Are the jspf files included (embedded) into the
Right, I get it now. Thanks for all your help Tim, Darryl and Nicolas!
Happy Tomcat-ing,
Richard.
-Original Message-
From: Tim Funk [mailto:[EMAIL PROTECTED]
Sent: 07 September 2005 12:15
To: Tomcat Users List
Subject: Re: Pre-compiled JSPs?
Yes, think of jspf like .h files in c. You
:[EMAIL PROTECTED]
Sent: 05 September 2005 12:04
To: Tomcat Users List
Subject: RE: Pre-compiled JSPs?
Hi,
You need to insert in your web.xml the reference to the precompiled
servlets. Jasper can generate a web.xml fragment when turning JSP into
servlets. You can then insert the fragment into your
What you see looks like normal jasper name mangling of generated pages.
You use: http://myserver:8080/RichardsApp/DoSomething.jsp
I presume there is also a generated mapping entry, that you may have
overlooked:
servlet-mapping
servlet-nameRichardsApp.DoSomething_jsp/servlet-name
and hopefully have new,
sparkly, compiled JSPs soon!
Richard.
-Original Message-
From: Darryl L. Miles [mailto:[EMAIL PROTECTED]
Sent: 06 September 2005 12:33
To: Tomcat Users List
Subject: Re: Pre-compiled JSPs?
What you see looks like normal jasper name mangling of generated pages.
You use
the point in including the flag?!
Yours,
Confused of UK. ;o)
-Original Message-
From: Richard Burman [mailto:[EMAIL PROTECTED]
Sent: 06 September 2005 13:50
To: Tomcat Users List
Subject: RE: Pre-compiled JSPs?
Eureka! I get it now. :)
Indeed, I hadn't noticed the servlet-mapping section down
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
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:[EMAIL PROTECTED]
Sent: 06 September 2005 15:05
To: Tomcat Users List
Subject: Re: Pre-compiled
: 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
:[EMAIL PROTECTED]
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
From the jasper task all the [valid] jsp's are turned into java files and
compiled into class files. Those class files need to be a jar file in
WEB-INF/lib or inside WEB-INF/classes. The jasper task can also rewrite
web.xml so that all the mappings from the JSP -- class file are taken care of.
Tim,
Is there no way of turning the fragment (jspf) file into .class files or
do they need to remain as JSPs?
Cheers,
Richard.
-Original Message-
From: Tim Funk [mailto:[EMAIL PROTECTED]
Sent: 06 September 2005 16:14
To: Tomcat Users List
Subject: Re: Pre-compiled JSPs?
From
.
-Original Message-
From: Tim Funk [mailto:[EMAIL PROTECTED]
Sent: 06 September 2005 16:14
To: Tomcat Users List
Subject: Re: Pre-compiled JSPs?
From the jasper task all the [valid] jsp's are turned into java files
and
compiled into class files. Those class files need to be a jar file
Hi,
You need to insert in your web.xml the reference to the precompiled
servlets. Jasper can generate a web.xml fragment when turning JSP into
servlets. You can then insert the fragment into your web.xml
Something like this with ant:
!-- turn jsp into servlets --
jasper2 verbose=0
15 matches
Mail list logo