aspose 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: 42635
    
  65
Because JSPs generate character data, and the Java datatype for character data is the String.


Ping & DNS - my free Android networking tools app
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: JSP Expressions