• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Expression output

 
Gaurav Chikara
Ranch Hand
Posts: 412
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
I tried these two expressions
<%= "\"aa\\" %>
output
"aa\
(it is ok as per the jsp specs)
but
<%= "\''aa\\" %>
also gives
"aa\
though jsp specs says
A ‘ is quoted as \’. This is required within a single quote-delimited attribute
value.(page 40)
then why it gave the same output
 
Peter den Haan
author
Ranch Hand
Posts: 3252
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Gaurav Chikara:
then why it gave the same output
But did it? With many proportional fonts, the difference between two single quotes '' and one double quote " is very hard to see.
View the page source to make sure.
- Peter
 
Sam Cala
Ranch Hand
Posts: 147
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Enough is Enough...
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic