Win a copy of Rust Web Development this week in the Other Languages forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Junilu Lacar
  • Rob Spoor
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Jesse Silverman
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Piet Souris
  • Frits Walraven

Qn from JSP Spec

 
Ranch Hand
Posts: 60
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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,
 
Ranch Hand
Posts: 951
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic