File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSP and the fly likes JSP Expressions Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "JSP Expressions" Watch "JSP Expressions" New topic
Author

JSP Expressions

Anudeep Duvvuri
Greenhorn

Joined: May 18, 2012
Posts: 29
In Jsp Spec I have read the following under the topic expression

"An expression element in a JSP page is a scripting language expression that is evaluated and the result is coerced to a String"

Why should the evaluated result should be coerced to a String can anyone explain in detail
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 39548
    
  27
Because JSPs generate character data, and the Java datatype for character data is the String.


Ping & DNS - updated with new look and Ping home screen widget
 
 
subject: JSP Expressions
 
Similar Threads
operators and precedence
rtexpvalue in custom tags
expressions in JSP
EL relational operators and empty string ""
Issues with Character comparison in JSTL 1.1