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

Question about Custom Tags

 
James Turner
Ranch Hand
Posts: 194
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Guys,

I have been looking at Custom Tags and was wondering what is the default value for the body-content? Is it JSP?

If you specify a non-empty body-content is it still ok not to have a body?

Thank you for your help...

Regards,
James.
 
Colin Fletcher
Ranch Hand
Posts: 200
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What does the spec say James?
 
Pushkar Raste
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi James,
Default value of <body-content> is JSP as per the spec.
If you specify non-empty body content then also it is OK not to have body.

Thanks,
Pushkar S. Raste
 
Sim Kim
Ranch Hand
Posts: 268
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
According to JSP spec 2.0 : body-content tag is mandatory for Custom tags . So there is no default value as such .

I think Pushkar is refering old jsp spec .

Please refer the new spec JSP 2.0
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic