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

Qn from JSP Spec

 
Chandrakanth
Ranch Hand
Posts: 60
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi

I found this in JSP Spec
JSP.1.14.2.2 Conversions from request-time expressions
Request-time expressions can be assigned to properties of any type. In the case of scriptlet expressions, no automatic conversions will be performed. In the case of EL expressions, the rules in Section JSP.2.8, �Type Conversion� must be
followed.

here what are they referring by saying
Request-time expressions and
scriptlet expressions,
 
Narendra Dhande
Ranch Hand
Posts: 951
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Chandrakanth Dn:
hi

I found this in JSP Spec
JSP.1.14.2.2 Conversions from request-time expressions
Request-time expressions can be assigned to properties of any type. In the case of scriptlet expressions, no automatic conversions will be performed. In the case of EL expressions, the rules in Section JSP.2.8, �Type Conversion� must be
followed.

here what are they referring by saying
Request-time expressions and
scriptlet expressions,



Request time expression are evalutaed when the page actually received the request. You can specify request time expression in two way.

1. Scriptlet Expressions like <%= some expression %>
2. EL Expressions ${someexpr}

When you give some static value in the tag attribute like

<prefix:somtag attrib1="FixedValue"/>

The the automatic type conversion is done by the container when assiging the value to the atg handler attribute.

But if you use

<prefix:somtag attrib1="<%=Someexpr%>" />

The automatic type conversion is not done.


Hope it helps

Thanks
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic