Java


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

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
    >




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


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center