You need to use double quotes around the value as below

<input type="text" name="address" value="<%=rs.getString(1)%>">

Atif

-----Original Message-----
From: java-ee-j2ee-programming-with-passion@googlegroups.com
[mailto:java-ee-j2ee-programming-with-pass...@googlegroups.com] On
Behalf Of aryan
Sent: Saturday, August 29, 2009 5:26 AM
To: Java EE (J2EE) Programming with Passion!
Subject: [java ee programming] want to display value in text field


Hello every one!,
I am accessing value from database and want to display in text field,
but problem is that if there is space in value accessed from database
then it only display value upto space. not the value after space. can
any one tell me how to display complete value.
Example:-
data accessed from database is "shankar nagar".
In textfield it only display "shankar".
My code is:-

<input type="text" name="address" value=<%=rs.getString(1)%>

Please help me.
Thanks!



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Java EE (J2EE) Programming with Passion!" group.
To post to this group, send email to
java-ee-j2ee-programming-with-passion@googlegroups.com
To unsubscribe from this group, send email to
java-ee-j2ee-programming-with-passion+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/java-ee-j2ee-programming-with-passion?hl=en?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to