This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes Sockets and Internet Protocols and the fly likes HttpURLConnection and Javascript Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Sockets and Internet Protocols
Bookmark "HttpURLConnection and Javascript" Watch "HttpURLConnection and Javascript" New topic
Author

HttpURLConnection and Javascript

Manoj Raghuwanshi
Ranch Hand

Joined: Jun 20, 2004
Posts: 75
if a web page has javascipt code then would it be executed before submitting the form using HttpURlConnection?

Thanks

Regards,
Manoj
Ulf Dittmer
Rancher

Joined: Mar 22, 2005
Posts: 42958
    
  73
No. URLConnection is an HTTP library, not a web browser - it knows nothing about JavaScript.
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 20078
    
  30

Ulf is right. It is the HTML rendering engine (inside your browser usually) that executes the JavaScript.


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6 - OCEJPAD 6
How To Ask Questions How To Answer Questions
Manoj Raghuwanshi
Ranch Hand

Joined: Jun 20, 2004
Posts: 75
Thanks guys

 
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: HttpURLConnection and Javascript
 
It's not a secret anymore!