Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

EL expression

 
Surajsingh Thakur
Ranch Hand
Posts: 124
Eclipse IDE MySQL Database Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
if in jsp i want to print a number can i print it like this..

${12345}
 
Sarat Koduri
Ranch Hand
Posts: 83
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i guess you need to put quotes around the number inside the braces. dont you?.


 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i guess you need to put quotes around the number inside the braces. dont you?.

No need for quotes if the value is in the range of a Long. Otherwise yes, you'll need the double quotes to make it a String.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic