Tag Files Help

I am trying to write and use a simple .tag file, but I am getting an error. I am using Weblogic 8.1, which is a JSP 2.0 container, so it should work.
In the WEB-INF/tags directory of my web app I have a tag called firstTag.tag, with code as shown below:
<%@tag import="java.util.Date" import="java.text.DateFormat"%>
<%
DateFormat dateFormat = DateFormat.getDateInstance(DateFormat.LONG);
Date now = new Date(System.currentTimeMillis());
out.println("The date is: " + dateFormat.format(now));
%>
I have a JSP page where I want to use the tag shown above. The code in my JSP is:
<%@ taglib tagdir="/WEB-INF/tags" prefix="h" %>
<easy:firstTag/>
When I call this JSP page I get a JspException saying that "No URI for Taglib "...?? What do I need to do to get this working properly?

I am trying to write and use a simple .tag file, but
I am getting an error. I am using Weblogic 8.1, which
is a JSP 2.0 container, so it should work.
In the WEB-INF/tags directory of my web app I have a
tag called firstTag.tag, with code as shown below:
<%@tag import="java.util.Date"
import="java.text.DateFormat"%>
<%
DateFormat dateFormat =
= DateFormat.getDateInstance(DateFormat.LONG);
Date now = new Date(System.currentTimeMillis());
out.println("The date is: " +
+ dateFormat.format(now));
%>
I have a JSP page where I want to use the tag shown
above. The code in my JSP is:
<%@ taglib tagdir="/WEB-INF/tags" prefix="h" %>
<easy:firstTag/>Is this just a typo? Did you try:
<h:firstTag/>
(ie, use the prefix you defined a tagdir for)
>
When I call this JSP page I get a JspException saying
that "No URI for Taglib "...?? What do I need to do
to get this working properly?

Similar Messages

  • Please help with tag files

    Hello,
    Is it possible to use to invoke tag files from other tag files in the project? Is it allowed by spec?
    1. Create empty project.
    2. Create tag file tagFile1.tag using wizard.
    3. Create tag file tagFile2.tag using wizard.
    4. Drag TagFile2 tag from toolbar to tagFile1.tag in editor pane.
    tagFile1.tag is:
    <%@ taglib tagdir="/WEB-INF/tags/" prefix="tags"%>
    <%@ tag pageEncoding="UTF-8"%>
    <tags:tagFile2/>
    tagFile2.tag is:
    <%@ tag pageEncoding="UTF-8"%>
    5. Try to rebuild the project - compilation fails
    Error(3): Unable to instantiate tag: tags:tagFile2 (class: oracle.jsp._tag._tagFile2_tag) Make sure that the tag class is available and that the tag library containing the class is not excluded from this application.
    Error(3): Unable to find class for bean: null defined by tag with class: oracle.jsp._tag._tagFile2_tag
    Is it a bug of JDeveloper or OC4J or am I duing something against the spec? Could someone please comment this behaviour.

    See update to Re: BUG: Use tag file inside another tag file gives compiler error

  • Issue with project having Tag File containing definition of other Tag File

    Hi Everyone,
    I have a small problem which you experts are able to help with.
    As the subject of this Post has suggested, I have a project which was originally built in NetBean 6.0 and I'm trying to migrate it across to JDeveloper 10.1.3. So far, I've managed to compiled all jsps and java source files successfully but I'm now stuck with the following error messages during building of the project in JDeveloper:
    --- START OF ERROR ---
    Error(6): Unable to instantiate tag: menu:tab (class: oracle.jsp._tag._tabmenu._tab_tag) Make sure that the tag class is available and that the tag library containing the class is not excluded from this application.
    Error(6): Unable to find class for bean: null defined by tag with class: oracle.jsp._tag._tabmenu._tab_tag
    --- END OF ERROR ---
    I believe the reason was that I have this Tag file (menu.tag) that contains definitions and references to another Tag file and here is its content:
    --- START OF TAG FILE ---
    <%@ taglib prefix="menu" tagdir="/WEB-INF/tags/tabmenu" %>
    <%@ attribute name="tab" required="true" type="java.lang.String" %>
    <jsp:useBean id="login" class="au.wa.apa.webbeans.WrsLogin" scope="session" />
    <div id="menu">
    <ul>
    <menu:tab tab="NEW" currentTab="<%=tab%>" label="New Query" tooltip="Create New Query" url="aq/adv_new_query.wrs?formMode=new"/>
    <menu:tab tab="OPEN" currentTab="<%=tab%>" label="Open Queries" tooltip="View Open/Active Queries" url="aq/adv_queries_list.wrs?view=OPEN"/>
    <menu:tab tab="CLOSED" currentTab="<%=tab%>" label="Closed Queries" tooltip="View Closed Queries" url="aq/adv_queries_list.wrs?view=CLOSED"/>
    <menu:tab tab="SEARCH" currentTab="<%=tab%>" label="Search" tooltip="Search Query" url="aq/adv_queries_search.wrs?view=OPEN"/>
    <% if (!"STAFF".equals(login.getUserType())) { %>           
    <menu:tab tab="ATTN" currentTab="<%=tab%>" label="Attention Of" tooltip="Attention Of Administration" url="aq/adv_query_attention_of_list.wrs"/>
    <% } else { %>
    <menu:tab tab="TEMP" currentTab="<%=tab%>" label="Templates" tooltip="Template Management" url="aq/adv_query_template_list.wrs"/>
    <% } %>
    </ul>
    <div class="clear"></div>
    </div>
    --- END OF TAG FILE ---
    I've this problem for several days now and have not been able to solve it and I hope you are able to help me with this problem. Thank you for time and assistance and have a nice day.
    Kind Regards,
    John

    Hi Guys,
    Do we have any workaround to this problem? Any feedback will be welcomed.
    Thanks and Regards,
    John

  • Spec oversight? Using dynamic-attributes in XML tag files

    I have a couple of tagfiles that generate form elements with specific conventions for the 'name' and 'value' attribute. Basically, a data binding framework.
    Dynamic attributes are useful because you can delegate all the usual html attributes to the generated HTML form element: SELECT, INPUT, id, class etc.
    The usual way to do this is to concatenate all the "pass-through" attributes to a string, and append this string to the element generated:
    <input type="hidden" name="foo" ${dynattrs}/>I'm wondering how to do this in a tagfile in XML format (mytag.tagx), since the XML format forbids syntax like in the example above.
    jsp:attribute won't help much, if it's nested inside a c:forEach: it won't apply to the right element.

    Ran into the same problem with 'optional attributes'. (see post "JSP 2.0 Tag files outputting elements with conditional attributes" http://forum.java.sun.com/thread.jspa?forumID=45&threadID=681033)
    Found a solution that is not very elegant but does work and saves you the trouble of reverting to Java Tags. Consider the following tag-file that outputs an html input-tag with conditional attributes:
    <?xml version="1.0" encoding="utf-8"?>
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="1.2"
         xmlns:c="http://java.sun.com/jsp/jstl/core">
         <jsp:directive.attribute name="name" required="true" type="java.lang.String"/>
         <jsp:directive.attribute name="id" required="false" type="java.lang.String"/>
         <jsp:directive.attribute name="value" required="false" type="java.lang.String"/>
         <jsp:directive.attribute name="disabled" required="false" type="java.lang.Boolean"/>
         <jsp:directive.attribute name="hint" required="false" type="java.lang.String"/>
         <jsp:directive.attribute name="cssClass" required="false" type="java.lang.String"/>
         <jsp:text><![CDATA[<input type="text" name="]]><c:out value="${name}"/><![CDATA["]]></jsp:text>
         <c:if test="${!empty id}"><![CDATA[ id="]]><c:out value="${id}"/><![CDATA["]]></c:if>
         <c:if test="${!empty cssClass}"><![CDATA[ class="]]><c:out value="${disabled?(cssClass + '-disabled'):cssClass}"/><![CDATA["]]></c:if>
         <c:if test="${disabled}"><![CDATA[ disabled="disabled"]]></c:if>
         <c:choose>
              <c:when test="${!empty value}"><![CDATA[ value="]]><c:out value="${value}"/><![CDATA["]]></c:when>
              <c:when test="${!empty hint}"><![CDATA[ value="]]><c:out value="${hint}"/><![CDATA[" onfocus="if(this.value==']]><c:out value="${hint}"/><![CDATA[')this.value='';"]]></c:when>
         </c:choose>
         <jsp:text><![CDATA[/>]]></jsp:text>
    </jsp:root>In answer to your question: Yes, it looks like an oversight. Using the jsp:attribute tag in a c:forEach doesn't work because the attribute is then applied to the forEach tag. You would have to put the attribute-tag inside a jsp:body tag (inside the forEach). Then it would apply not to the forEach tag but to the tag enclosing the forEach. However, this doesn't work either, or at least it doesn't work in Tomcat 5.5. Could be a bug though, JSP 2.0 is still very buggy (for instance, using a tagfile inside another tagfile from the same taglib doesn't seem to work either...)
    Anyway, if you ever find a good solution please let me know by posting to this topic!
    TIA

  • Tag Files: dynamic attributes

    Hello,
    I'm not quite sure what the following quote means. It's from the JSP 2.0 spec.
    For dynamic-attributes attribute of Tag File:
    "Only dynamic attributes with no uri are to be present in the Map; all other dynamic attributes are ignored."

    Could someone help me here?

  • Tomcat 6.0.9 and jsf 1.2 and jstl 1.2 using *.tag file error

    I using :tomcat 6.0.9 and jsf 1.2 and jstl 1.2
    My web.xml is at version 2.5 and I am using a custom tag (with the .tag extension). I am trying to use the http://java.sun.com/jsf/html library and values from my attribute. I'm new to this so I figure I must just me missing something.
    I am run http://192.168.1.1/test.jsf laster,view:
    HTTP Status 500 -
    type Exception report
    message
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    org.apache.jasper.JasperException: Unable to compile class for JSP:
    Stacktrace:
         org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:85)
         org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:330)
         org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:415)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:308)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:286)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:273)
         org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:566)
         org.apache.jasper.servlet.JspServletWrapper.loadTagFile(JspServletWrapper.java:212)
         org.apache.jasper.compiler.TagFileProcessor.loadTagFile(TagFileProcessor.java:576)
         org.apache.jasper.compiler.TagFileProcessor.access$000(TagFileProcessor.java:50)
         org.apache.jasper.compiler.TagFileProcessor$TagFileLoaderVisitor.visit(TagFileProcessor.java:627)
         org.apache.jasper.compiler.Node$CustomTag.accept(Node.java:1507)
         org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2336)
         org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2386)
         org.apache.jasper.compiler.TagFileProcessor$TagFileLoaderVisitor.visit(TagFileProcessor.java:631)
         org.apache.jasper.compiler.Node$CustomTag.accept(Node.java:1507)
         org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2336)
         org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2386)
         org.apache.jasper.compiler.Node$Visitor.visit(Node.java:2392)
         org.apache.jasper.compiler.Node$Root.accept(Node.java:489)
         org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2336)
         org.apache.jasper.compiler.TagFileProcessor.loadTagFiles(TagFileProcessor.java:645)
         org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:190)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:306)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:286)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:273)
         org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:566)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:308)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
         com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:414)
         com.sun.faces.application.ViewHandlerImpl.executePageToBuildView(ViewHandlerImpl.java:455)
         com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:139)
         com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:108)
         com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:266)
         com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:159)
         javax.faces.webapp.FacesServlet.service(FacesServlet.java:245)
    note The full stack trace of the root cause is available in the Apache Tomcat/6.0.9 logs.
    if go to /WEB-INF/tags/test.tag ,delete line: <h:outputText id="test" value="hello!" />
    run http://192.168.1.1/test.jsf is OK!(no error),So I guess error for "<h:outputText id="test" value="hello!" />" line ,why in test.tag file do can't use the "http://java.sun.com/jsf/html " library,please help me.......
    Here is file WEB-INF/web.xml content:
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <!--
    Licensed to the Apache Software Foundation (ASF) under one or more
    contributor license agreements. See the NOTICE file distributed with
    this work for additional information regarding copyright ownership.
    The ASF licenses this file to You under the Apache License, Version 2.0
    (the "License"); you may not use this file except in compliance with
    the License. You may obtain a copy of the License at
    http://www.apache.org/licenses/LICENSE-2.0
    Unless required by applicable law or agreed to in writing, software
    distributed under the License is distributed on an "AS IS" BASIS,
    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.
    -->
    <web-app xmlns="http://java.sun.com/xml/ns/j2ee"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_5.xsd"
    version="2.5">
    <display-name>Welcome to Tomcat</display-name>
    <description>
    Welcome to Tomcat
    </description>
    <!-- Faces Servlet -->
    <servlet>
         <servlet-name>Faces Servlet</servlet-name>
         <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
         <load-on-startup> 1 </load-on-startup>
    </servlet>
    <!-- Faces Servlet Mapping -->
    <servlet-mapping>
         <servlet-name>Faces Servlet</servlet-name>
         <url-pattern>*.jsf</url-pattern>
    </servlet-mapping>
    </web-app>
    Here is file /test.jsp code:
    <%@ page contentType="text/html;charset=UTF-8" %>
    <%@ taglib prefix="tags" tagdir="/WEB-INF/tags" %>
    <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
    <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
    <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
    <f:view>
    <html>
    <head>
    <title>test</title>
    </head>
    <body>
    <!-- body start -->
    <h:outputText id="myinfo" value="test success" />
    <tags:test/>
    <!-- body end -->
    </body>
    </html>
    </f:view>
    Here is file /WEB-INF/tags/test.tag code:
    <%@tag pageEncoding="UTF-8"%>
    <%@taglib prefix="f" uri="http://java.sun.com/jsf/core"%>
    <%@taglib prefix="h" uri="http://java.sun.com/jsf/html"%>
    <h:outputText id="test" value="hello!" />
    Thanks for any help.

    Don't know if it's important, but there is no schema avaiable at: http://java.sun.com/xml/ns/j2ee/web-app_2_5.xsd
    I found the right one at: http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd
    /perty
    Message was edited by:
    perajonsson

  • How to skip validation for tag file, or jsp fragment?

    hi
    I have some jsp fragment and tag file in a workshop 10 project
    workshop blame me about the jsp fragment (no start/end tag)
    and unable to publish to server
    is there a way to skip validation on some files?
    I do found an check box call "validate JSP fragments" and I have un-ticked it. It does nothing.
    please help

    Yes, you can turn off validation either on project/folder/individual file.
    Project:
    Project > Properties - Validation AppXRay - un-check "Validate Workshop managed documents" (this is not recommended, you may loose entire AppXRay validation).Folder:
    Project > Properties - Validation AppXRay - Exclude Folders tab, if all the JSP fragments are present in a particular folder (under WebAppRoot), you can pick that folder to be excluded from AppXRay validationFile:
    Help > Help Contents - BEA Workshop User's Guide > Common IDE Tasks > "Using AppXRay" - Live Synchronization of artifacts with AppXRay - On this page scroll to the bottom you will find a table with list of comments that can be included in a JSP file to exclude file level validation.Ex:
    <%--<nitrox:set-property property="validation" value="true"/> --%>
    Controls all validation in the IDE. The default value of true enables validation.

  • Tag files for rendering JSF components

    Hi people!
         It is possible to render component JSF using Tag-Files? (WEB-INF/tags).
    I am having problems with context, seems that the JSF does not recognize pageContext.
    Ex:
    My Tag-File
    <%@ attribute name="nameproperty" required="true" rtexprvalue="true" %>
    <%@ attribute name="size"           required="true" rtexprvalue="true" %>
    <h:inputText id="${nameproperty}"      size="#{size}" />
    My JSP
    <%@ taglib tagdir="/WEB-INF/tags" prefix="mayTags"%>
    <f:subview id="id001" >
         <myTags:myText propriedade="name_test" size="30" />
    </f:subview>
    In this in case that the size always is empty, because it does not recognize the target pageContext, but if I to place the size in the target of request already recognizes.
    EX:
    <%@ attribute name="nameproperty"      required="true" rtexprvalue="true" %>
    <%@ attribute name="size"           required="true" rtexprvalue="true" %>
    <c:set var"size" value="${size}" scope="request" >
    <h:inputText id="${nameproperty}"      size="#{size}" />
    In part it decides my problem, but it causes another error, is that if in my JSP it will have two fields (this is more than common) calling tag-file, there the size placed in request is always of it I finish field.
    Ex:
    <%@ taglib tagdir="/WEB-INF/tags" prefix="mayTags"%>
    <f:subview id="paisMan" >
         <myTags:myText propriedade="name_test" size="30" />
         <myTags:myText propriedade="name_test_2" size="70" />
    </f:subview>
    In this case all the two inputText would have size 70.
    It has some thing that I can make to solve this problem?
    Thanks for any help.
    Pedro Neves - Brazil

    You are right in saying that decoding has nothing to
    do with rendering per se.I will go even further than Erik did, and dispute this statement.
    Consider that you are generating an <input> tag for a text field. Among other things, you have to generate a "name" attribute. Who decides what to put there? The renderer that actually created the markup.
    The "renderer" really does
    two completely different things. But both should
    nevertheless be separate from the component
    implementation itself. You could still have the
    renderer doing the decoding part, which arguably would
    rarely change, and somehow delegate the actual
    rendering to an implementation in a tag file.Whether you implement decoding in a separate class or inside the component, what request parameter name do you look for? It is not reasonable to assume that ALL possible renderers will choose the same parameter name ... hence, decoding and encoding are inextricably linked (the code doing the decoding has to know what kind of markup the code doing the encoding actually created). In JavaServer Faces, the current APIs create that linkage by requiring that the decode and encode be done by the same class (either the component, if you are not delegating, or the renderer if you are).
    Craig

  • How useJsp 2.0 tag file in Weblogic 9.2

    I would like to use the JSP 2.0 tag file feature involving having a jsp fragment as an attribute.
    The example I have runs fine in Tomcat 6.0. And it runs fine in Weblogic 10.0 and 10.3 But when I run the same test on weblogic 9.2, I get the following error:
    Compilation of JSP File '/jsp/tagfile_hello_test.jspx' failed:
    tagfile_hello_test.jspx:19:8: This tag can only appear as a subelement of a standard or custom action. Exceptions are: jsp:body, jsp:attribute, jsp:expression, jsp:scriptlet, and jsp:declaration.
    <jsp:attribute name="footer">
    Below I show the output I get when running in Tomcat.
    Also below are the listing for the calling jsp page and the tag file page, tagfile_hello_test.jspx and tagfile_hello.tagx respectively.
    The burning question I am trying resolve is why does the example runs perfectly fine in Tomcat and Weblogic 10.0 and 10.3 but fails in Weblogic 9.2. Tag files are part of the JSP2.0 specification and Weblogic 9.2 implements the specification.
    Any help is greatly appreciated.
    Output from Tomcat and Weblogic 10.3:
    JSP 2.0 Examples Tag File
    This JSP page invokes a tag file that has a footer fragment
    Inside tagfile_hello
    Invoking footer: I am the footer
    Listing of tagfile_hello_test.jspx:
    <html xmlns:c="http://java.sun.com/jsp/jstl/core"
         xmlns:fmt="http://java.sun.com/jsp/jstl/fmt"
         xmlns:jsp="http://java.sun.com/JSP/Page"
         xmlns:tags="urn:jsptagdir:/WEB-INF/tags">
    <jsp:directive.page contentType="text/html" />
    <head>
    <title>Hi</title>
    </head>
    <body>
    <h1>JSP 2.0 Examples Tag File</h1>
    <hr/>
    <p>This JSP page invokes a tag file that has a footer fragment</p>
    <tags:tagfile_hello>
    <jsp:attribute name="footer">
                   <b>I am the footer</b>
    </jsp:attribute>
    </tags:tagfile_hello>
    </body>
    </html>
    Listing of tagfile_hello.tagx:
    <jsp:root
         xmlns:c="http://java.sun.com/jsp/jstl/core"
         xmlns:fmt="http://java.sun.com/jsp/jstl/fmt"
         xmlns:jsp="http://java.sun.com/JSP/Page"
         version="2.0"
    >
    <jsp:directive.attribute name="footer" required="true" fragment="true"/>
    Inside tagfile_hello
    Invoking footer:
    <jsp:invoke fragment="footer"/>
    </jsp:root>

    Yes John.. i am using startNodemanager.sh.
    Is this the change OutFile=$ServerDir/logs/$ServerName.out you are talking about.
    wlscontrol.sh file:
    # Directory and file names
    ServerDir=$DomainDir/servers/$ServerName
    SaltFile=$DomainDir/security/SerializedSystemIni.dat
    OldSaltFile=$DomainDir/SerializedSystemIni.dat
    StateFile=$ServerDir/data/nodemanager/$ServerName.state
    PropsFile=$ServerDir/data/nodemanager/startup.properties
    PidFile=$ServerDir/data/nodemanager/$ServerName.pid
    LockFile=$ServerDir/data/nodemanager/$ServerName.lck
    BootFile=$ServerDir/security/boot.properties
    RelBootFile=servers/$ServerName/security/boot.properties
    NMBootFile=$ServerDir/data/nodemanager/boot.properties
    RelNMBootFile=servers/$ServerName/data/nodemanager/boot.properties
    OutFile=$ServerDir/logs/$ServerName.out
    SetDomainEnvScript=$DomainDir/bin/setDomainEnv.sh
    StartWebLogicScript=$DomainDir/bin/startWebLogic.sh
    MigrationScriptDir=$DomainDir/bin/service_migration
    Thanks,
    Krish

  • Precompiling tag files

    It is a fairly common approach to precompile all the jsp pages in your web application, and have it generate servlet and servlet-mapping entries for your web.xml file.
    Is there a similar approach for tag files?
    Something that would take a bunch of tag files, translate them, compile them, generate a tld and then bundle it all into a jar file for distribution.
    The best solution I have come up with so far is to have a "compile-time" jar file which bundles the tag files, and a tld referencing them with <tag-file> entries.
    When pre-compiling the jsps, I can include this in the path, and it will translate/compile the tag files on demand along with the jsp pages.
    I'm just trying to go the next step further.
    Has anybody tried (or even wanted to) do something like this?

    It turns out I misunderstood the problem a little.
    The tag files are only needed when you run the jsp compiler.
    It never DOES generate a tld file.
    The .tag files are not required at runtime - exactly like the jsps are not required at runtime.
    With Tomcat at least, the compiled JSP includes the required generated classes from the .tag files.
    So in effect there is no change from previous. You pre-compile your JSPs as usual, and it worries about picking up the tag files at that time.
    In effect the .tag files are just an extra resource needed to precompile your page, and don't need to be passed further down the process.
    At least thats what I remember of it.
    hope this helps,
    evnafets

  • Label Studio - Create a tag file as a pdf

    I am attempting to create a tag file as a pdf file in label studio.  When I attempt to use Adobe Acrobat, I get a message that says that "font WASP128M could not be embedded because of licensing restrictions."  Business Objects suggested trying another software to create the pdf file.   I downloaded Pdf Creator,  it creates a pdf file, but there is nothing in it.   Does any one have any ideas on how to do this?  Thanks for the help.

    Chris,
    Have you tried using one of the following pdf printer drivers?
    Here is some info from our KB article:
    There are many companies that offer PDF printer drivers. SAP BusinessObjects is not affiliated with any of these companies and does not recommend one in particular. The below information may change without SAP BusinessObjects knowledge. Here is a list of several PDF printer drivers and where to find them:
    - PDF Factory is from FinePrint Software, it can be found at http://www.fineprint.com/index.html
    - Freeware PDFCreator is a freeware PDF print driver, it can be downloaded from http://sourceforge.net/projects/pdfcreator/
    - Win2PDF is from Dane Prairie Systems, Inc. and can be found at http://www.win2pdf.com/
    I think Larry and I found that there are some issues with the latest version of PDFCreator but the other two should work fine.
    Thanks,
    Kendra

  • Evaluating custom tag file

    I have an attribute called Template with the following info:
    <html>
    <tr>
    <td><tags:searchResults/></td>
    </tr>
    </html>
    In my results.jsp I have the following:
    <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
    <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
    <%@ taglib uri="/WEB-INF/fn.tld" prefix="fn" %>
    <%@ taglib uri="/WEB-INF/c.tld" prefix="c" %>
    <%@ taglib tagdir="/WEB-INF/tags" prefix="tags" %>
    ${Template}
    When ${Template} gets evaluated it rendeers the html tags properly but never evaluates the <tags:/searchResults/> which is a tag file that just says "search results"
    I'm using Tomcat 5.0.19
    Any help would be appreciated.

    Sorry, but you can't do that. A JSP must be aware of a custom tag at translate time, so you can't embed tag calls in an attribute or JSTL variable or in output from another tag.

  • "tagged file is not of valid format"

    I'm getting a weird error starting up JDEV 3.1.681 ( waiting for 3.2! ):
    "Tagged file is not of valid format"
    and my Workspace is brought up... but the PROJECT has been disassociated! I re-include the Project and things seem to be OK... then a couple of days later, I get the same problem.
    Any permanent fix? ( while keeping JDev? )

    Hi,
    Big projects have sort of been a problem in the past, but it's always difficult to reproduce and track down the source of the problem. Doesn't help that the error doesn't mention which file is the problem.
    In general, we advise people to put their Business Components in one project, and their client code in a separate project. This is mostly for deployment purposes, so it's easier to encapsulate the business logic or server tier code from the client side code.
    I know that the DAC wizard allows you to create it all in one project, which was put in there for backwards compatibility with JDev 2.0 when BC4J was hidden in the same project. Under the covers as it were.
    This may or may not be the cause of the problems you're seeing. It might be worthwhile to create a new project in your workspace, remove all your client files for the application from the original project, and add them to the second project. I think you'll have a tougher time moving the BC4J objects, so I would leave those and just move the application files (panels, dialogs, etc.).
    After you do that, make sure that the new project has the correct libraries in it. By default, it will just have jdev-runtime, connectionmanager, and Oracle 8.1.6 JDBC, I think. You'll probably need to add the Infobus libraries, JBO runtime, and any others used by your first project. Once you have the library list correct for the client project, you can clean out the library list for the BC4J project so it's only what BC4J needs.
    By the way, you mention you have a lot of entity objects for LOVs. If you're just doing lookups, you don't need the entity object. You can create a view object based strictly on a query against the database. IT eliminates some overhead. On the other hand, if you have a lot of them, it might be a real pain to change them all.
    Sorry not to be able to provide a more definitive answer on the errors and the access violations.

  • How we could share a object from outer tag to inner tag in tag files jsp2.0

    could any buddy will help me on the tag files jsp 2.0 probs
    how could we share a object of any class instantiated in outer customtag's .tag file to inner customtag's .tag file??
    i highly required it ,pls try for me
    for example:-
    <xx:outertag tablename="customer" class="pack1.abc" type="pack1.abc"/>
    <yy:innertag custname="neeraj" custid="22"/>
    i need an object 'customer'of class 'pack1.abc'in innertag instantiated from outertag's .tag file
    thanks

    the actul code of example is :-
    <xx:outertag tablename="customer" class="abc" package="pack1">
    <yy:innertag custname="gdgd" custid="11">
    </yy:innertag>
    </xx:outertag>
    thanks

  • Evaluting parameter in a TAG file

    I am a VERY newbie at JSP...
    My pb : I have a tag file header.tag under WEB-INF/tags.
    It contains :
    <%@ attribute name="titre" required="true" %> <title>MyApp: ${titre}</title>
    I use it this way :
    <html><head> <%@ taglib tagdir="/WEB-INF/tags" prefix="h" %> <h:header titre="connection" /></head>...
    I cannot get my "titre" attribute evaluated: my page still display "MyApp: ${titre}" as title.
    I do not understand: the code seems so close from tutorial's examples.
    What did I make wrong???
    Thanks for help.

    Sorry for bad formatting, 'got some pbs with forum refresh ...
    So, the TAG file :
    <%@ attribute name="titre" required="true" %>
    <title>MyApp: ${titre}</title>
    The JSP file : <html>
    <head>
    <%@ taglib tagdir="/WEB-INF/tags" prefix="h" %>
    <h:header titre="connection" />
    </head>

Maybe you are looking for