This week's book giveaway is in the Agile and Other Processes forum.
We're giving away four copies of The Little Book of Impediments (e-book only) and have Tom Perry on-line!
See this thread for details.
Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Doubt in Simple and classic tags

 
raja ram
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic