• Post Reply Bookmark Topic Watch Topic
  • New Topic

Using struts tag library inside one I am developing

 
Kim Baddeley
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am trying to determine if it is possible to re-use a tag library inside one I am developing.

In the normal scenario I could add
my.text=Hello World
to resource.properties and then inside my JSP add the tag
<bean:message key="my.text"/>

I now want to develop my own tag library and as part of that library output use the existing bean tag to output the same text but how ?

The following in my custom tag handler class is not going to work

JspWriter out = pageContext.getOut();
out.print("<bean:message key="my.text"/>");

Thanks,
Kim
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!