It's as simple as just adding double quotes around the City name to define
the boundaries of the string. If double quotes aren't used then you get the
default behaviour that you described.

The below should work fine.

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

Chris

>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".
>FAQs on JSP can be found at:
> http://java.sun.com/products/jsp/faq.html
> http://www.esperanto.org.nz/jsp/jspfaq.html
>
>

===========================================================================
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