Title: RE: [off topic] keep generated option in websphere
Hi Lance,
 
%20 occurs if there is any spaces in between two data's that are to be sent. Check for any spaces and he problem will be solved.
 Put the value within the quotes in the input field. i.e., <input type="text" value="<%= xyz %>" >
and not <input type="text" value=<%= xyz %> >
--------------------------------------------------------------------------------------------------------------------------------------------------------
Regards,
Srinivasa S Nayak
----- Original Message -----
Sent: Thursday, April 25, 2002 9:35 PM
Subject: Question about Text boxes and JSP

I 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=securetrak
 
If 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 Lockheed
 
While the test displays it correctly  Lockheed Martin
 
Does anyone know why this is?  I have never run into this when passing variable using Cold Fusion or ASP.
 
 
Thank you in advance
Lance

Reply via email to