i am passing @Requestparam /register?name=newname from a page. but next time i call a page /register/confirm, it’s showing the param in the url like /register/confirm?name=newname. how to avoid this?
i am passing @Requestparam /register?name=newname from a page. but next time i call a
Share
I recently had the same issue. This could happen because
nameis being confused with a Path in a@ModelAttribute. Do you have any suchModelAttributein the same view ?I dont know how your view works, but it’s best that you refer to the
@RequestParamas${param.name}rather thanname(in case you’re not already)