java - Spring RequestMapping to read encoded & -
i'm trying requestmapping pick following url pathname.
action?param1=6&param2=b&param3=true&param4=50652&param5=2
i'm able path below work. when converting & '& amp;' unable read parameters.
action?param1=6¶m2=b¶m3=true¶m4=50652¶m5=2
method action
@requestmapping(value = "/action", method = requestmethod.get) public modelandview doaction(httpservletrequest httprequest, httpservletresponse httpresponse) throws exception { log.info(httprequest.getparameter("param1")); }
fyi want steer clear of string manipulations
Comments
Post a Comment