In text box i have enter the string &name and in servlet i am getting its value req.getParamtervalue('textbox name') when I enter any string iniated with & character i am not getting the value same case with % character.In logger also its just not getting the value not even null.
Is there any specific behavior of this method with these characters
Hi The request object member function is req.getParameter("text box name"), hope you are using this correctly since in your post you used req.getParameterValue(). Try using the printStackTrace from your tomcat logger, and also try using the req.getQueryString() and parse it by your own and see if the value you are typing in the textbox is being received on server or not? thanks
live and let livE
Joined: Oct 14, 2007
Thanks for your reply.
I am not doing any encoding and decoding on my own. I am submitting and accessing it normally. As kalyan godavarthy suggested to use getQueryString() Its working fine. But with req.getParameterValue("text box name")I am not getting.