-
Java
Hi:
I am new to Java. I have created a java class which has two hard coded variables,
one for an url address (such as "http://www.xyz.com") and the other for a
querystring.The querystring (name,value pair; such as "lname=Velu&fname=John")has
to be sent to the url address. Can you please suggest me how this could be
done. Should I use XML and Java or I could just use some java classes to
do it. A code snippet will be great.
Thanks
-
Re: Java
You should use the classes in the java.net package, particularly the URL and
URLConnection classes. Check out the documentation, it might even have an
example. (What does XML have to do with this?)
PC2
"John Velu" <nadarajan_v@yahoo.com> wrote in message
news:3ae25942$1@news.devx.com...
>
> Hi:
> I am new to Java. I have created a java class which has two hard coded
variables,
> one for an url address (such as "http://www.xyz.com") and the other for a
> querystring.The querystring (name,value pair; such as
"lname=Velu&fname=John")has
> to be sent to the url address. Can you please suggest me how this could be
> done. Should I use XML and Java or I could just use some java classes to
> do it. A code snippet will be great.
>
> Thanks
>
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks