How can I display a full string as a default value in an input text in JSP?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • phpuser123
    New Member
    • Dec 2009
    • 108

    How can I display a full string as a default value in an input text in JSP?

    I want to display my string str as the defaultinput value and when I run ,oly the first part of the word is displayed. It skips everything after the blank space.How do I sort this out?
    <%

    String str="First Second";

    String form="<form name='test'><in put type='text' value="+str+"></form>";
    out.println(for m);

    %>
Working...