aspose file tools*
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
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 ??
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Creating your own tag