• Post Reply Bookmark Topic Watch Topic
  • New Topic

Expression output

 
Gaurav Chikara
Ranch Hand
Posts: 413
  • 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...
 
my overalls have superpowers - they repel people who think fashion is important. Tiny ad:
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!