• 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:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

regarding custom tags rtexprvalue

 
Ranch Hand
Posts: 445
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
HI,
In SCWCD stdy giude,it is given that if the <rtexprvalue> element returns true then the return vaslue of the tag can be an request time expression.But if it returns false, then the value has to be known at transalation time.
EG.
in tld
<rtexprvalue>true</rtexprvalue>
in jsp
<test:t user="<%='request.getParameter()'%>">

in tld
<rtexprvalue>false</rtexprvalue>
in jsp
<test:t user="john">
But in the above case <rtexprvalue>false
I put in the same
user="<%='request.getParameter()'%>"
and didnt get an error on tomcat.Why?Plz explain anyone?
 
sharp shooter, and author
Posts: 1913
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You won't get an error, you'll just get the value of your attribute as the literal string "<%='request.getParameter()'%>". After all, the container doesn't process the string in anyway if rtexprvalue is set to false.
Simon
 
reply
    Bookmark Topic Watch Topic
  • New Topic