• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

regarding custom tags rtexprvalue

 
Vedhas Pitkar
Ranch Hand
Posts: 445
  • Mark post as helpful
  • send pies
  • 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?
 
Simon Brown
sharp shooter, and author
Ranch Hand
Posts: 1913
6
  • Mark post as helpful
  • send pies
  • 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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic