| Author |
Scwcd doubt
|
narendra bhattacharya
Ranch Hand
Joined: Feb 17, 2010
Posts: 65
|
|
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..??
|
SCJP1.6,SCWCD1.5
|
 |
Frits Walraven
Rancher
Joined: Apr 07, 2010
Posts: 1040
|
|
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
|
 |
narendra bhattacharya
Ranch Hand
Joined: Feb 17, 2010
Posts: 65
|
|
pageContext.getAttribute("name"); or pageContext.setAttribute("name","myname") ; are the syntactically correct..??
both of them are correct
Means scope is PageContext.pageScope..
|
 |
bhanu chowdary
Ranch Hand
Joined: Mar 09, 2010
Posts: 256
|
|
|
It is page scope.
|
 |
 |
|
|
subject: Scwcd doubt
|
|
|