Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Creating your own tag

 
Anand Gondhiya
Ranch Hand
Posts: 155
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

I am writing my own tag. Now, in this tag.java, I write -

out.print("<bean:write...../>");

When I load JSP which use this tag, I see -

<bean:write....../>

and not the interpreted output.


Could anyone please help me solve this??

Thanks,
 
Lasse Koskela
author
Sheriff
Posts: 11962
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can't use other taglibs like that. You need to call their Java implementation directly.
 
Anand Gondhiya
Ranch Hand
Posts: 155
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can you give me some examples ??
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic