Newbie - problem with JSP tag libraries

This is a discussion on Newbie - problem with JSP tag libraries within the Weblogic forums, part of the Application Servers category; Hello, I am trying to execute on a JSP program on a server with jakarta- tomcat-4.1.29. Here is a program: in web.xml I have definition: testTagURL /WEB-INF/tld/testTag.tld I have testTag.tld ...

Go Back   Unix Linux Forum > Application Servers > Weblogic

FixUnix.com - Unix Linux Forums

Unix Content Register FAQ Calendar Search Today's Posts Mark Forums Read
  #1  
Old 07-15-2008, 07:39 PM
Default Newbie - problem with JSP tag libraries

Hello,

I am trying to execute on a JSP program on a server with jakarta-
tomcat-4.1.29.
Here is a program:

<%@ taglib uri="testTagURL" prefix="testTagPrefix" %>


in web.xml I have definition:


testTagURL
/WEB-INF/tld/testTag.tld


I have testTag.tld file located at: /WEB-INF/tld

When I execute my program I am getting:

org.apache.jasper.JasperException: File "/test-jsp/testTagURL" not
found
at
org.apache.jasper.compiler.DefaultErrorHandler.jsp Error(DefaultErrorHandler.java:
105)
at
org.apache.jasper.compiler.ErrorDispatcher.dispatc h(ErrorDispatcher.java:
430)
at
org.apache.jasper.compiler.ErrorDispatcher.jspErro r(ErrorDispatcher.java:
154)
at org.apache.jasper.compiler.TagLibraryInfoImpl.
(TagLibraryInfoImpl.java:180)
at org.apache.jasper.compiler.Parser.parseTaglibDirec tive(Parser.java:
354)
at org.apache.jasper.compiler.Parser.parseDirective(P arser.java:381)

My question: how my program is looking for "/test-jsp/testTagURL" and
not for "/WEB-INF/tld/testTag.tld"?

Thanks,

Zalek





Reply With Quote
  #2  
Old 07-17-2008, 07:07 AM
Default Re: Newbie - problem with JSP tag libraries

On Jul 15, 7:39 pm, zalek wrote:
> Hello,
>
> I am trying to execute on a JSP program on a server with jakarta-
> tomcat-4.1.29.
> Here is a program:
>
> <%@ taglib uri="testTagURL" prefix="testTagPrefix" %>
>
>
> in web.xml I have definition:
>
>
> testTagURL
> /WEB-INF/tld/testTag.tld
>

>
> I have testTag.tld file located at: /WEB-INF/tld
>
> When I execute my program I am getting:
>
> org.apache.jasper.JasperException: File "/test-jsp/testTagURL" not
> found
> at
> org.apache.jasper.compiler.DefaultErrorHandler.jsp Error(DefaultErrorHandler.java:
> 105)
> at
> org.apache.jasper.compiler.ErrorDispatcher.dispatc h(ErrorDispatcher.java:
> 430)
> at
> org.apache.jasper.compiler.ErrorDispatcher.jspErro r(ErrorDispatcher.java:
> 154)
> at org.apache.jasper.compiler.TagLibraryInfoImpl.
> (TagLibraryInfoImpl.java:180)
> at org.apache.jasper.compiler.Parser.parseTaglibDirec tive(Parser.java:
> 354)
> at org.apache.jasper.compiler.Parser.parseDirective(P arser.java:381)
>
> My question: how my program is looking for "/test-jsp/testTagURL" and
> not for "/WEB-INF/tld/testTag.tld"?
>
> Thanks,
>
> Zalek


I found the problem. I changed the order of web.xml parms:
This did not work:




testTagURL
/WEB-INF/tld/testTag.tld



invoker
/servlet/*




This worked:




invoker
/servlet/*



testTagURL
/WEB-INF/tld/testTag.tld





Zalek
Reply With Quote
Reply

Thread Tools


All times are GMT -5. The time now is 11:13 PM.

In an effort to better serve ads to our visitors, cookies are used on Fixunix.com. For more information, check out our Privacy Policy.

Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0
Ad Management by RedTyger