How to pass values from client side to server side ?
Posted
by manojp1988
on Stack Overflow
See other posts from Stack Overflow
or by manojp1988
Published on 2010-05-03T04:55:08Z
Indexed on
2010/05/03
5:08 UTC
Read the original article
Hit count: 245
Hi All,
I got a situation to transfer values from jsp to servlet's action class. Previously we did it using
<input type="hidden" id="name" value="manoj" />
we take this value in action class by request.getParameter("name")
. But now we couldn't pass value like
"Hi\n
i am\n
Manoj".
Since it has new line included in the string we couldn't take it like this to action. So how I can take value like this to action or is there any way other than hidden input?
Thanks .
© Stack Overflow or respective owner