i am using this function for get request param spring3 mvc and my url is
localhost:8080/karmaFriend/register/abc/wq/abc@abc.com
@RequestMapping(value = "/register/{username}/{password}/{email}", method = RequestMethod.GET)
public @ResponseBody ResponseMsg getUserInJSON(@PathVariable String username, @PathVariable String password, @PathVariable String email) {
ResponseMsg responseMsg = CommonUtils.checkParam(username, password, email);
if(responseMsg.getStatus().equalsIgnoreCase("True"))
responseMsg = userService.registerUser(username, password, email);
return responseMsg;
}
it works good but if i change my url like this localhost:8080/karmaFriend/register/abc//abc@abc.com
then it will not call to that function ... is there any other way to call same function ??