tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Remy Maucherat" <r...@apache.org>
Subject Re: [Tomcat 4.x] SSI package
Date Thu, 01 Mar 2001 06:24:43 GMT
> Attatched is a _very_ early release of the SSI package. It's just the
initial framework
> and one working SSI command 'fsize' which returns a file's size. Looks
like this:
> '<!--#fsize virtual="/tomcat.gif"-->' I appologize for the
> path in the Zipfile, for some reason Winzip screwed up my path. Anyway
this is how the
> file layout should look like once deployed.
> <catalina>
>       \
>         - servlets / SsiInvokerServlet.java
>       |
>        \
>          - util / ssi /
>                         SsiCommand.java
>                         SsiConfig.java
>                         SsiEcho.java
>                         SsiExec.java
>                         SsiFlastmod.java
>                         SsiFsize.java
>                         SsiInclude.java

That looks good :-)

Note : You don't need to use the Resources to access the content length. I
suggest using
ServletContext.getResource(path).openConnection().getContentLength()
instead.
To access content, you should use ServletContext.getResourceAsStream(path).

Remy


Mime
View raw message