wood burning stoves 2.0*
The moose likes Struts and the fly likes Creating your own tag Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Creating your own tag" Watch "Creating your own tag" New topic
Author

Creating your own tag

Anand Gondhiya
Ranch Hand

Joined: Feb 24, 2004
Posts: 155
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

Joined: Jan 23, 2002
Posts: 11962
    
    5
You can't use other taglibs like that. You need to call their Java implementation directly.


Author of Test Driven (2007) and Effective Unit Testing (2013) [Blog] [HowToAskQuestionsOnJavaRanch]
Anand Gondhiya
Ranch Hand

Joined: Feb 24, 2004
Posts: 155
Can you give me some examples ??
 
Don't get me started about those stupid light bulbs.
 
subject: Creating your own tag