开发者

Not able to pass "+" to grails webservice URL

We are having an issue when we pass a parameter having "+" character in it, to a webservice (written in groovy), the character is being decoded to a space. Even if we pass "%2开发者_运维百科B", it is being decoded twice(?) and resulting in to a space. We are using grails 1.3.6

Can some one help me out?

URLMappings file has

"/actionName/${param1}"(controller:'myController', action:'myAction')

When we call

/actionName/my+param 

or

/actionName/my%2Bparam

both result in to

/actionName/my param 

Thanks, Madhu.


"/actionName/$param1?"(controller: "actionController", action: "actionName")

and then access it like that...

http://localhost:8383/app/actionName/foo+bar
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜