File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/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 OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP 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