Re: GWT service that transforms a HTTP request including running javascript

2011-03-21 Thread Y2i
Sorry I wasn't clear, I just meant to say that HttpURLConnection can be used instead of httpclient from the apache commons library to avoid extra dependencies. -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send e

Re: GWT service that transforms a HTTP request including running javascript

2011-03-21 Thread fred at large
java.net.HttpURLConnection does *not* process javascript. It will return the http data as is - with the embedded javascript - but not executed. embedding Rhino on server side was easy enough, but that's good for running singular javascripts. Collection as in a html can be, so using HTMLUnit

Re: GWT service that transforms a HTTP request including running javascript

2011-03-15 Thread Y2i
... or java.net.HttpURLConnection instead of httpclient. -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-to

Re: GWT service that transforms a HTTP request including running javascript

2011-03-15 Thread Ramon Buckland
Hi To clarify your problem: -== Problem A ==- You have a URL which is a mix of HTML and JavaScript You need to load the page, and someone get values or data out of the executed javascript. -== Problem B ==- You have a URL which is JUST javascript (i) that has to be executed (creates some data in

Re: GWT service that transforms a HTTP request including running javascript

2011-03-14 Thread fred at large
thanks,which way to jump was hindering me, so Rhino, as a java code, should be able to package it into gwt server environment (I think - still learning!!) I kinda suspected google may already have something implemented, as in there are app scripts in spreadsheets, and sites. But those are not a

GWT service that transforms a HTTP request including running javascript

2011-03-14 Thread fred at large
is it possible for a GWT service implementation to fetch a http url and run its javascript so the output can be transformed and then returned as a reduced http result string. the javascript includes Spry.Data stuff, which is another reason why to process it on the server. This means server side

Re: GWT service that transforms a HTTP request including running javascript

2011-03-14 Thread Y2i
V8 or Rhino? http://en.wikipedia.org/wiki/Server-side_JavaScript (Disclaimer: I've never done this except simple JSON parsing on the server using org.json) -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email