Hi Tim,

Thanks again for your feedback. 

I can see that you are totally correct about point 1 and I was already aware of 
point 2.

For point 3, I'm not sure whether you're referring to the Sun JSP coding 
conventions document or the Tomcat documentation for the Jasper Ant Task 
(http://tomcat.apache.org/tomcat-5.5-doc/jasper-howto.html#Web%20Application%20Compilation).
 I have no problem with the Sun documentation but if the link provided is 
documentation for the Jasper Ant Task then I think it could be improved by 
expending relatively little effort; simply adding a table, in the same format 
as the standard Ant documentation for tasks, detailing each task option would 
be perfect.

Thanks,

Martin.

-----Original Message-----
From: Tim Funk [mailto:[EMAIL PROTECTED]
Sent: 25 January 2007 17:17
To: Tomcat Users List
Subject: Re: JSP include issue when pre-compiling using Ant/Tomcat


1) If you keep reading, it also says: "JSP fragments that are not 
complete pages should always use the .jspf suffix and should always be 
placed in /WEB-INF/jspf"

2) Try requesting test2.jsp (the jsp which was the fragment earlier in 
this thread) from the browser - it won't compile

3) The documentation is straightforward - look for *.jsp and compile it. 
  If a page is not meant to be compiled - then don't give it the jsp 
suffix. When writing in C, people don't compile *.h - they compile *.c. 
People don't write headers with file extensions of .c

-Tim


Martin Lambert wrote:
> Hi Tim,
> 
> Thanks for you reply, it fixed the problem!
> 
> A few points though for the Tomcat people:
> 
> 1) 
> http://java.sun.com/developer/technicalArticles/javaserverpages/code_convention/
>  states that: 'JSP fragments can use either .jsp or .jspf as a suffix' i.e. 
> it should work for .jsp includes
> 
> 2) .jsp includes work in the container so why not (apparently) for the Ant 
> task they supply
> 
> 3) As this is so useful, i.e. you can find out whether your applications JSPs 
> work without the servlet container, the documentation of the Ant task should 
> be better
> 
> 4) I see the same problem with the Tomcat 4.1 libraries, so it appears to be 
> a long standing problem.
> 
> Don't get me wrong, I think this is a great extension to Ant that just needs 
> some small wrinkles ironing out to become excellent.


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to