Roger Glover wrote:
> 
> rohit kuttappan [mailto:rohit_software2@;hotmail.com] wrote:
> 
> > java and the website in JSP/Servlets. Now my question is how 
> > my application can communicate (send &
> > receive info from) with a servlet.
> 
> >From your client application's perspective, your interface to your servlet/JSP is 
>an URL. Use the class java.net.URL for all your client/servlet, client/JSP 
>communication needs.  In particular, the constructor java.net.URL.URL(String), and 
>either of the methods java.net.URL.getContent() or java.net.URL.openStream() should 
>be most useful in writing this functionality.
> 
> You can read more about the java.net.URL class and related helper classes at Sun's 
>Java API documentation site:  http://java.sun.com/j2se/1.4.1/docs/api/ .

The Javadocs are always pertinent, but not always useful. Here are some better 
references:

Here are some articles about how to use Java to communicate over the net
http://www.javaworld.com/javaworld/jw-03-2001/jw-0323-traps.html
http://java.sun.com/docs/books/tutorial/networking/index.html

And here are some links about programmatically communicating with a servlet
http://forum.java.sun.com/thread.jsp?thread=274851&forum=33&message=1061992
http://www.j-nine.com/pubs/applet2servlet/Applet2Servlet.html
one of the classics on this topic: http://www.jguru.com/faq/view.jsp?EID=157
http://www.experts-exchange.com/Programming/Programming_Languages/Java/Q_11750219.html

I found the articles above with the following search:
http://www.google.com/search?q=communicating+with+servlet

And here's something I wrote a few years ago:
http://home.earthlink.net/~kmukhar/appletServlet/index.html

K Mukhar

____________________________________________________
To change your JDJList options, please visit:
http://www.sys-con.com/java/list.cfm

Be respectful! Clean up your posts before replying
____________________________________________________

Reply via email to