Hello, I am currently facing issue with passing multiple POST parameters from html page to servlet and routed to Camel Spring DSL.
<camel:from uri="servlet:///getPOI?matchOnUriPrefix=true"/> <camel:setHeader headerName="CamelHttpMethod" inheritErrorHandler="true"> <camel:constant>POST</camel:constant> </camel:setHeader> <camel:setHeader headerName="Content-Type" inheritErrorHandler="true"> <camel:constant>application/x-www-form-urlencoded</camel:constant> </camel:setHeader> <camel:setBody inheritErrorHandler="true"> <camel:simple>userID=${header.userID},password=${header.password},poiID=${header.poiID}</camel:simple> </camel:setBody> <camel:choice> <camel:when> <camel:method bean="testbean" method="checkParameters"/> <camel:to uri="http://localhost:8080/ReceiveParameters/ReceiveServlet?bridgeEndpoint=true&throwExceptionOnFailure=false" inheritErrorHandler="true" pattern="InOnly"/> </camel:when> <camel:otherwise> <camel:to uri="http://localhost:8080/ReceiveParameters/ReceiveServlet?bridgeEndpoint=true&throwExceptionOnFailure=false" inheritErrorHandler="true" pattern="InOnly"/> </camel:otherwise> </camel:choice> </camel:route> How to separate the parameters in setBody CamelContext? <camel:setBody inheritErrorHandler="true"> <camel:simple>userID=${header.userID},password=${header.password},poiID=${header.poiID}</camel:simple> Currently all the parameters are being received as single parameter userID=uid-12345,password=uid-12345,poiID=Pune and I tried to use SPLIT, with "," as tokenizer <camel:split><camel:tokenize token=","/></camel:split> but still it is not working. Please suggest. Thanks in advance, Manoj -- View this message in context: http://camel.465427.n5.nabble.com/Multiple-POST-parameters-in-Spring-DSL-tp5726242.html Sent from the Camel - Users mailing list archive at Nabble.com.