[OFBiz] Users - allowedPaths
Si Chen
sichen at opensourcestrategies.com
Wed Nov 2 15:18:57 EST 2005
If you try to reference something called "/style," then basically what
you're doing is asking your browser to show you
http://localhost:8080/style/main.css
This means that "style" must be mounted as a webapp in Tomcat. Does
that make sense?
Si
Charles Johnson wrote:
>It seems that the stylesheet url cannot be an absolute one, as having
>moved the stylesheet out of /images, only the current one in /style
>works and not the previous attempt, which i intended to be an absolute url:
>
><html>
><head>
><!-- <link rel="stylesheet" href="../images/main.css" type="text/css"> -->
><!-- <link rel="stylesheet" href="/style/main.css" type="text/css"> -->
><link rel="stylesheet" href="../style/main.css" type="text/css">
><title>Second Hello World</title>
></head>
><body>
><p align="right">It is now
>${Static["org.ofbiz.base.util.UtilDateTime"].nowTimestamp().toString()}</p>
><a href="<@ofbizUrl>/main</@ofbizUrl>">Main</a>
><a href="<@ofbizUrl>/news</@ofbizUrl>">News</a>
><a href="<@ofbizUrl>/sports</@ofbizUrl>">Sports</a>
><a href="<@ofbizUrl>/weather</@ofbizUrl>">Weather</a>
><a href="<@ofbizUrl>/horoscope</@ofbizUrl>">Horoscope</a>
><a href="<@ofbizUrl>/people</@ofbizUrl>">People</a>
><hr>
>
>
>Si Chen wrote:
>
>
>
>>Can you be more specific? What change did you actually make? What
>>does your log file say?
>>Si
>>
>>Charles Johnson wrote:
>>
>>
>>
>>>I note that in Tutorial 2 the path to the css file is given as
>>>..\images\maincss.css (from memory). I tried to change this to
>>>\style\main.css and altered web.xml accordingly, but without any success
>>>whatever. Can anyone explain why? I suspect there is yet another
>>>mechanism intervening to allow 'allowedPaths'
>>>
>>>Charles Johnson
>>>
>>>
>>>_______________________________________________
>>>Users mailing list
>>>Users at lists.ofbiz.org
>>>http://lists.ofbiz.org/mailman/listinfo/users
>>>
>>>
>>>
>>>
>>>
>>_______________________________________________
>>Users mailing list
>>Users at lists.ofbiz.org
>>http://lists.ofbiz.org/mailman/listinfo/users
>>
>>
>>
>>
>
>
>_______________________________________________
>Users mailing list
>Users at lists.ofbiz.org
>http://lists.ofbiz.org/mailman/listinfo/users
>
>
>
More information about the Users
mailing list