This
is pretty basic stuff and only remotely concerns servlets.
The
"%20" is the URL encoding for white space. It's there in Cold Fusion and
ASP, as well. Put double quotes around your value clause like:
value="<%= displayQueryText %>"
Mark
-----Original Message-----
From: Lance Prais [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 25, 2002 12:05 PM
To: [EMAIL PROTECTED]
Subject: Question about Text boxes and JSPI am not sure if this is the best place to ask this question but I hopefully someone has some knowledge about this.I am passing information via URL for example:The code for the URL looks as follows:http://kb-dev/all/results.jsp?QueryText=Lockheed Martin&wordType=3&collection=securetrakIf you notice it is adding "%20" between the does anyone know why this is occurring.I am converting the "QueryText" to a variable "DisplayText". The problem is when I try to assign a value to a Textbox it does not display the entire value.For example: I am passing the phrase "Lockheed Martin"I use the following code to assign a value to a Textbox:<input type="text" name="QueryText" size="20" Value=<%=displayQueryText%> style="text-align: Left; width: 280" tabindex="1" maxlength="500">And a test display to verify the value is being passed correctly:<tr><td><font color="#990000"><%=displayQueryText%></font></td></tr>The output for the textbox is just LockheedWhile the test displays it correctly Lockheed MartinDoes anyone know why this is? I have never run into this when passing variable using Cold Fusion or ASP.Thank you in advanceLance
