Switch to full style
Java2 codes,problems ,discussions and solutions are here
Post a reply

How java access URL

Tue Oct 21, 2008 7:45 pm

How do i accessing URL using java?, currently i am developing application
(background process) and i have to access the URL (not a webservice).



Re: How java access URL

Tue Oct 21, 2008 7:47 pm

Using java.net package we can call the url from the java.


Code:
    URL           servletUrl     = new URL( (url);
    URLConnection servletConnect = servletUrl.openConnection();


Post a reply
  Related Posts  to : How java access URL
 MS-Access with java     -  
 access modifiers in java     -  
 data access layer for java     -  
 HOW I Access the Parallel Port in Java?     -  
 correct syntax for access providers in java     -  
 java code to open word doc attached in ms access.db     -  
 Password Security Manager Access File Java     -  
 Example of using access key with links     -  
 Access modifiers     -  
 access element in array C++     -  

Topic Tags

Java Strings