tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Konstantin Kolinko <knst.koli...@gmail.com>
Subject Re: Tomcat 6 error compiling JSPs with nested @include directives
Date Thu, 29 Apr 2010 20:33:39 GMT
2010/4/29 Nuno Faria <nuno.m.faria@gmail.com>:
> Strange thing. This is a fresh install of a 6.0.26 and I had created
> the example from scratch.
> But I did as you suggested and cleaned my work folder and now it compiles!?
>
> The names I used where slightly different but I reverted to mine to
> check it back.
> I attached the files and every one with /subdir/*_nested* gave me a
> compile error that it is now fixed.
>
I cannot reproduce the error with any pages in the examples.zip that
you attached.

By the way, this list removes attachments, but sometimes they are
visible -- probably when both the sender and the recipient use gmail.

> Then if i try the missing file
> http://sites_empresa.lardocelar.com:8080/includes/site_parameters.jsp
>
> I get (from the first include in the file)
>
> org.apache.jasper.JasperException: /site_parameters.jsp(6,1) File (...)

Note that the above line should have mentioned
"/includes/site_parameters.jsp", not "/site_parameters.jsp" as it
does.

The correct way to call the included file will be
http://sites_empresa.lardocelar.com:8080/contactos/includes/site_parameters.jsp

if contactos is your web application.

The paths in @include are relative to the web application and not to
the site root.

Best regards,
Konstantin Kolinko

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


Mime
View raw message