> 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


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

Reply via email to