wood burning stoves 2.0*
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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
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
Marshal

Joined: Mar 22, 2005
Posts: 41127
    
  45
No. URLConnection is an HTTP library, not a web browser - it knows nothing about JavaScript.


Ping & DNS - my free Android networking tools app
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19654
    
  18

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
How To Ask Questions How To Answer Questions
Manoj Raghuwanshi
Ranch Hand

Joined: Jun 20, 2004
Posts: 75
Thanks guys

 
It is sorta covered in the JavaRanch Style Guide.
 
subject: HttpURLConnection and Javascript
 
Similar Threads
HTTP Response code 414
java.io.IOException: Premature EOF
Receiving response from another server program
URL.openStream()
JSP/Servlet library for standalone application?