Предполагая, что входящий и исходящий типы контента HTTP application / x-www-form-urlencoded , вот конфигурация, которая делает то, что вы хотите (т.е. регистрируете полезную нагрузку и выбираете другой ответ на основе на наличие параметров):
<flow name="webFormFlow">
<!-- Accept a http request from the specific address -->
<http:inbound-endpoint address="http://localhost:5678/httpHello">
<http:body-to-parameter-map-transformer />
</http:inbound-endpoint>
<!-- This logger is just set to show the message accepted from the request -->
<logger level="INFO" message="#[payload]" />
<choice>
<when expression="payload.size() > 0" evaluator="groovy">
<http:outbound-endpoint address="http://localhost:8080/webproj/index.jsp"
method="POST" contentType="application/x-www-form-urlencoded" />
</when>
<otherwise>
<message-properties-transformer>
<add-message-property key="Content-Type" value="text/plain" />
</message-properties-transformer>
<expression-transformer>
<return-argument expression="no parameter is given!"
evaluator="string" />
</expression-transformer>
</otherwise>
</choice>
</flow>