Forums Register Login

JSTL

+Pie Number of slices to send: Send
<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
+Pie Number of slices to send: Send
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 ...
Where all the women are strong, all the men are good looking and all the tiny ads are above average:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 471 times.
Similar Threads
How to put loading... when page is loading?
how to populate value in combo box
Can't get parameter from request
Session object doubt
scope problems
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 13:17:57.