my dog learned polymorphism*
The moose likes JSP and the fly likes Taglib file outside WEB-INF Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "Taglib file outside WEB-INF" Watch "Taglib file outside WEB-INF" New topic
Author

Taglib file outside WEB-INF

Sudarsan Raman
Greenhorn

Joined: Aug 20, 2003
Posts: 12
Hi All,

Is it possible to keep the taglib tld files (of custom tags) placed outside WEB-INF?

We can place our taglib tld files within directly WEB-INF folder or a folder under WEB-INF (say tld/tlds), or even within a jar file which is placed under WEB-INF/lib.

If the tld file is being referred from a jar file, is it possible to place the JAR file within a SHARED LIBRARY (of WAS) ?

If this is do-able, pl. update me how.

Regards

Sudarsan.
Albareto McKenzie
Ranch Hand

Joined: Apr 08, 2009
Posts: 298
Tlds must be in WEB-INF, it can be directly under WEB-INF, in a subfolder or inside the META-INF of a jar
Why do you want to put it outside?
Sudarsan Raman
Greenhorn

Joined: Aug 20, 2003
Posts: 12
Currently my tld files are available within jars only.

Our application is being evaluated for Shared Library (SL) in WAS env. If this is the case, I'm forced to take the tld files out of the Jars (since the Jars are moving to SL and put them under WEB-INF.

I was wondering if there is a way so that the tld files gets accessed from the JARS which is in SL.

Regards,

Sudarsan.
Albareto McKenzie
Ranch Hand

Joined: Apr 08, 2009
Posts: 298
Sorry, I cannot help you further cause I have no idea of where is the SL placed in your application but as far as I know the tlds have to be behind WEB-INF, let's wait an expert that can solve your doubt, good luck ;)
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61095
    
  66

If the jar files are in the classpath, it will be fine.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Taglib file outside WEB-INF