Chirag Pandya, a coworker of mine, earlier posted this under the subject
"Jetspeed":
>>
Hi all
Does anyone know how to refer to local URL, when I try to refer to a
local URL it tries to do a file open locally.
If any one has an idea, I would greatly appreciate the help.
thanks for the information in advance
cp
<<
I work with Chirag and can clarify his question:
* We are running Jetspeed-1.2b1 on Linux, under Tomcat, on a host
named chumpydip.fmgtech.com
* We are trying to have an instance of the RSSPortlet class fetch an
RSS/XML file via HTTP from the same host that Jetspeed/Tomcat is running
on
We had an entry in portletregistry.psml that was trying to pull a file
from the localhost via HTTP:
<entry type="ref" parent="RSS" name="Test RSS Portlet">
<url>http://chumpydip.fmgtech.com:8080/examples/test3.rdf</url>
<metainfo>
<title>Test RSS Portlet</title>
</metainfo>
</entry>
The following was set in JetspeedResources.properties:
cache.require.cached=false
What we were hoping for was that the portlet would be able to hit the
URL directly, and fetch an XML file.
However it appears in JetspeedDiskCache.java, at line 210, that if the
URL appears to belong to the current server, a file URL is substituted
using JetspeedDiskCache.getLocalWebURL().
So I guess our question is "why does it work like this", and what (if
anything) would be recommended for someone in our situation. For
instance, we may have servlets running under tomcat on the same host,
and we would want to hit them directly to fetch some XML. Is there a
better way to deal with this? By bypassing the FileServer/DiskCache
stuff are we creating problems for ourselves?
TIA...
-Scott
--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Archives and Other: <http://java.apache.org/main/mail.html>
Problems?: [EMAIL PROTECTED]