I am having a problem with the Text Box's value= attribute and the usage of a javascript expression to prime it. Here's a sample
JSP that illustrates the problem:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML>
<HEAD>
<META name="GENERATOR" content="IBM WebSphere Studio">
<TITLE>testJSP.jsp</TITLE>
</HEAD>
<BODY>
<%
String stringField = "Hello There!"; %>
<%=stringField%>
Input Text Box:<INPUT size="30" type="text" maxlength="30" name="aField" value=<%=stringField%>>
</BODY>
</HTML>
Notice that the stringField is set to "Hello There!" and that it is used to prime the value in the Text box using a javascript expression. However, only "Hello" shows up in the text box.
Does this work differently for anyone else? Is there anyway to dynamically prime the text box's value with the complete string with imbedded spaces?
HELP!