By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
429,365 Members | 3,180 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 429,365 IT Pros & Developers. It's quick & easy.

decoded value

P: 14
i m decoding a string using jsp (ex:encode value="hello+world")...when i m decoding it;s coming as "hello world"'s working fine in jsp when i m putting the value in html text field only the first word "hello" was printing the another one was not printing....when i m using textarea it's printing correctly....what should i want to do to print entire words in text field...can anyone give me the solution for my pbm...
Mar 1 '07 #1
Share this Question
Share on Google+
3 Replies

Expert 100+
P: 839
what is the code you are using to assign the value to the text field?
Mar 1 '07 #2

P: 14
i m using the following code for putting the value in text field

<input type=text value=<%=URLDecoder.decode("str","RTF-8")%>>
Mar 2 '07 #3

Expert 100+
P: 839
I'm not a JSP expert, but I think that str should be encoded as "Hello%20World" before decoding.
See also this link.
Mar 2 '07 #4

Post your reply

Sign in to post your reply or Sign up for a free account.