Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Truncated Strings in PrintWriter println  RSS feed

 
Greg Neef
Ranch Hand
Posts: 82
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When I have a string with a blank in it, I am only getting the last part of the s.toString() returned to the browser. I am guessing I have to do something creative with quotes to resolve this problem but it is not jumping out at me.
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13078
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HTML attributes should be enclosed in quotes to avoid ambiguity and strange results.

Should be (if I got them all):

For years browsers have let you get away with no quotes but all new code should stick to strict XHTML standards.
Bill
 
Greg Neef
Ranch Hand
Posts: 82
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That gets it. Thanks
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!