aspose file tools*
The moose likes Servlets and the fly likes How to send Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "How to send" Watch "How to send" New topic
Author

How to send

surendar prabu
Ranch Hand

Joined: Jul 24, 2006
Posts: 102
when i send a HTTP request to my servlet, can i send my request parameters as XML data instead of HTML Form parameters??? In both the cases the parameters are going to be the same...

Please help me out..


SCJP 1.4
Darren Edwards
Ranch Hand

Joined: Aug 17, 2005
Posts: 69
HTTP transfers data using parameters you cannot do anything to alter that. What you can do is pass XML as a parameter if that's what you need.


(in real life that parameter would be encoded, but I've not shown that for clarity)
ankur rathi
Ranch Hand

Joined: Oct 11, 2004
Posts: 3830
Originally posted by surendar prabu:
when i send a HTTP request to my servlet, can i send my request parameters as XML data instead of HTML Form parameters??? In both the cases the parameters are going to be the same...

Please help me out..


I think, you can achieve this with the help of hidden fields.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to send
 
Similar Threads
passing methods from one servlet to another servlet
doGet() but I don'tGet()
Posting request to other domain using jsp
Cannot find child element: arg0
how to read POST type parameters in a servlet using doPOST