Hi, I working on an app that passes a XML string through a HTTP form post to a Servlet. The string looks something like this:
xmldocument=<?xml version="1.0" encoding="UTF-8"?> <AdvancedSearch> <SearchExpression searchItem ="product"> <Expression field="category" operator="EQ" value="tires"></Expression></SearchExpression></SearchExpression></AdvancedS earch> When I call getParameters on HTTPServletRequest, I expect to get the following name-value pair: name: xmldocument value: <?xml version="1.0" encoding="UTF-8"?> <AdvancedSearch> <SearchExpression searchItem ="product"> <Expression field="category" operator="EQ" value="tires"></Expression></SearchExpression></SearchExpression></AdvancedS earch> However, I get the following name-value pair back: name: "EQ" value value: "tires"></Expression></SearchExpression></SearchExpression></AdvancedSearch> >From this, I have a few questions: * Why does this happen? Is there a problem in the encoding of the XML? The content type being used is "application/x-www-form-urlencoded" * How does Tomcat go about getting parameters from the message body? Does it start from the end of the string? Also, I ran my app through JRun and got the correct results. Any help would be greatly appreciated. Thanks, Bo
winmail.dat
Description: application/ms-tnef
-- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
