File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes EL expression Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Reply Bookmark "EL expression" Watch "EL expression" New topic
Author

EL expression

Surajsingh Thakur
Ranch Hand

Joined: Sep 09, 2008
Posts: 124

if in jsp i want to print a number can i print it like this..

${12345}


BE (Computer Science) SCJP 4 (80%) SCWCD 5 (97%) IBM CAD(98%) IBM CAppD(100%) IBM SD(100%)
Sarat Koduri
Ranch Hand

Joined: Jul 08, 2008
Posts: 83
i guess you need to put quotes around the number inside the braces. dont you?.


Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14672
    
  11

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.


[My Blog]
All roads lead to JavaRanch
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: EL expression
 
Similar Threads
Doubt on Expression Language
SCMAD Exam Notes
Bar Code Generation API from SUN
How setDaemon works
using string value as a variable name