Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Jeanne Boyarsky
  • Liutauras Vilda
Sheriffs:
  • Rob Spoor
  • Bear Bibeault
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:
  • Frits Walraven
  • Himai Minh

any alternative for query string??

 
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
Hello All,

Please let me know if there is any alternative to query string for passing data. The problem is that its a hyperlink (href) through which query string is passed and hence we cannot use request or session objects. Please suggest on this..

Regards
Atiq
 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
GET requests have to use query strings in the URL.

POST requests have to use form style text in the body of the request.

Assuming that you are talking about a request executed on the server side, and that the service you need to talk to supports POST, look into the HttpURLConnection and related classes in the java.net package of the standard Java library. There are plenty of tutorials and articles around on this sort of thing.

Bill
 
Bartender
Posts: 4179
22
IntelliJ IDE Python Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
Wow, can't wait 2 hours for a response?
Double post: Here: Time 6:30am
 
Don't get me started about those stupid light bulbs.
    Bookmark Topic Watch Topic
  • New Topic