If you are using tomcat then you must be somewhat versed in Java?. I had
responded with a suggestion about using a servlet to read your remote
rdf(data file).
I had used the timeline piece to do something like this in the past.
Allow users to load *any* rss feed from *anywhere* into timeline.
Your use case would be alot easier as you have control over your data
source.

Example:

*http://sitea.com/your_timeline_webapp(running in tomcat).*
contains the following:
timeline.html
DataServlet

*http://siteb.org/your_data_store_webapp(running in another disconnected
location).*
contains the following:
your_data_page.xml

http://sitea.com/your_timeline_webapp/timeline.html uses DataServlet as its
data source(which is in local web-context).
*tl.loadXML("DataServlet", function(xml, url) {
eventSource.loadXML(xml, url);*

http://sitea.com/your_timeline_webapp/DataServlet

makes a url connection to

http://siteb.org/your_data_store_webapp*/*your_data_page.xml

and builds a StringBuffer from the inputStream. DataServlet's PrintWriter
outputs data xml which is displayed in timeline.html.


DataServlet code example:

 *      StringBuffer buffer = new StringBuffer();
        PrintWriter out     = response.getWriter();
        try {
                URL url     = new URL("
http://siteb.org/your_data_store_webapp/your_data_page.xml";);
                BufferedReader reader = new BufferedReader(new
InputStreamReader(url
                .openConnection().getInputStream()));
                String line = null;
                while ((line = reader.readLine()) != null) {
                    buffer.append(line);
               }
        out.println(buffer.toString());
        }*

Hope that helps.


On Mon, Dec 29, 2008 at 3:22 PM, Ricardo Rodr'iguez
<[email protected]>wrote:

>  This helps a lot! Thanks.
>
> But I am afraid I do need these offered lines. We are working with Tomcat
> (currently 6.0.18 and/or 6.0.10 running in several server flavors).
>
> And sorry for being late with my reply! I've been trying to better
> understand how Timeline does work before posting back, but I am afraid I
> need a lot of extra-work to catch up with the Community!
>
> All the best,
>
> Ricardo
>
>
> g f wrote:
>
> You could use an URL connection to connect to this data source from, say, a
> servlet and set the servlet as your data source. Kind of like a pseudo
> proxy. You could open up a BufferedReader and read the url(let me know if
> you need some code[very few lines of code in this servlet]).
>
>
>   tl.loadXML("MyDatSourceServlet", function(xml, url) {
>                eventSource.loadXML(xml, url);
>
>
> Or if you dont have a servlet container there is some python proxy code
> floating around out there.
>
>
>
> HTH.
>
>
>
>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"SIMILE Widgets" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/simile-widgets?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to