Register Tag libraries?

I just started usign BEA Workshop, it looks great except it is not behaving well with my function tags.
I have:
<jsp:root version="1.2"
  xmlns:funk = "http://myurl/functions" >
${funk:contentURL(entry)}This works fine when i run it, but in the environment, I get an error:
"The prefix "funk" is not associated with an imported tag library"
Is there a way to tell it what taglibs i am using? The .tlds are in the META-INF directory for an included project.
thanks
ryan

Workshop recognizes all .tld files present below WEB-INF (or within its sub-folder).
i. if you have defined the tld file in web.xml then you can use the <taglib-uri> entry in defining <%@ taglib...%> directive
ii. in case you do not define <taglib> in web.xml then you can directly use the <uri> defined in .tld file
Workshop also handles the situation when .tlds are not physically present within WEB-INF but instead present within .jar file which is on classpath
IMPORTANT:
Tag Libraries view does not populate with tags for tlds picked from .jar file, unless defined in the page using taglib directive.

Similar Messages

  • How to handle external tag-libraries in JSPs using Oracle Stellent?

    I have already started the execution of JSP engine in Oracle Stellent, and also could run the sample Tomcat web-application and basic JSPs in Oracle UCM. What I need to do, is to customize my JSP to be able to show/hide some content using Oracle Stellent.
    I have a JSP, from web application, which is using some some tag-libraries from spring, etc.
    +<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>+
    +<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form"%>+
    +<%@ taglib uri="http://www.springframework.org/tags" prefix="s"%>+
    +<%@ taglib prefix="security"+
    uri="http://www.springframework.org/security/tags"%>
    +<%@taglib uri="http://www.springframework.org/tags" prefix="s"%>+
    +<%@ page import = "idcserver.*" %>+
    +<jsp:useBean id="sb" class="idcserver.ServerBean" />+
    +<%+
    sb.init(request);
    ....and so on
    I have checked in the above file, and when trying to preview in Oracle UCM, I get the following error:
    Content Server Request Failed
    +!csStellentTomcatErrorWhileProcessing,/idca/groups/jsp/documents/pix/11.jspThe absolute uri: http://java.sun.com/jsp/jstl/core cannot be resolved in either web.xml or the jar files deployed with this application:org.apache.jasper.JasperException: The absolute uri: http://java.sun.com/jsp/jstl/core cannot be resolved in either web.xml or the jar files deployed with this application+
    at org.apache.jasper.compiler.DefaultErrorHandler.jspError(Unknown Source)
    at org.apache.jasper.compiler.ErrorDispatcher.dispatch(Unknown Source)
    at org.apache.jasper.compiler.ErrorDispatcher.jspError(Unknown Source)
    at org.apache.jasper.compiler.TagLibraryInfoImpl.generateTLDLocation(Unknown Source)
    at org.apache.jasper.compiler.TagLibraryInfoImpl.<init>(Unknown Source)
    at org.apache.jasper.compiler.Parser.parseTaglibDirective(Unknown Source)
    at org.apache.jasper.compiler.Parser.parseDirective(Unknown Source)
    at org.apache.jasper.compiler.Parser.parseElements(Unknown Source)
    at org.apache.jasper.compiler.Parser.parse(Unknown Source)
    at org.apache.jasper.compiler.ParserController.doParse(Unknown Source)
    at org.apache.jasper.compiler.ParserController.parse(Unknown Source)
    at org.apache.jasper.compiler.Compiler.generateJava(Unknown Source)
    at org.apache.jasper.compiler.Compiler.compile(Unknown Source)
    at org.apache.jasper.compiler.Compiler.compile(Unknown Source)
    at org.apache.jasper.compiler.Compiler.compile(Unknown Source)
    at org.apache.jasper.JspCompilationContext.compile(Unknown Source)
    at org.apache.jasper.servlet.JspServletWrapper.service(Unknown Source)
    at org.apache.jasper.servlet.JspServlet.serviceJspFile(Unknown Source)
    at org.apache.jasper.servlet.JspServlet.service(Unknown Source)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:861)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Unknown Source)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(Unknown Source)
    at org.apache.catalina.core.StandardWrapperValve.invoke(Unknown Source)
    at org.apache.catalina.core.StandardValveContext.invokeNext(Unknown Source)
    at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source)
    at org.apache.catalina.core.StandardContextValve.invokeInternal(Unknown Source)
    at org.apache.catalina.core.StandardContextValve.invoke(Unknown Source)
    at org.apache.catalina.core.StandardValveContext.invokeNext(Unknown Source)
    at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source)
    at org.apache.catalina.core.StandardHostValve.invoke(Unknown Source)
    at org.apache.catalina.core.StandardValveContext.invokeNext(Unknown Source)
    at org.apache.catalina.valves.ErrorReportValve.invoke(Unknown Source)
    at org.apache.catalina.core.StandardValveContext.invokeNext(Unknown Source)
    at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source)
    at org.apache.catalina.core.StandardEngineValve.invoke(Unknown Source)
    at org.apache.catalina.core.StandardValveContext.invokeNext(Unknown Source)
    at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source)
    at org.apache.catalina.core.ContainerBase.invoke(Unknown Source)
    at org.apache.coyote.tomcat5.CoyoteAdapter.service(Unknown Source)
    at tomcatprovider.StellentProtocol$StellentWorkThread.runIt(StellentProtocol.java:304)
    at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(Unknown Source)
    at java.lang.Thread.run(Thread.java:595)
    Edited by: 980473 on Jan 8, 2013 2:01 AM

    Hi ,
    Check if you have jstil.jar in WEB-INF/lib location , if missing manually add jstl.jar into WEB-INF/lib restart UCM Managed server .
    Hope this helps.
    Thanks,
    Srinath

  • Jsp tag libraries

    hi All,
    I am receiving an error when i come to start a jsp page, it returns null pointer exception. so when I checked it is coming from the JSP tag Libraries. instead of the jsp libraries there is a null pointer exception . so any clue how to fix that ?
    thanks
    Amgad

    Yes, marika, download the Jakarta JSTL implementation, unzip it, and put it everything in its /lib directory in your WEB-INF/lib. Then you can refer to the taglib in your JSPs like this:
    <%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>That's all you need to do. No <taglib> in your web.xml or anything else. - MOD

  • Problem using JSTL tag libraries with OC4J 9.0.3

    Hi
    I'm using the JSTL tag libraries with OC4J 9.0.3. I'm using JDeveloper10.1.2. I put the fmt.tld and c.tld in the WEB-INF directory and I'm adding the jstl.jar and standard.jar library to the EAR file. Both tlds have:
    <tlib-version>1.0</tlib-version>
    <jsp-version>1.2</jsp-version>
    And OC4J 9.0.3 is compatible with tlib version 1.0 and jsp version 1.2. When I run the web app I get:
    OracleJSP: oracle.jsp.parse.JspParseException: Line # 1, <%@ taglib uri="/WEB-INF/fmt.tld" prefix="fmt"%>
    Error: oracle.xml.parser.v2.XMLParseException ( /dataSource.jsp ):
    line #:1 column #:48 : FIXED type Attribute value not equal to the default value 'http://java.sun.com/xml/ns/j2ee'.
    line #:2 column #:18 : Attribute 'xmlns:xsi' used but not declared.
    line #:3 column #:19 : Attribute 'xmlns:acme' used but not declared.
    line #:4 column #:27 : Attribute 'xsi:schemaLocation' used but not declared.
    line #:7 column #:16 : Attribute 'version' used but not declared.
    line #:14 column #:15 : Invalid element 'tag-class' in content of 'tag', expected elements '[tagclass]'.
    line #:14 column #:15 : Element 'tag-class' used but not declared.
    line #:15 column #:18 : Invalid element 'body-content' in content of 'tag', expected elements '[tagclass]'.
    line #:15 column #:18 : Element 'body-content' used but not declared.
    line #:16 column #:15 : Invalid element 'attribute' in content of 'tag', expected elements '[tagclass]'.
    line #:18 column #:12 : Invalid element 'type' in content of 'attribute', expected elements '[required, rtexprvalue]'.
    line #:18 column #:12 : Element 'type' used but not declared.
    line #:22 column #:15 : Invalid element 'attribute' in content of 'tag', expected elements '[tagclass]'.
    line #:24 column #:12 : Invalid element 'type' in content of 'attribute', expected elements '[required, rtexprvalue]'.
    line #:24 column #:12 : Element 'type' used but not declared.
    line #:28 column #:15 : Invalid element 'attribute' in content of 'tag', expected elements '[tagclass]'.
    line #:30 column #:12 : Invalid element 'type' in content of 'attribute', expected elements '[required, rtexprvalue]'.
    line #:30 column #:12 : Element 'type' used but not declared.
    line #:34 column #:15 : Invalid element 'attribute' in content of 'tag', expected elements '[tagclass]'.
    line #:36 column #:12 : Invalid element 'type' in content of 'attribute', expected elements '[required, rtexprvalue]'.
    Any ideas?

    Hi
    Thanks for the reply.
    I tried it and I get the same error:
    OracleJSP: oracle.jsp.parse.JspParseException: Line # 1, <%@ taglib uri="http://java.sun.com/jstl/fmt" prefix="fmt"%>
    Error: oracle.xml.parser.v2.XMLParseException ( /dataSource.jsp ):
    line #:1 column #:48 : FIXED type Attribute value not equal to the default value 'http://java.sun.com/xml/ns/j2ee'.
    line #:2 column #:18 : Attribute 'xmlns:xsi' used but not declared.
    line #:3 column #:19 : Attribute 'xmlns:acme' used but not declared.
    line #:4 column #:27 : Attribute 'xsi:schemaLocation' used but not declared.
    line #:7 column #:16 : Attribute 'version' used but not declared.
    line #:14 column #:15 : Invalid element 'tag-class' in content of 'tag', expected elements '[tagclass]'.
    line #:14 column #:15 : Element 'tag-class' used but not declared.
    line #:15 column #:18 : Invalid element 'body-content' in content of 'tag', expected elements '[tagclass]'.
    line #:15 column #:18 : Element 'body-content' used but not declared.
    line #:16 column #:15 : Invalid element 'attribute' in content of 'tag', expected elements '[tagclass]'.
    line #:18 column #:12 : Invalid element 'type' in content of 'attribute', expected elements '[required, rtexprvalue]'.
    line #:18 column #:12 : Element 'type' used but not declared.
    line #:22 column #:15 : Invalid element 'attribute' in content of 'tag', expected elements '[tagclass]'.
    line #:24 column #:12 : Invalid element 'type' in content of 'attribute', expected elements '[required, rtexprvalue]'.
    line #:24 column #:12 : Element 'type' used but not declared.
    line #:28 column #:15 : Invalid element 'attribute' in content of 'tag', expected elements '[tagclass]'.
    line #:30 column #:12 : Invalid element 'type' in content of 'attribute', expected elements '[required, rtexprvalue]'.
    line #:30 column #:12 : Element 'type' used but not declared.
    line #:34 column #:15 : Invalid element 'attribute' in content of 'tag', expected elements '[tagclass]'.
    line #:36 column #:12 : Invalid element 'type' in content of 'attribute', expected elements '[required, rtexprvalue]'.

  • Frame work  problem along with tag libraries...

    Hi..
    I am new to jsp and am making a project in it, I am following MVC architecture but my problem is i am unable to understand all this concept of frameworks like struts, spring etc... i need some help with what they actually are..??
    also i am not using any tag libraries in my project i am using simple jsp files with minimum java coding at the front end and class files at the logic layer... and then the databse layer... i want to know is it better to use tag libraries and for using them will i have to follow any particular framework.. and are these tag libraries different for different frameworks..??... will i be missing something if i don't use tag libraires or don't follow a particular framework...???

    Those taglibs are particularly for the view layer of the MVC pattern. In a MCV framework you use taglibs to associate beans from the model/controller layer with the view layer. The framework will care about getting and setting the bean properties during the HTTP request-response cycle. With for example Sun JSF framework the relevant part of your JSP page would look like:
    <h:form>
        <h:inputText value="#{myBean.input}" />
        <h:commandButton value="submit" action="#{myBean.submit}" />
    </h:form>The JSF framework will generate this as something like<form name="someGeneratedName" method="post" action="currentPage.jsf">
        <input type="text" id="someGeneratedId" name="someGeneratedName" value="theInputValueFromMyBeanIfAny" />
        <input type="submit" id="someGeneratedId" name="someGeneratedId" value="submit" />
    </form>The MyBean class would look like something as:public class MyBean {
        private String input;
        public void submit() {
            System.out.println("The framework has already set the input value: " + input);
            // You can do with this whatever you want. Eg persisting in DB:
            DAOFactory.getInstance("dbname").getSomeDAO().save(new SomeDTO(input));
        public String getInput() {
            return input;
        public void setInput(String input) {
            this.input = input;
    }The average MVC framework also provides customizable Converters (convert between String for output and the desired Object type in model/controller layer) and Validators (required values, numeric values, date values, etc). Each MVC framework have its own taglibraries. For example JSF with the URI's http://java.sun.com/jsf/core and /html. Struts has another taglibs. Further on there is also the Java Standard Tag Library (JSTL) with the URI's http://java.sun.com/jsp/jstl/core, /functions and so on. Mixing of the taglibs is possible, but not always recommended. You should prefer the taglib of the framework used, but if the framework doesn't provide the tag with the desired functionality, then you can add another taglib, such as JSTL or, in case of JSF, Apache Tomahawk and JBoss Ajax4jsf.
    If you want to learn more about JSF, you may find this article useful: [http://balusc.blogspot.com/2008/01/jsf-tutorial-with-eclipse-and-tomcat.html].

  • Problems with JSP and Tag Libraries in JBoss using Tomcat 5.5.9

    Hi,
    I am experiencing a really weird situation here. When running a deployed EJB3 ear application in a JBoss 4.0.3sp1 application using Tomcat service 5.5.9, Jasper is unable to compile any JSP file using Tag Libraries. To be more precise, when generating the Java source file (looking in the 'work' directory) everything in the file after the first occurance of a Tag Library usage is commented out (with "//"), causing the Java source to be invalid and outputs an error when accessing the page via a browser saying:
    "org.apache.jasper.JasperException: Unable to compile class for JSP
    Generated servlet error:
    Syntax error, insert "}" to complete ClassBody
    Generated servlet error:
    Syntax error, insert "}" to complete Block
    Generated servlet error:
    Syntax error, insert "finally" to complete TryStatement
    Generated servlet error:
    Syntax error, insert "}" to complete MethodBody"
    etc... where every error row is a suggestion of steps to take to make the source file valid. (of course).
    The Tag Library jar files are located in the web application WEB-INF/lib folder as they should be. The descriptive Tag Library Definition files (tld:s) are located in the WEB-INF folder and every JSP file references these tld files directly via this path (WEB-INF/).
    Any hints are most appreciated!!
    Cheers!
    /Henrik

    Hi,
    I am experiencing a really weird situation here. When running a deployed EJB3 ear application in a JBoss 4.0.3sp1 application using Tomcat service 5.5.9, Jasper is unable to compile any JSP file using Tag Libraries. To be more precise, when generating the Java source file (looking in the 'work' directory) everything in the file after the first occurance of a Tag Library usage is commented out (with "//"), causing the Java source to be invalid and outputs an error when accessing the page via a browser saying:
    "org.apache.jasper.JasperException: Unable to compile class for JSP
    Generated servlet error:
    Syntax error, insert "}" to complete ClassBody
    Generated servlet error:
    Syntax error, insert "}" to complete Block
    Generated servlet error:
    Syntax error, insert "finally" to complete TryStatement
    Generated servlet error:
    Syntax error, insert "}" to complete MethodBody"
    etc... where every error row is a suggestion of steps to take to make the source file valid. (of course).
    The Tag Library jar files are located in the web application WEB-INF/lib folder as they should be. The descriptive Tag Library Definition files (tld:s) are located in the WEB-INF folder and every JSP file references these tld files directly via this path (WEB-INF/).
    Any hints are most appreciated!!
    Cheers!
    /Henrik

  • How to use framework tag libraries

    i need to create a new masthead using framework tag libraries.i got the purpose of  that tag libraries from the help.sap.com site.
    but i want some sample codes for the usage of that tags.i already have a masthead code using navigation tag libraries.can i make changes in that by using framework tags.if yes how and where to change.
    or if u have any new solutions also please tell me.
    if anyone has idea about it please share.
    regards,
    karthick

    yes Mr.michael i checked with the help.sap.com site.but i cant get any sample code or solution.they have given the available tags and function of them in one line.no other details.
    what u have given is a sample code for navigation tag libraries.i have it already.now i need a sample code with framework tag libraries.both have different functionalities i think so.if u find anything please send it.
    thanks for ur reply.
    regards,
    karthick

  • What controls whats in the Tag Libraries View?

    Hi,
    I have a file which imports the following taglibs:
    <%@ page language="java" errorPage="/error.jsp" pageEncoding="UTF-8" contentType="text/html; charset=utf-8" %>
    <%@ taglib uri="http://www.springframework.org/tags/commons-validator" prefix="html" %>
    <%@ taglib uri="http://www.springframework.org/tags" prefix="spring" %>
    <%@ taglib uri="http://jakarta.apache.org/taglibs/request-1.0" prefix="r" %>
    <%@ taglib uri="http://displaytag.sf.net/el" prefix="display" %>
    <%@ taglib uri="http://struts-menu.sf.net/tag-el" prefix="menu" %>
    <%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %>
    <%@ taglib uri="http://java.sun.com/jstl/fmt" prefix="fmt" %>
    <%@ taglib uri="http://java.sun.com/jstl/sql" prefix="sql" %>
    <%@ taglib uri="/oscache" prefix="cache" %>
    <%@ taglib uri="http://www.opensymphony.com/sitemesh/decorator" prefix="decorator"%>
    <%@ taglib uri="http://www.opensymphony.com/sitemesh/page" prefix="page"%>
    [/code:1:619d89d208]
    but for some reason only some of them show up in the tag libraries view and hence auto complete only works for some of them.
    Where am I going wrong? I am using eclipse 3.1 with nitrox 411 build.
    thanks, Andrew                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

    >
    NitroX resolves tag libraries based on the following
    * .tld present in a jar file and the jar file configured for Project Libraries (Project > Properties > Java Build Path > Libraries). Then using <uri> value of .tld for "uri" attribute of <%@taglib..%>
    This did not work for my web-projects with the 407 and 411 builds of NitroX. I had to change all my taglib references to the >
    * .tld present at any level within WEB-INF folder and using .tld path for "uri" attribute of <%@taglib ..%>
    method.
    At the time I was working with Greg Stachnick over the phone and he confirmed that the "jar-<uri>" approach should have worked for me and was going to try and find out why it didn't. I'd like to change my code back to using the "jar-<uri>" method, but don't want to waste time trying and then having to revert back. Has anything changed in NitroX since those builds that might have fixed this problem?

  • Weblogic 8.1 Portal Tag Libraries

    With Weblogic Portal 8.1 there is a jar file (portlet-container.jar) that seems to contain tag libraries, but there is no TLD for it. Does this exist someplace?

    Its in META-INF directory in the jar.
    Seenu.

  • Where is 'Tag Libraries Reference'?

    I'm working my way through the JSP Primer for OC4J. Therein I find references to two documents - "Oracle 9iAS Containers for J2EE JSP Tag Libraries and Utilities Reference" and "Oracle9iAS Containers for J2EE Support for JavaServer Pages Reference".
    I can't, however, find these documents anywhere on Metalink, OTN, or oracle.com. Can anyone point me to a URL where these can be found?

    <BLOCKQUOTE><font size="1" face="Verdana, Arial, Helvetica">quote:</font><HR>Originally posted by Steve Button ([email protected]):
    gday Barry -
    I'll check into this for you. The various doc pieces we have for OC4J are all in the process of being being created and we're pushing completed pieces out whenever they are ready.
    This might be one of those situation where we've 'forward declared' the docs you mentioned but they're not completed yet.
    I'll post back here when I get an answer for you.
    cheers!
    -steve-<HR></BLOCKQUOTE>
    Barry,
    The docs you mentioned are in the final phase of review. They wiil be posted soon. thanks
    -Prasad

  • Is there any substring adaptive TAG in Tag Libraries?

    I need to change the only community title not community url using adaptive tag.
    how i will use substring function in the following line.
    <pt:logic.value pt:value="$subcommpg.title"/>

    hi:
    There are many tag-libraries to do what u want ,, for example here is a nice one :
    http://displaytag.sourceforge.net/11/
    this is for presenting data in tables useing display-tag-library
    also u can use Jmaki ,, it is AJAX tags with many enhancements
    https://ajax.dev.java.net/
    But ,, the best solution is to use any IDE ,, the best is Sun Java Studio Creator 2 .
    http://developers.sun.com/jscreator/downloads/
    it is a great IDE with amazing capabilites and component.

  • Xml --- edit tag libraries

    I am currently using Dreamweaver 8.0 on Windows XP OS.
    I have created an xml file and added some data. However the
    format of the data is presented as follows:
    <?xml version="1.0" encoding="iso-8859-1"?>
    <productListing title="ABC Products">
    <product>
    <name>
    Product One
    </name>
    <description>
    Product One is an exciting new widget that will simplify your
    life.
    </description>
    <cost>
    $19.95
    </cost>
    <shipping>
    $2.95
    </shipping>
    </product>
    </productListing>
    But I would like to view XML files in the following format
    without line breaks:
    <?xml version="1.0" encoding="iso-8859-1"?>
    <productListing title="ABC Products">
    <product>
    <name>Product One</name>
    <description>Product One is an exciting new widget
    that will simplify your life.</description>
    <cost>$19.95</cost>
    <shipping>$2.95</shipping>
    </product>
    </productListing>
    I looked at the tag libraries to see if I could edit
    something there, but had no effect.
    Can anyone assist please ?
    regards

    polaris1927 wrote:
    > I am currently using Dreamweaver 8.0 on Windows XP OS.
    >
    > I have created an xml file and added some data. However
    the format of the data
    > is presented as follows:
    Unfortunately, Dreamweaver makes a mess of formatting XML.
    The only way
    it will improve is if you and others tell the Dreamweaver
    team directly
    that this is important to you.
    http://www.adobe.com/cfusion/mmform/index.cfm?name=wishform
    David Powers, Adobe Community Expert
    Author, "Foundation PHP for Dreamweaver 8" (friends of ED)
    Author, "PHP Solutions" (friends of ED)
    http://foundationphp.com/

  • JSP programming with Tag Libraries like Struts.

    Hi friends,
    I've been programming in JSP, JavaBeans for the last 1 year. However, with the current popularity of Tag Libraries & concepts like MVC, Struts am thinking of using these in JSPs. Even though I am not totally convinced about the real advantages like "No Java code" in JSP pages bcoz normally anyway most of the Java Code is done in the Javabean where my Business Logic is present.
    If any of you have previously worked on Tag Libraries please would you advice me whether it's worth it and which books & material would be best for these.
    Thanking you in advacnce.
    Cheers
    Sanjiv

    Based on my experience with using JSP tags, I would definitely strongly recommend them. If nothing else, application/project specific custom tags go a long way in facilitating development-time productivity and code maintenance.
    And ofcourse, with JSP tags you get the added advantage of the JSP container maintaining pools of instantiated tag objects so even the runtime performance is helped.
    The book Web Development with Java Server Pages by Duane K. Fields, Mark A. Kolb from Manning Publications has helped me a lot about JSP tags.
    Sun's tutorial http://java.sun.com/j2ee/tutorial/doc/JSPTags.html is also good.

  • JSP, Tag Libraries, Tomcat 4.1

    Due to an internal decision to place all content within certain categories: for example, we would like all our JSP pages to be in one directory, our TLD files to be in one directory, our images to be in one directory, etc. I would like to be able to set up two Tomcat Contexts (sites). One for /jsp and one for /tld. Is it possible to load the tld and tag class handler in one context and the jsp in another context and call the tag handler even though they are in separate sites? The first reaction someone might have is to just place everything in separate directories under the same context. Well, we do not want to do this because we do not want to use relative URLs. Our testing systems are Window 2000 so it is not a big deal. But our production server is OPENVMS. We want to use aliases for everything. /jsp for JSP pages. /tld for tag libraries, etc. Any thoughts?
    Thank you.

    Yes, this is a follow-up question to my initial question. However, I was trying to take a different approach after reading the inital comments and doing lots and lots of stupid little tests.
    I have tried all three methods of using the mappings that you have suggested. And in every case, I cannot get the JSP page to recognize the location of the TLD from the URI unless I use a context in Tomcat or a relative URL for the URI declaration in the JSP page. So I must be doing something wrong. I am going to post what information is not business sensitive and see if you can find an error.
    However, with that being said. We have a specific alias/directory structure we must maintain on the OPEN VMS system. In order to do so, so we can maintain a programmer and a "live" environment we must be able to use these aliases for all our file types. Don't get me wrong, we can use these alias' within the same context of Tomcat, but we must make sure that we can still access or JSP, TLD, and servlets using some sort of alias and NOT using relative URLs. All the dynamic stuff in Tomcat while trying to use Apache for the static content. On OPENVMS, there are things called logicals which can basically be set up as an alias. The logical can point to a specific value, a directory, a group of directories, or even a specific file name or command procedure or anything else you can logically use it for. We have to use these logicals in order to set up our site. These logicals are part of the system security of OPENVMS and this helps us determine which enviroment we need to use for which user.
    Hope this gives a bit more informed information.
    Currently, the tld and .class file are packaged into a webMenuTag.jar file in the "vsjsp" site.
    There are no references to the TLD or Tag Library in the web.xml file. So here is the tld file and also the snippet of the jsp file. The class file is called webMenuTagHandler.class.
    Thank you.
    TLD:
    <?xml version="1.0" encoding="ISO-8859-1" ?>
    <!DOCTYPE taglib
    PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.2//EN"
    "http://java.sun.com/dtd/web-jsptaglibrary_1_2.dtd">
    <taglib>
    <tlib-version>1.0</tlib-version>
    <jsp-version>1.2</jsp-version>
    <short-name>webMenu</short-name>
    <uri>webMenuTag</uri>
    <description>
    Tag library to print the menu on WWW site pages
    </description>
    <tag>
    <name>webMenuTagHandler</name>
    <tag-class>com.xxxxx.webMenuTagHandler</tag-class>
    <description>Create menu and framework for web pages.</description>
    <attribute>
         <name>menuStyle</name>
         <required>false</required>
         <rtexprvalue>true</rtexprvalue>
    </attribute>
    <attribute>
         <name>docTitle</name>
         <required>false</required>
         <rtexprvalue>true</rtexprvalue>
    </attribute>
    <attribute>
         <name>pageHeading</name>
         <required>false</required>
         <rtexprvalue>true</rtexprvalue>
    </attribute>
    <attribute>
         <name>navBarName</name>
         <required>false</required>
         <rtexprvalue>true</rtexprvalue>
    </attribute>
    <attribute>
         <name>navBarLocation</name>
         <required>false</required>
         <rtexprvalue>true</rtexprvalue>
    </attribute>
    <attribute>
         <name>htmLocation</name>
         <required>true</required>
         <rtexprvalue>true</rtexprvalue>
    </attribute>
    </tag>
    </taglib>
    JSP:
    <%@ page contentType="text/html; charset=iso-8859-1" language="java" import="com.xxxxx.*,java.io.*,java.util.*,javax.servlet.*,javax.servlet.http.*,javax.servlet.jsp.*,org.apache.jasper.runtime.*"%>
    <%@ taglib uri="webMenuTag" prefix="webMenu" %>
    <html>
    <webMenu:webMenuTagHandler docTitle="Test Page" htmLocation="top" navBarName="HOME"/>
    ... content...
    </html>

  • ISA Tag Libraries

    Hi,
    Where will I find ISA tag libraries on my local machine. I have installed NWDS and NWDI on my machine.
    Thanks,
    Shaun

    I think my research is pointing to no way J2EE containers allow global tag libraries available across WARS or EARS. You're correct in that the web application will need resources at a global level. However, if there was a way to construct global based tag libraries for the container , one could use them without re-inventing the wheel in each web application. ColdFusion's MX platform allows global as well as local tag libraries. Wish J2EE allowed it. If there is a way and I missed it in my research please point me in the right direction.

Maybe you are looking for

  • Updated to ios 7.1, now my ipod screen is glitching!

    So, I updated to ios 7.1 the other day and now I feel like my ipod is quiting on me. I will be doing something and the screen will glitch out of nowhere (screen gets all screwy and eventually gets dark and turns off). Sometimes it wont even unlock no

  • Putting a ringtone in iTunes on the iPhone

    I have 3rd party software that converts mp3 files into ringtones.  It automatically makes the file an .m4r file, and puts it into the iTunes tones library.  I connected my iPhone 4 (running iOS 6) to my iMac, but iTunes will not let me drag the tone

  • Where can I get replacement feet?

    I've noticed that I've lost one of the rubber feet from the bottom of my 1st-gen MBP. Where can I get replacements? Will an Apple Store sell them to me? Much thanks.

  • Is my computer too slow?

    Hey all I'm running Windows XP (sp2) on a intel celeron 1.2 ghz with 256 mb ram Dell stationary computer. I have set up a JSP/MySQL connection at work on a fast computer and know my way around stuff, but at home I when I use my Dell computer I consta

  • *#7370# is not working

    There is virus in my Nokia asha 200's my apps when i am trying to reset it by *#7370# it switches off and then on. It only restores settings it is not deleting the virus and not cleaning all applications please help me and my mail application is not