You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by StrutsNewbie <me...@rediffmail.com> on 2008/02/27 12:36:26 UTC
Struts Plugin and Taglib reference
Hi all,
I have multiple web applications following the struts framework. I have
certain common components that are used in all these web applications. I
have kept the common components as a struts plugin in each web application's
WEB-INF/lib folder. My plugin is accessing a taglib in another jar file.
This jar file is also placed inside WEB-INF/lib of each web application. But
the problem is that when I try to access the taglib through a freemarker
template, it is giving the following exception:
Could not find webapp resource /my-tags
The problematic instruction:
----------
==> assignment: t=JspTaglibs["/my-tags"]
The .ftl file is placed inside my plugin jar.
Please give your valuable suggestions on this.
--
View this message in context: http://www.nabble.com/Struts-Plugin-and-Taglib-reference-tp15711425p15711425.html
Sent from the Struts - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: Struts Plugin and Taglib reference
Posted by StrutsNewbie <me...@rediffmail.com>.
StrutsNewbie wrote:
>
>
> Hi all,
>
> I have multiple web applications following the struts framework. I have
> certain common components that are used in all these web applications. I
> have kept the common components as a struts plugin in each web
> application's WEB-INF/lib folder. My plugin is accessing a taglib in
> another jar file. This jar file is also placed inside WEB-INF/lib of each
> web application. But the problem is that when I try to access the taglib
> through a freemarker template, it is giving the following exception:
>
> Could not find webapp resource /my-tags
> The problematic instruction:
> ----------
> ==> assignment: t=JspTaglibs["/my-tags"]
>
> The .ftl file is placed inside my plugin jar.
>
> Please give your valuable suggestions on this.
>
>
Do I need to add an entry in struts-plugin.xml similar to the one below to
solve this?
<bean type="org.apache.struts2.views.TagLibrary" name="my-tags"
class="MyTagLibrary" />
If so, what are the steps I should follow in writing this class?
--
View this message in context: http://www.nabble.com/Struts-Plugin-and-Taglib-reference-tp15711425p15730269.html
Sent from the Struts - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org