This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
Problem I am using the following JSP code to insert text from a String in a simple Java bean (using appropriate accessor method) into a text box in a form on a web page: <input type="text" name="newAnswerText" size="75" value=<%=BeanName.getTextAnswer(qIndex,i)%> > If the returned string value is "Have a nice day" for example, then only the first word "Have" appears in the text box. As a check, I copied the value to the server window using a "System.println(..)" command and the full string is stored in the bean. It seems that at the last moment of transfer from the bean to the web page text box, it loses all the other words. I'm using Tomcat3.2.2. Any solutions? regards Gary R.