This week's book giveaway is in the Server-Side JavaScript and NodeJS forum.
We're giving away four copies of Micro Frontends in Action and have Michael Geers on-line!
See this thread for details.
Win a copy of Micro Frontends in Action this week in the Server-Side JavaScript and NodeJS forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

Doubt in Simple and classic tags

 
Ranch Hand
Posts: 169
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I have following code


and in my jsp i have

it prints getParent() from Child 3 times
1.first the outer most tag starts executing and prints getParent() from Child and when it reaches return statement
2.it enters the body of the outer tag thus reaches second level and once again the above step repeats and finally inner
most 3rd level and when it reaches return statement there is no body so it terminates this is fine.

but i have the following code:


and below code in Jsp:


1.in this case first when the control reaches the outer tag it executes the doTag() and prints "hi this is from the CUSTOM testag"
but when it reaches getJspBody.invoke(null) it should execute second level tag and then once again it should print
"hi this is from the CUSTOM testag" but it is not the case.
i get Null pointer exception because for the second tag body is not there so getJspBody().invoke(null)
throws excption so if i comment this line we do not have facility to get the out like we got in Classis Tags how to solve this issue.

Thanks
[ September 09, 2008: Message edited by: raja ram ]
 
raja ram
Ranch Hand
Posts: 169
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Any updates on this.

Thanks
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic