Forums Register Login

regarding custom tags rtexprvalue

+Pie Number of slices to send: Send
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?
+Pie Number of slices to send: Send
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
What I don't understand is how they changed the earth's orbit to fit the metric calendar. Tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 1457 times.
Similar Threads
how to get the value saved in request scope in a servlet into a jsp page
weblogic error
custom tag and getAttribute
Regarding rtexprvalue
Taglib problem
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 14:53:42.