• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Scwcd doubt

 
narendra bhattacharya
Ranch Hand
Posts: 66
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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..??
 
Frits Walraven
Creator of Enthuware JWS+ V6
Saloon Keeper
Pie
Posts: 2410
95
Android Chrome Eclipse IDE
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 66
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


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
Posts: 256
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It is page scope.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic