rohit kuttappan [mailto:rohit_software2@;hotmail.com] wrote:

> Hello All.

Hello Rohit.

> I'm fairly new to java, and am building an application that needs
> to submit data to a web site. I had seen an application (Not Java) on a
> friends laptop that submitted his tax returns to the IRS. I'm trying to
> build a similar application that would need to submit info to a 
> web site and also download some info from the website to the client.
> 
> I was thinking if it would be possible to build the client application in
> java and the website in JSP/Servlets. Now my question is how (if at all
> ..... I could not find anything of relevance on google and in the JSP,
> Servlets Specifications) 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/ .

-- Roger


____________________________________________________
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