users@glassfish.java.net

Re: Static Content in Glassfish

From: #Cyrille37# <cyrille37_at_gmail.com>
Date: Sat, 14 Apr 2007 04:52:35 +0200

glassfish_at_javadesktop.org a écrit :
> With this explanation I was also get alternatedocroot working, thanks.
>
> I'm currently experimenting with Glassfish on Windows, and I am wondering what the syntax would be for pathnames that have blanks embedded. I tried this:
>
> from=/docs2/* dir="C:/doc root"
>
> which turns out in the domain xml as
>
> <property name="alternatedocroot_2" value="from=/docs2/* dir=&quot;C:/doc root&quot;"/>
>
> and this:
>
> from=/docs2/* dir=\"C:/doc root\"
>
> which turns out in domain.xml as
>
> <property name="alternatedocroot_2" value="from=/docs2/* dir=\&quot;C:/doc root\&quot;"/>
>
> What is the trick to quote blanks in pathnames, or isn't it possible to have them?
>
try %20 like:

<property name="alternatedocroot_2" value="from=/docs2/* dir=\&quot;C:/doc%20root\&quot;"/>


--cyrille