Login  Register

Re: [OFBiz] Users - allowedPaths

Posted by Si Chen-2 on Nov 02, 2005; 9:21pm
URL: http://ofbiz.116.s1.nabble.com/OFBiz-Users-allowedPaths-tp136293p136298.html

Thanks, Charles, but I am male but hardly a "master".   :-)

Si

Charles Johnson wrote:

>>>Does that make sense?
>>>      
>>>
>
>Yes, it does thanks. btw it's very gratifying to hear from the 'master'
>in this mailing list (i assume you're male) ;-)
>
>CJ
>
>Si Chen wrote:
>
>  
>
>>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
>>>>>[hidden email]
>>>>>http://lists.ofbiz.org/mailman/listinfo/users
>>>>>
>>>>>
>>>>>
>>>>>    
>>>>>          
>>>>>
>>>>_______________________________________________
>>>>Users mailing list
>>>>[hidden email]
>>>>http://lists.ofbiz.org/mailman/listinfo/users
>>>>
>>>>
>>>>  
>>>>        
>>>>
>>>
>>>_______________________________________________
>>>Users mailing list
>>>[hidden email]
>>>http://lists.ofbiz.org/mailman/listinfo/users
>>>
>>>
>>>
>>>      
>>>
>>_______________________________________________
>>Users mailing list
>>[hidden email]
>>http://lists.ofbiz.org/mailman/listinfo/users
>>
>>
>>    
>>
>
>
>_______________________________________________
>Users mailing list
>[hidden email]
>http://lists.ofbiz.org/mailman/listinfo/users
>
>  
>
 
_______________________________________________
Users mailing list
[hidden email]
http://lists.ofbiz.org/mailman/listinfo/users