• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Scwcd doubt

 
Ranch Hand
Posts: 66
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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..??
 
Creator of Enthuware JWS+ V6
Posts: 3411
320
Android Eclipse IDE Chrome
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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..
 
Ranch Hand
Posts: 256
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
It is page scope.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic