Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

JSP Expressions  RSS feed

 
Anudeep Duvvuri
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Rancher
Posts: 42972
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Because JSPs generate character data, and the Java datatype for character data is the String.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!