Try <input type="text" name="QueryText" size="20" > Value="<%=displayQueryText%>" style="text-align: Left; width: 280" > tabindex="1" maxlength="500">
(Notice the quotes after Value=) When you view your source it probably looked like this: <input type="text" name="QueryText" size="20" > Value=Lockheed Martin style="text-align: Left; width: 280" > tabindex="1" maxlength="500"> SO it took Lockheed as the value but ignored Martin as an unknown tag the %20 are so that HTTP doesn't get confused (it doesn't know spaces) d. Lance Prais wrote: > 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: > > > > >http://kb-dev/all/results.JSP?QueryText=Lockheed%20Martin&wordType=3&collection=securetrak > ><http://kb-dev/all/results.JSP?QueryText=Lockheed%20Martin&wordType=3&collection=securetrak> > > > > 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 > -- David Mossakowski [EMAIL PROTECTED] Instinet Corporation 212.310.7275 ******************************************************************************* <<Disclaimer>> This message is intended only for the use of the Addressee and may contain information that is PRIVILEGED and/or CONFIDENTIAL or both. This email is intended only for the personal and confidential use of the recipient(s) named above. If the reader of this email is not an intended recipient, you have received this email in error and any review, dissemination, distribution or copying is strictly prohibited. If you have received this email in error, please notify the sender immediately by return mail and permanently deleting the copy you received. Thank you. ******************************************************************************* ___________________________________________________________________________ To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff SERVLET-INTEREST". Archives: http://archives.java.sun.com/archives/servlet-interest.html Resources: http://java.sun.com/products/servlet/external-resources.html LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
