#include is a SSI directive
relevant documentation is available at
http://tomcat.apache.org/tomcat-5.5-doc/ssi-howto.html

you will need to setup mappings of *.shtml to SSIServlet here is the relevant 
text:
TC 5.x jar renaming:
Rename $CATALINA_BASE/server/lib/servlets-ssi.renametojar
to $CATALINA_BASE/server/lib/servlets-ssi.jar.

TC 6.x 
SSIServlet classes are already packaged in catalina.jar so no need for renaming



web.xml considerations:
To use the SSI servlet, remove the XML comments from around the SSI servlet
and servlet-mapping configuration in
$CATALINA_BASE/conf/web.xml.


To use the SSI filter, remove the XML comments from around the SSI filter
and filter-mapping configuration in
$CATALINA_BASE/conf/web.xml.
HTH
Martin Gainty 
______________________________________________ 
Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité
 
Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger 
sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung 
oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem 
Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. 
Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung 
fuer den Inhalt uebernehmen.
Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le 
destinataire prévu, nous te demandons avec bonté que pour satisfaire informez 
l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est 
interdite. Ce message sert à l'information seulement et n'aura pas n'importe 
quel effet légalement obligatoire. Étant donné que les email peuvent facilement 
être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité 
pour le contenu fourni.




> Date: Fri, 29 May 2009 13:48:28 +0200
> Subject: Problem with #include file in index.apt.vm
> From: [email protected]
> To: [email protected]
> 
> Hi all
> 
> I have this directive in an index.apt.vm file that is in src/site/apt:
> 
>  #include("user_stories_table.txt")
> 
> I also have the user_stories_table.txt file in the same directory.
> 
> The #include does not find the file. I have tried moving the file to various
> other locations, still won't find it. I have tried renaming the file to .vm
> in the apt dir, won't find it, I have tried ....
> 
> I have also tried creating a velocity.properties file with various loader
> properties in it. But I don't know where to put the velocity.properties file
> so it is picked up, nor am I sure what the root of the relative paths will
> be, so I can't be sure what the property value should be.
> 
> The error is below.
> 
> Any help will be greatly appreciated!
> 
> Many thanks
> 
> Nathan
> 
> When I run mvn site, I get:
> 
> [ERROR] Cannot process content resource
> [ERROR] java.lang.NullPointerException
>     at java.io.Reader.<init>(Reader.java:61)
>     at java.io.InputStreamReader.<init>(InputStreamReader.java:80)
>     at 
> org.apache.velocity.runtime.resource.ContentResource.process(ContentResource
> .java:62)
>     at 
> org.apache.velocity.runtime.resource.ResourceManagerImpl.loadResource(Resour
> ceManagerImpl.java:415)
>     at 
> org.apache.velocity.runtime.resource.ResourceManagerImpl.getResource(Resourc
> eManagerImpl.java:335)
>     at 
> org.apache.velocity.runtime.RuntimeInstance.getContent(RuntimeInstance.java:
> 1152)
>     at 
> org.apache.velocity.runtime.directive.Include.renderOutput(Include.java:225)
> 
> 
> 
> 
> -- 
> Nathan Sowatskey ([email protected]) - Technical Leader, NMTG XMP -
> +34-638-083-675
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
> 

_________________________________________________________________
Hotmail® has a new way to see what's up with your friends.
http://windowslive.com/Tutorial/Hotmail/WhatsNew?ocid=TXT_TAGLM_WL_HM_Tutorial_WhatsNew1_052009

Reply via email to