Or easier:
<input type="TEXT" name=City size="25" value="<%=table.getCity()%>" >
/per
-----Original Message-----
From: Narasimha, Goli [mailto:[EMAIL PROTECTED]]
Sent: den 1 mars 2000 14:45
To: [EMAIL PROTECTED]
Subject: Re: Display PROBLEM in text fields for JSP
Hi,
When there is space' ' in the string, it displays only the first part of
it.
I would suggest put the value in single quotes as shown in the below line.
<input type="TEXT" name=City size="25" value=<%= "'" + table.getCity() + "'"
%> >
Tx
Goli.
-----Original Message-----
From: Sivakumar S [mailto:[EMAIL PROTECTED]]
Sent: Saturday, February 26, 2000 6:47 PM
To: [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".
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
===========================================================================
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