aspose file tools*
The moose likes Servlets and the fly likes escape char cuts parameter in http post Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "escape char cuts parameter in http post" Watch "escape char cuts parameter in http post" New topic
Author

escape char cuts parameter in http post

beez beeeez
Greenhorn

Joined: Oct 16, 2003
Posts: 1
So my servlet accepts http posts, which are strings of xml. I get the first parameter with the following and put it in incomingXML.
Enumeration paramNames = request.getParameterNames();
String paramName1 = (String) paramNames.nextElement();
incomingXML = (String) request.getParameter(paramName1);
The problem is that the sender (a 3rd party system whose code i can't see) says they send the xml like this:
<main tag><tag1>blah</tag1><tag2>blah blah &lt; blah</tag2></main tag>
but what i get is chopped off like:
<main tag><tag1>blah</tag1><tag2>blah blah
What I originally thought was that they were sending '<' instead of '&lt;'. But I don't even get that, its just chopped off. Any help is much appreciated. Thanks.
[ October 16, 2003: Message edited by: beez beeeez ]
[ October 16, 2003: Message edited by: beez beeeez ]
[ October 16, 2003: Message edited by: beez beeeez ]
[ October 16, 2003: Message edited by: beez beeeez ]
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17260
    
    6

"beez beez"-
Welcome to the JavaRanch! Please adjust your displayed name to meet the
JavaRanch Naming Policy.
You can change it
here.
Thanks! and welcome to the JavaRanch!
Mark


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: escape char cuts parameter in http post