File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Receiving URL content to applet

 
Josh Reev
Greenhorn
Posts: 8
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I need to run a javascript page from my app and receive the page that results from the script on a String. This is my code:

However this only results in stuff like sun.net.www.protocol.http.HttpURLConnection$HttpInputStream@1ce669e,sun.net.www.protocol.http.HttpURLConnection etc..
I also tried



This gives me the pure HTML code.
 
Rob Spoor
Sheriff
Pie
Posts: 20388
46
Chrome Eclipse IDE Java Windows
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It's the browser (read: client) that interprets the JavaScript. Your code would need to take over that role after it's read the pure HTML code. That's not a trivial task. Perhaps a third party library like Lobo can help you.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic