Hi rakesh,
In web.xml (under WEB-INF folder) you have to specify the taglibrary path,
for eg.
If you have a folder tags inside WEB-INF and you have all the .tld files
inside that, than the web.xml should have the
taglib description as below
taglib
taglib-uristruts-bean/taglib-uri
taglib-location/WEB-INF/tags/struts-bean.tld/taglib-location
/taglib
In JSP files use the taglib as below
%@ page language=java%
%@ taglib uri=struts-bean prefix=bean %
bean:message key=helloworld/
Regards,
Sridhara S.N.
- Original Message -
From: Rakesh N R [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Saturday, July 20, 2002 6:28 AM
Subject: Error while using struts taglibs
Hi All,
I am using struts with weblogic5.1. I am getting a problem in a page
which was functioning fine earlier. It has to do with initializing the
taglibraries. This is given for all tag libraries not specifically with
bean tags. What could be the reason for the same. I am pasting the stack
trace. I am badly caught up because of this problem.
Thanks in advance.
Regards,
Rakesh
**
taglib uri '/WEB-INF/struts-bean.tld' to taglib-location
/WEB-INF/struts-bean.tl
d:
Sat Jul 20 16:52:52 GMT+05:30 2002:E WebAppServletContext-General
Servlet fa
iled with Exception
weblogic.servlet.jsp.JspException: (line -1): Error in tag library at:
'bean': e
rror introspecting class: 'org.apache.struts.taglib.bean.CookieTag':
weblogic.se
rvlet.jsp.JspException: (line -1): Error in tag library at: 'bean':
class org.ap
ache.struts.taglib.bean.CookieTag doesn't implement
javax.servlet.jsp.tagext.Tag
at
weblogic.servlet.jsp.StandardTagLib.jspException(StandardTagLib.java:
138)
at
weblogic.servlet.jsp.StandardTagLib.processTag(StandardTagLib.java, C
ompiled Code)
at
weblogic.servlet.jsp.StandardTagLib.processTagElements(StandardTagLib
.java, Compiled Code)
at
weblogic.servlet.jsp.StandardTagLib.init(StandardTagLib.java:125)
at weblogic.servlet.jsp.JspLexer.loadTagLib(JspLexer.java:87)
at
weblogic.servlet.jsp.JspLexer.mTAGLIB_DIRECTIVE_BODY(JspLexer.java, C
ompiled Code)
at
weblogic.servlet.jsp.JspLexer.mTAGLIB_DIRECTIVE(JspLexer.java, Compil
ed Code)
at weblogic.servlet.jsp.JspLexer.mDIRECTIVE(JspLexer.java,
Compiled Code
)
at
weblogic.servlet.jsp.JspLexer.mSTANDARD_THING(JspLexer.java:1694)
at weblogic.servlet.jsp.JspLexer.mTOKEN(JspLexer.java:1535)
at weblogic.servlet.jsp.JspLexer.nextToken(JspLexer.java,
Compiled Code)
at weblogic.servlet.jsp.JspLexer.parse(JspLexer.java, Compiled
Code)
at weblogic.servlet.jsp.JspParser.doit(JspParser.java, Compiled
Code)
at weblogic.servlet.jsp.JspParser.parse(JspParser.java:116)
at weblogic.servlet.jsp.Jsp2Java.outputs(Jsp2Java.java:97)
at
weblogic.utils.compiler.CodeGenerator.generate(CodeGenerator.java, Co
mpiled Code)
at weblogic.servlet.jsp.JspStub.compilePage(JspStub.java,
Compiled Code)
at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:180)
at
weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.
java, Compiled Code)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
pl.java, Compiled Code)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
pl.java, Compiled Code)
at
weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispat
cherImpl.java:154)
at
org.apache.struts.action.ActionServlet.processActionForward(ActionSer
vlet.java:1759)
at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:159
6)
at
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:492)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
pl.java, Compiled Code)
at
weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletCon
textImpl.java, Compiled Code)
at
weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletCon
textImpl.java, Compiled Code)
at
weblogic.servlet.internal.ServletContextManager.invokeServlet(Servlet
ContextManager.java, Compiled Code)
at
weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.jav
a, Compiled Code)
at
weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java, Com
piled Code)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java,
Compiled Code)
--
To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]
--
To unsubscribe, e-mail