Click here to Skip to main content
15,889,867 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am facing one problem in jsp

Java
<%
String str="xyz abc";
out.println("<input type="+"text"+"value="+str+">");
%>


after using this command it can only show xyz so please tell me anyone that how i can see all string xyz abc by default in input box using jsp

Thank you
Posted

1 solution

use
Java
out.println("<input type='text' value='"+str+"'>");</input>
 
Share this answer
 
v2
Comments
vishal2592 5-Nov-14 11:20am    
Thank you DamithSL
DamithSL 5-Nov-14 11:23am    
you are welcome!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900