You can quote the value returned by the scriptlet,like this:

<input type="TEXT" name=City size="25" value="<%=table.getCity()%>" >

=======================================================

Date:    Sat, 26 Feb 2000 15:46:41 -0800
From:    Sivakumar S <[EMAIL PROTECTED]>
Subject: Display PROBLEM in text fields for JSP

Hi

I'm using a Servlet Bean to retrieve information from the database. The JSP code
looks similar to the one below, where "table" is the bean name.

<input type="TEXT" name=City size="25" value=<%=table.getCity()%> >

This has to retrieve CITY value from the database and put it into the text field
for editing .

If the city is something like "San Jose", then the characters after "San" is
getting truncated because the code is interpreted as

value = San

only.

Help needed

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to