0
<input type="text" name="item" size=30 onKeyUp="this.value=this.value.toUpperCase()" value="<%=item%>">

on keying in item value : 1016M012G+10/1K16:1-C but it displays me only 1016M012G 10/1K16:1-C without a plus sign after G

1016M012G/10/1K16:1-C works fine 1016M012G-10/1K16:1-C works fine

what is the problem??

Tushar
  • 85,780
  • 21
  • 159
  • 179
jane
  • 9
  • 2

1 Answers1

1

When submitting the value of the input field, you have to encode the string to keep the "+" in there, beacause when submitting inside a URL the plus ("+") will be treated as a space, which is exactly what you end up with.

The solution to your problem should be found here: How to URL encode a URL in JSP?

Community
  • 1
  • 1
Stefan Dochow
  • 1,454
  • 1
  • 10
  • 11