aspose file tools
The moose likes Beginning Java and the fly likes Receiving URL content to applet Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Beginning Java
Reply Bookmark "Receiving URL content to applet" Watch "Receiving URL content to applet" New topic
Author

Receiving URL content to applet

Josh Reev
Greenhorn

Joined: Feb 17, 2011
Posts: 8
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

Joined: Oct 27, 2005
Posts: 19216

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.


SCJP 1.4 - SCJP 6 - SCWCD 5
How To Ask Questions How To Answer Questions
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Receiving URL content to applet
 
Similar Threads
about URL access (Please help me
Holy SPANK!! I got a connection...
Problem using http post over j2me
unknownhostexception
can i get other website contents in my webapplication