tomcat-taglibs-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Martin Cooper <mart...@apache.org>
Subject Re: JSTL and test for file existence
Date Fri, 25 Nov 2005 17:18:45 GMT
On 11/25/05, Luca Passani <passani@eunet.no> wrote:
>
> Hi guys,
>
> Is there a way to test for file existence with JSTL?


I don't believe so, and I'd be rather surprised if there was. Remember that
there is no guarantee that there even *is* a file system in a webapp
environment, so providing access to such a thing in a standard way doesn't
really make sense.

Of course, you can always create your own function to do this.

--
Martin Cooper


I would like to do something like:
>
> <c:if test="exists( $pic)">
>    <img src="pics/<c:out value="$pic"/>" />
> </c:if>
>
> Thanks
>
> Luca
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: taglibs-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: taglibs-user-help@jakarta.apache.org
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message