• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Doubt on nested tags

 
sudhakar karnati
Ranch Hand
Posts: 93
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In HFSJ there is an example given for Nested tags..

I tried the following example

index.jsp




and TagHandler code:


and the TLD is:



and the ouput is just:
Hello World:
Tag nested level :0

but in the book output is hsown as
Tag nested level :0
Tag nested level :1
Tag nested level :2

for this JSP



Any thing wrong in my code
Please help me

Thanks & Regards,
Sudhakar Karnati

[ April 28, 2008: Message edited by: sudhakar karnati ]
[ April 28, 2008: Message edited by: sudhakar karnati ]
 
Bobby Sharma
Ranch Hand
Posts: 598
3
Google App Engine jQuery Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The same thing happened to me ,you should do this:

in the doStartTag,try to return EVAL_BODY_INCLUDE instead of SKIP_BODY
just the same way, try to return EVAL_PAGE in doEngTag.

best regards,
omi
[ April 28, 2008: Message edited by: omi sharma ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic