when I retrieves my setting 'email' from my html page in my controller Spring I do not receive my entire string
my js:
modalNode.find('.modal-btn-yes').click(function () {
var email = document.getElementById('email');
location.href = $(this).data('url') + "/" + encodeURI(email.value);
});
my controller:
@RequestMapping(value = "/compile/{applicationId}/{email}")
public String compileApplication(@PathVariable Long applicationId, @PathVariable String email) throws ApplicationNotFoundException {
...
}
my value input in my html page:
myemail@gmail.com
my value in my controller:
myemail@gmail