tekege
asked on
HTTPServletRequest truncates ajax request value "contact #12345" from '#' character.
I have to save user input.
<textarea class='darkGrayText' name='dialTip' id='dialTip' rows='5' cols='40'>
If user writes "Contact # 1234567890" then on the server side when I try to get "dialTip" as
String dialTip = request.getParameter("dial Tip");
I only get the string "Contact" ie. the input string get truncated as soon as the '#' char. appears.
<textarea class='darkGrayText' name='dialTip' id='dialTip' rows='5' cols='40'>
If user writes "Contact # 1234567890" then on the server side when I try to get "dialTip" as
String dialTip = request.getParameter("dial
I only get the string "Contact" ie. the input string get truncated as soon as the '#' char. appears.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
you can do this using a Javascript, replace the occurence of '#' with %23 in the request params