• Post Reply Bookmark Topic Watch Topic
  • New Topic

Single quotes? Double quotes

 
amarkirt saroay
Ranch Hand
Posts: 167
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


Can anyone please tell me what is correct to use in some tags : we use single quotes and in some its double?

<cut value='${user}' default='guest' /> //single quotes

<c:forEach var="movie" items="${movieList}"> //double quotes?
Is it optional or do we need to memorize the way they are in the book HFJS
 
Chinmaya Chowdary
Ranch Hand
Posts: 437
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, Amarkirt. Single or double quotes, both will work.
 
Gravity is a harsh mistress. But this tiny ad is pretty easy to deal with:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!