GeeCON Prague 2014*
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes Scwcd doubt Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "Scwcd doubt" Watch "Scwcd doubt" New topic
Author

Scwcd doubt

narendra bhattacharya
Ranch Hand

Joined: Feb 17, 2010
Posts: 66
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
Creator of Enthuware JWS+ V6
Bartender

Joined: Apr 07, 2010
Posts: 1686
    
  25

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: 66


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.
 
GeeCON Prague 2014
 
subject: Scwcd doubt