• Post Reply Bookmark Topic Watch Topic
  • New Topic

JSTL  RSS feed

 
Abhishek Kumar Singh
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
<html>
<body>
<%@ taglib= prefix="mine" uri="randomthings"%>
Advisor Page<br>
<mine:advice user="${userName)"/>
</body></html>

where does ${userName} comes from.
(I guess from tagHandler class get method()).

Thanks
 
Vassili Vladimir
Ranch Hand
Posts: 1585
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

If you open the TLD file for this tag, there's a sub element named <rtxprvalue> of <attribute> which takes either true or false, and this means that the value of this attribute can be a runtime expression value or not.

rtxprvalue means runtime expression value.

So in this example the rtxprvalue must be true.

And the ${userName} must be an attribute in one of the four scopes: pageScope, requestScope, sessionScope, applicationScope.

Best of luck ...
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!