Forums Register Login

Scwcd doubt

+Pie Number of slices to send: Send
Hi evry1 ,
i have some doubts can somebody help me in this..

1.> <jsp:root> is required or not..??
2.> <jsp:attribute name="name" value="myname" /> or <jsp:attribute name="name">myname </jsp:attribute> are both correct.??
3.> pageContext.getAttribute("name"); or pageContext.setAttribute("name","myname") ; are the syntactically correct..??
1
+Pie Number of slices to send: Send
 

1.> <jsp:root> is required or not..??


no, is not

<jsp:attribute name="name" value="myname" /> or <jsp:attribute name="name">myname </jsp:attribute> are both correct.??


<jsp:attribute> doesn't have a value attribute, so the first one is not correct

pageContext.getAttribute("name"); or pageContext.setAttribute("name","myname") ; are the syntactically correct..??


both of them are correct

Regards,
Frits
+Pie Number of slices to send: Send


pageContext.getAttribute("name"); or pageContext.setAttribute("name","myname") ; are the syntactically correct..??


both of them are correct


Means scope is PageContext.pageScope..
+Pie Number of slices to send: Send
It is page scope.
It's a tiny ad only because the water is so cold.
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 888 times.
Similar Threads
jsp:attribute - HFJ 472
jaxb marshalling problem
Which options correctly pass two attributes to a custom tag ?
pass two attributes to a custom tag
Why <c:set var=..></c:set> will not accepts <jsp:attribute> inside the body
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 29, 2024 07:54:21.