DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

+ Reply to Thread
Results 1 to 2 of 2

Thread: Java

  1. #1
    John Velu Guest

    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


  2. #2
    Paul Clapham Guest

    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
    >




Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


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


Sponsored Links