Taglib problem

I am running Tomcat 4.1.30 and am trying to use the JSTL jakarta taglibs standard 1.0.6 download.
I placed my jars in the WEB-INF/lib folder. My application runs but I get this error:
JasperException: This absolute uri (http://java.sun.com/jstl/core) cannot be resolved in either web.xml
or the jar files deployed with this applicationI looked at the dtd'd and in my tld's it has this:
<?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>c</short-name>
  <uri>http://java.sun.com/jstl/core</uri>
  <display-name>JSTL core</display-name>
  <description>JSTL 1.0 core library</description>But in my context.xml I have the dtd of :
<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
"http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">and in web.xml:
<!DOCTYPE web-app
    PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
    "http://java.sun.com/dtd/web-app_2_2.dtd">and finally here are my uri's from my jsp page:
<?xml version="1.0" encoding="ISO-8859-1"?>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
<%@ taglib prefix="sql" uri="http://java.sun.com/jstl/sql" %> When I try to change the web/context.xml dtd's to match what is in the tld's my application wont
run at all. So, I guess my question is - am I using the wrong JSTL download or the wrong dtd
in my XML's?
Also, could someone tell me or point me in the direction of documentation about the backwards compatiability of JSTL with Tomcat 4/5?

fixed - onto bigger and bigger problems.... I had two description tags in my web.xml..

Similar Messages

  • Yet more TagLibs problems

    As jato2 still doesn't know about some HTML4 tags like <label>
    ex:
    <label><input type="radio" ... />TheLabel</label>
    if you click on "TheLabel", it clicks on the radio button, like every
    other GUI
    I thought I would be able use the <label for=""> as a workaround
    <input type="radio" name="choice" id="choice1" /> <label
    for="choice1">TheLabel</label>
    BUT despite it generates several tags, <jato:radioButtons> sets the id
    attribute to the same value for every tag :< This not only defeats my
    workaround but also id main purpose to uniquely identity elements.
    We really need a generic mechanism to specify attributes when jato tags
    generate multiple HTML tags.
    I can still change the generated tags in endDisplay but it be neat if
    the 201 taglib was a little bit more XHTML compliant and savvy ;)
    Fr?d?ric
    ps: release this part of the source code and we'll do it !

    Give me until monday and I'll have what you "ask" for (WML/XHTML
    Basic/Mobile as well as ViewBean).
    Following Todd advices,
    for the former, I am having new tags to render the same components. I
    may need to write new components but I'm not sure yet.
    for the latter, 1 pagelet per "rendering" type with an inner
    ContainerView when the logic is different ; the pagelet tags being
    surrounded by a homemade tag that "activates" the pagelet based on the
    client type. A specialized tag seems better than <jato:content> as the
    logic is wired.
    Further step would be to make the tags client aware but I'm not sure
    yet it is the right thing to do. Are tags "allowed" to store data in
    the session (to avoid computing client type ever and ever) ?
    Fr?d?ric
    PS: James Baty will confirm I'm not cheap ;?)
    On mercredi, nov 13, 2002, at 21:11 Europe/Paris, Craig V. Conover
    wrote:
    Fr?d?ric
    Is there anyway that we could talk with you about your WML efforts with
    JATO?
    I would love to get a sample WML app to show the world. And then have a
    WML/HTML app to show multiple clients using the same ViewBeans.
    craig
    Fr?d?ric Miserey wrote:
    On mercredi, nov 13, 2002, at 13:34 Europe/Paris, Todd Fast wrote:
    Fr?d?ric--
    Thanks for the info; I will look into a way of doing something
    about
    this.
    However, please keep in mind that you can write your own complementary
    tags
    to render JATO components any way you like (or write JATO components
    that
    render themselves any way you like), and this is expected to be a
    normal, if
    infrequent, part of writing JATO 2.0 components.That's what I'm doing right now for the WML tags. But I was planning on
    using the standard tags for mainstream HTML ;)
    May you elaborate a little bit on complementary tags vs components ?
    (first part of the suggested thread.
    Until the 2.0 taglib is documented, you can use the 1.2.1 JATO
    source
    to
    guide this effort.? It's actually pretty easy, but you will need the
    source
    to guide you without docs to that effect.? You can download the JATO
    1.2.1
    source, free of charge, etc. here:
    ???? http://iplanet.com/downloads/developer/5102.html
    (If that doesn't work, just do a search for "JATO" on sun.com).? We
    can also
    start a tag-writing thread here if you like.
    I would love to get your perspective on any XHTML shortcomings of the
    current tag library.? Can you plase send your thoughts, list of
    issues, etc.
    to jatoteam@e...?you don't know what you've just asked ;)
    Todd
    ----- Original Message -----
    From: "Fr?d?ric Miserey" <frederic@n...>
    Sent: Tuesday, November 12, 2002 8:35 AM
    Subject: [SunONE-JATO] yet more TagLibs problems
    As jato2 still doesn't know about some HTML4 tags like <label>
    ex:
    <label><input type="radio" ... />TheLabel</label>
    if you click on "TheLabel", it clicks on the radio button, like
    every
    other GUI
    I thought I would be able use the <label for="">? as a workaround
    <input type="radio" name="choice" id="choice1" /> <label
    for="choice1">TheLabel</label>
    BUT despite it generates several tags, <jato:radioButtons> sets the id
    attribute to the same value for every tag :< This not only defeats my
    workaround but also id main purpose to uniquely identity elements.
    We really need a generic mechanism to specify attributes when jato tags
    generate multiple HTML tags.
    I can still change the generated tags in endDisplay but it be neat if
    the 201 taglib was a little bit more XHTML compliant and savvy ;)
    Fr?d?ric
    ps: release this part of the source code and we'll do it !
    [Non-text portions of this message have been removed]

  • Jsp taglib problems in J2ee server  of j2sdkee1.3

    Fresh from solving the problems with usebean in jsp, I again got a problem with the custom tags of JSP
    I am using Jdk1.3 and j2sdkee1.3, windows98
    The class file is stored in a package called my in the c:\j2sdkee1.3\lib\classes\my folder
    and the tld and jsp file stored in c:\j2sdkee1.3\public_html folder
    when I access the atm.jsp page, I got this error message
    A Servlet Exception Has Occurred
    org.apache.jasper.compiler.ParseException: End of content reached while more parsing required: tag nesting error?
    Here is the ATMJsp.tld code
    <?xml version="1.0" encoding="ISO-8859-1" ?>
    <!DOCTYPE taglib PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.1//EN" "http://java.sun.com/j2ee/dtds/web-jsptaglibrary_1_1.dtd">
    <taglib>
         <tlibversion>1.0</tlibversion>
         <jspversion>1.1</jspversion>
         <shortname>ATMJsp</shortname>
         <info>a tag library for the atm details</info>
         <tag>
              <name>ATM</name>
              <tagclass>my.atmtag</tagclass>
              <bodycontent>JSP</bodycontent>
              <info>Outputs of the ATM Counter</info>
         </tag>
    </taglib>
    I try:
    When I put the <bodycontent> tags below the <info> tags, I got the error message that the tag doesn't allow "bodycontent" here
    I don't know what caused the problem ... is there some mistake in the above code?
    Include other file to make it more clear---* atm.jsp and atmtag.java
    atm.jsp
    <%@ page import="my.atmtag" %>
    <%@ taglib uri="ATMJsp.tld" prefix="atmjsp" %>
    <%@ page errorPage="errorpage.jsp" %>
    <!DocType HTML Public "-//W3C//DTD// HTML 4.0 Translational//EN">
    <html>
    <head></head>
    <body>
    <h3 align=center>ATM counters that need cash</h3>
    <table><tr>
    <td></td>
    <td><atmjsp:ATM></td>
    </tr>
    </body>
    </html>
    atmtag.java
    package my;
    import javax.servlet.jsp.*;
    import javax.servlet.jsp.tagext.*;
    import java.io.*;
    import java.sql.*;
    import java.math.*;
    import java.util.*;
    //tag handler
    public class atmtag extends TagSupport
         Connection connect=null;
         Statement state=null;
         ResultSet result=null;
         public atmtag() throws ClassNotFoundException
              Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
         public int doStartTag() throws JspTagException
              return EVAL_BODY_INCLUDE;
         public int doEndTag() throws JspTagException
              try
                   JspWriter out=pageContext.getOut();
                   connect=DriverManager.getConnection("jdbc:odbc:EarnestBank","","");
                   String strquery="select cCounter_id, cAddress, mCashBalance from Counter where mCashBalance<=10000";
                   state=connect.createStatement();
                   ResultSet result=state.executeQuery(strquery);
                   String sid=null;
                   String saddress=null;
                   String sbalance=null;
                   Vector v=new Vector();
                   while(result.next())
                        sid=result.getString(1);
                        saddress=result.getString(2);
                        sbalance=result.getString(3);
                        v.add(sid);
                        v.add(saddress);
                        v.add(sbalance);
                   for (int i=0; i<v.size();i++)
                        String str=(String)v.elementAt(i);
                        pageContext.getOut().write(str);
              catch(Exception ex)
              return EVAL_PAGE;
    Pls help me to get through this hurdle
    Thanks

    1) To handle <bodycontent> you should inherit from BodyTagSupport
    class
    2) You should use your bean like: <td><atmjsp:ATM/></td>
    with closing slash - it's bodyless tag - this mistake
    causes JSP compiler to report error
    Enjoy!
    Paul

  • Taglib problem: Cannot parse custom tag with short name table

    Hello!
    I am having problems deploying a jsp tag in web as. The same war file works fine on websphere, jboss. SAP web as seems to be complaining about the short name in the tld.
    Can any body me to any known web as issues with jsp tags?
    Thanks
    [code]
    Application error occurs during processing the request.
    Details: com.sap.engine.services.servlets_jsp.server.exceptions.WebIOException: Internal error while parsing JSP page /usr/sap/J2E/JC00/j2ee/cluster/server0/apps/sap.com/dispear/servlet_jsp/disp/root/test.jsp.
         at com.sap.engine.services.servlets_jsp.server.jsp.JSPParser.parse(JSPParser.java:85)
         at com.sap.engine.services.servlets_jsp.server.servlet.JSPServlet.getClassName(JSPServlet.java:207)
         at com.sap.engine.services.servlets_jsp.server.servlet.JSPServlet.compileAndGetClassName(JSPServlet.java:369)
         at com.sap.engine.services.servlets_jsp.server.servlet.JSPServlet.service(JSPServlet.java:164)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:385)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:263)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:340)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:318)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:821)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:239)
         at com.sap.engine.services.httpserver.server.Client.handle(Client.java:92)
         at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:147)
         at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:37)
         at com.sap.engine.core.cluster.impl6.session.UnorderedChannel$MessageRunner.run(UnorderedChannel.java:71)
         at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
         at java.security.AccessController.doPrivileged(Native Method)
         at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:94)
         at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:162)
    Caused by: com.sap.engine.services.servlets_jsp.lib.jspparser.exceptions.JspParseException: Cannot parse custom tag with short name table.
         at com.sap.engine.services.servlets_jsp.lib.jspparser.syntax.xmlsyntax.CustomJspTag.action(CustomJspTag.java:129)
         at com.sap.engine.services.servlets_jsp.lib.jspparser.syntax.ElementCollection.action(ElementCollection.java:52)
         at com.sap.engine.services.servlets_jsp.server.jsp.JSPParser.initParser(JSPParser.java:307)
         at com.sap.engine.services.servlets_jsp.server.jsp.JSPParser.parse(JSPParser.java:74)
         ... 18 more
    Caused by: com.sap.engine.services.servlets_jsp.lib.jspparser.exceptions.JspParseException: Unknown class name java.lang.Object.
         at com.sap.engine.services.servlets_jsp.lib.jspparser.taglib.TagBeginGenerator.convertString(TagBeginGenerator.java:365)
         at com.sap.engine.services.servlets_jsp.lib.jspparser.taglib.TagBeginGenerator.generateSetters(TagBeginGenerator.java:187)
         at com.sap.engine.services.servlets_jsp.lib.jspparser.taglib.TagBeginGenerator.generateServiceMethodStatements(TagBeginGenerator.java:212)
         at com.sap.engine.services.servlets_jsp.lib.jspparser.taglib.TagBeginGenerator.generate(TagBeginGenerator.java:269)
         at com.sap.engine.services.servlets_jsp.lib.jspparser.syntax.xmlsyntax.CustomJspTag.action(CustomJspTag.java:127)
         ... 21 more
    [/code]

    Hi Ray,
    I am facing similar kind of issue.
    Can you please help to resolve it?
    Thanks in advance.
    Logs are as below [Here I am using standard tag lib]::
    Caused by: com.sap.engine.services.servlets_jsp.jspparser_api.exception.JspParseException: Cannot parse custom tag with short name [out].
         at com.sap.engine.services.servlets_jsp.jspparser_api.jspparser.syntax.xmlsyntax.CustomJspTag.action(CustomJspTag.java:183)
         at com.sap.engine.services.servlets_jsp.jspparser_api.jspparser.syntax.ElementCollection.action(ElementCollection.java:59)
         at com.sap.engine.services.servlets_jsp.jspparser_api.jspparser.syntax.JspIncludeDirective.action(JspIncludeDirective.java:51)
         at com.sap.engine.services.servlets_jsp.jspparser_api.jspparser.syntax.ElementCollection.action(ElementCollection.java:59)
         at com.sap.engine.services.servlets_jsp.jspparser_api.jspparser.syntax.JspElement.customTagAction(JspElement.java:994)
         at com.sap.engine.services.servlets_jsp.jspparser_api.jspparser.syntax.JspElement.action(JspElement.java:228)
         at com.sap.engine.services.servlets_jsp.jspparser_api.jspparser.syntax.ElementCollection.action(ElementCollection.java:59)
         at com.sap.engine.services.servlets_jsp.jspparser_api.jspparser.syntax.ElementCollection.action(ElementCollection.java:69)
         at com.sap.engine.services.servlets_jsp.jspparser_api.jspparser.GenerateJavaFile.generateJavaFile(GenerateJavaFile.java:72)
         at com.sap.engine.services.servlets_jsp.server.jsp.JSPProcessor.parse(JSPProcessor.java:270)
         at com.sap.engine.services.servlets_jsp.server.jsp.JSPProcessor.generateJavaFile(JSPProcessor.java:194)
         at com.sap.engine.services.servlets_jsp.server.jsp.JSPProcessor.parse(JSPProcessor.java:126)
         at com.sap.engine.services.servlets_jsp.jspparser_api.JSPChecker.getClassName(JSPChecker.java:319)
         at com.sap.engine.services.servlets_jsp.jspparser_api.JSPChecker.compileAndGetClassName(JSPChecker.java:248)
         at com.sap.engine.services.servlets_jsp.jspparser_api.JSPChecker.getClassNameForProduction(JSPChecker.java:178)
         at com.sap.engine.services.servlets_jsp.jspparser_api.JSPChecker.processJSPRequest(JSPChecker.java:109)
         at com.sap.engine.services.servlets_jsp.jspparser_api.JspParser.generateJspClass(JspParser.java:154)
         at com.sap.engine.services.servlets_jsp.server.servlet.JSPServlet.service(JSPServlet.java:193)
         ... 47 more
    Caused by: com.sap.engine.services.servlets_jsp.jspparser_api.exception.JspParseException: Attribute [value] of [<c:out>] can accept only static values.
         at com.sap.engine.services.servlets_jsp.jspparser_api.jspparser.taglib.TagBeginGenerator.calculateAttributeValue(TagBeginGenerator.java:476)
         at com.sap.engine.services.servlets_jsp.jspparser_api.jspparser.taglib.TagBeginGenerator.generateSetters(TagBeginGenerator.java:394)
         at com.sap.engine.services.servlets_jsp.jspparser_api.jspparser.taglib.TagBeginGenerator.generateServiceMethodStatements(TagBeginGenerator.java:562)
         at com.sap.engine.services.servlets_jsp.jspparser_api.jspparser.taglib.TagBeginGenerator.generate(TagBeginGenerator.java:678)
         at com.sap.engine.services.servlets_jsp.jspparser_api.jspparser.syntax.xmlsyntax.CustomJspTag.action(CustomJspTag.java:181)
         ... 64 more
    Regards,
    Sankalp

  • Taglib problem in JSP

    I'm using JFreeChart to display the chart and I define the following taglib in my JSP.
    <%@ taglib uri="/WEB-INF/chartlib.tld" prefix="chartlib" %>
    It works in Tomcat and WebLogic, but not webtogo, got this exception.
    java.lang.NoClassDefFoundError: Illegal name: /WEB-INF/chartlib.tld
         at java.lang.ClassLoader.defineClass(Unknown Source)
         at java.lang.ClassLoader.defineClass(Unknown Source)
         at oracle.lite.web.ServletHandler$ServletClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at oracle.jsp.parse.JspUtils.loadClassJDK(JspUtils.java:219)
         at oracle.jsp.parse.JspUtils.loadClass(JspUtils.java:209)
    I have to hardcode the app name in order to make it work. Is there any good solution?
    <%@ taglib uri="//webapp/WEB-INF/chartlib.tld" prefix="chartlib" %>
    And it just solve the exception problem, it actually cannot show the chart. Anyone use the jfreechart or has problem in using custom tag library?
    Matthew

    I put the chartlib.tld in /WEB-INF/ and here is my web.xml. The uri of the taglib directive in JSP is exactly the taglib-uri here for each case.
    <taglib>
    <taglib-uri>/WEB-INF/chartlib.tld</taglib-uri>
    <taglib-location>/WEB-INF/chartlib.tld</taglib-location>
    </taglib>
    <taglib>
    <taglib-uri>chartlib-01.tld</taglib-uri>
    <taglib-location>/chartlib.tld</taglib-location>
    </taglib>
    <taglib>
    <taglib-uri>chartlib-02.tld</taglib-uri>
    <taglib-location>/no_chartlib.tld</taglib-location>
    </taglib>
    <taglib>
    <taglib-uri>chartlib-03.tld</taglib-uri>
    <taglib-location>/WEB-INF/chartlib.tld</taglib-location>
    </taglib>
    <taglib>
    <taglib-uri>chartlib-04.tld</taglib-uri>
    <taglib-location>chartlib.tld</taglib-location>
    </taglib>
    <taglib>
    <taglib-uri>chartlib-05.tld</taglib-uri>
    <taglib-location>no_chartlib.tld</taglib-location>
    </taglib>
    <taglib>
    <taglib-uri>/WEB/chartlib.tld</taglib-uri>
    <taglib-location>/WEB-INF/chartlib.tld</taglib-location>
    </taglib>
    And I have modified the source code in JspDirectiveTaglib.java to output some debug message, where s1 is the value of uri in JSP, s3 is the value of taglib-location in web.xml. Here is the result. It tries to load s1 first. If it returns null, then it reads the tld file s2. It shows that the leading '/' represent the webapp dir. If it is relative (i.e. no '/'), it refers to the /WEB-INF as you can see the program automatically add it in the beginning. Finally, the message "loader MyChartTag" shows that it loads my tag class successfully.
    ----Case 1: this should be the normal/ideal case, but in fact it fails.
    ----It loads the tld file but it is not a class, so throws the error.
    JspDirectiveTaglib:uri(s1)=[WEB-INF/chartlib.tld]
    JspDirectiveTaglib:s3=[WEB-INF/chartlib.tld]
    JspDirectiveTaglib:loadClass(s1)=[WEB-INF/chartlib.tld]
    log1: loader: /WEB-INF/chartlib.tld
    log9: JspServlet: unable to dispatch to requested page: java.lang.NoClassDefFoundError:
    Illegal name: /WEB-INF/chartlib.tld
    ----Case 2: try to read tld in root dir.
    JspDirectiveTaglib:uri(s1)=[chartlib-01.tld]
    JspDirectiveTaglib:s3=[chartlib.tld]
    JspDirectiveTaglib:loadClass(s1)=[chartlib-01.tld]
    JspDirectiveTaglib:class1=null
    log9: JspServlet: unable to dispatch to requested page: oracle.jsp.parse.JspParseException:
    Error: java.io.FileNotFoundException:
    F:\webapp\chartlib.tld (???????????)
    ----Case 3: try to read a non-existing tld to see where is the root dir.
    JspDirectiveTaglib:uri(s1)=[chartlib-02.tld]
    JspDirectiveTaglib:s3=[no_chartlib.tld]
    JspDirectiveTaglib:loadClass(s1)=[chartlib-02.tld]
    JspDirectiveTaglib:class1=null
    log9: JspServlet: unable to dispatch to requested page: oracle.jsp.parse.JspParseException:
    Error: java.io.FileNotFoundException:
    F:\webapp\no_chartlib.tld (???????????)
    ----Case 4: try to read tld in absolute dir.
    JspDirectiveTaglib:uri(s1)=[chartlib-03.tld]
    JspDirectiveTaglib:s3=[WEB-INF/chartlib.tld]
    JspDirectiveTaglib:loadClass(s1)=[chartlib-03.tld]
    JspDirectiveTaglib:class1=null
    log1: loader: MyChartTag
    ----Case 5: try to read tld in relative dir, but the path is changed by the program.
    JspDirectiveTaglib:uri(s1)=[chartlib-04.tld]
    JspDirectiveTaglib:s3=[WEB-INF/chartlib.tld]
    JspDirectiveTaglib:loadClass(s1)=[chartlib-04.tld]
    JspDirectiveTaglib:class1=null
    log1: loader: MyChartTag
    ----Case 6: try to read a non-existing tld in relative dir, but the path is changed by the program.
    JspDirectiveTaglib:uri(s1)=[chartlib-05.tld]
    JspDirectiveTaglib:s3=[WEB-INF/no_chartlib.tld]
    JspDirectiveTaglib:loadClass(s1)=[chartlib-05.tld]
    JspDirectiveTaglib:class1=null
    log9: JspServlet: unable to dispatch to requested page: oracle.jsp.parse.JspParseException:
    Error: java.io.FileNotFoundException:
    F:\webapp\WEB-INF\no_chartlib.tld (???????????)
    ----Case 7: try to compare to case 1 if the uri specifies an invalid path.
    JspDirectiveTaglib:uri(s1)=[WEB/chartlib.tld]
    JspDirectiveTaglib:s3=[WEB-INF/chartlib.tld]
    JspDirectiveTaglib:loadClass(s1)=[WEB/chartlib.tld]
    JspDirectiveTaglib:class1=null
    log1: loader: MyChartTag

  • Jsp taglib problem

    Hello all,
    as i am facing problem to display the value inside the table. following are the flow files of my code.
    my jsp page............
    <%@ taglib uri="/WEB-INF/tld/c.tld" prefix="c" %>
    <tr>
    <td> </td>
    <td nowrap><b>Client</b></td>
    <td><c ut value="${ConstantDeclarations.ATTR_CMB_CLIENT.strClientName}" default="value is null" escapeXml="true"/></td>
    <!--<td><label for="<%=ConstantDeclarations.ATTR_CMB_CLIENT%>"><%=strClientName%></label></td>-->
    <td> </td>
    </tr>
    my c.tld file.....................
    <tag>
    <description>
    Like <%= ... >, but for expressions.
    </description>
    <name>out</name>
    <tag-class>org.apache.taglibs.standard.tag.rt.core.OutTag</tag-class>
    <body-content>JSP</body-content>
    <attribute>
    <description>
    Expression to be evaluated.
    </description>
    <name>value</name>
    <required>true</required>
    <rtexprvalue>true</rtexprvalue>
    </attribute>
    <attribute>
    <description>
    Default value if the resulting value is null.
    </description>
    <name>default</name>
    <required>false</required>
    <rtexprvalue>true</rtexprvalue>
    </attribute>
    <attribute>
    <description>
    Determines whether characters <,>,&,'," in the
    resulting string should be converted to their
    corresponding character entity codes. Default value is
    true.
    </description>
    <name>escapeXml</name>
    <required>false</required>
    <rtexprvalue>true</rtexprvalue>
    </attribute>
    </tag>
    so i am trying to display the value ConstantDeclarations.ATTR_CMB_CLIENT.strClientName in the table which is taking from the class file ProjectVO.class. in which getClientName is returning the value of strClientName. as shown below
    public class ProjectVO extends ValueObjectImpl implements SearchableEntity{
    public String getClientName(){
    return strClientName;
    i have tried different types like
    ProjectVo.ATTR_CMB_CLIENT.strClientName
    ProjectVO.getClientName.strClientName
    so please refer the code and if u have any solution for this reply to me.
    with regards
    seenu

    First, next time you post code, could you please use [code] tags as per the [code] button at the top of the posting page...
    Okay, down to the question. You have this:
    ${ConstantDeclarations.ATTR_CMB_CLIENT.strClientName}
    This will look for a variable instance named ConstantDeclarations and will try to access the method:
    public [ObjectType] getATTR_CMB_CLIENT()
    It will then try to call
    public [ObjectType] getStrClientName()
    from the object returned from the previous method call.
    The point is: ConstantDeclarations can not be a class name, it must be an instance of a class. And ATTR_CMB_CLIENT can not be a static member of that class. It must be a property - accessed through a getATTR_CMB_CLIENT() method, which must be public, non static, and have a return type (non-void).

  • Taglib problem : can't parse DTD ?

    Hi,
    I'm running Tomcat 4.0.1.
    I'm trying to use the custom tags, but the tomcat server outputs an XML parsing error : 'Element type "tlibversion" must be declared'.
    It looks like tomcat is unable to read the DTD of my tld file (if I change the DTD url, nothing changes)...
    Here is my tld file :
    <?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>
    <tlibversion>1.0</tlibversion>
    <jspversion>1.2</jspversion>
    <shortname>first</shortname>
    <uri></uri>
    <info>A simple tab library for the examples</info>
    <tag>
    <name>hello</name>
    <tagclass>tags.CheckAddMessageTag</tagclass>
    <bodycontent>empty</bodycontent>
    <info>Say Hi</info>
    </tag>
    </taglib>
    Thank you for your help...
    Xavier Bugaud

    I think the issue is that your tld specifies the 1.2 DTD but then gives the 1.1 tag names such as "tlibversion" and "jspversion" instead of "tlib-version", "jsp-version". Either use the 1.1 DTD or change the tag names.

  • Custom taglib problem

    Hi I wrote some custom taglibs, but I get the
    following error:
    org.apache.jasper.JasperException: File "/dodo" not
    found
    I have the following configuration in my web.xml
    <taglib>
    <taglib-uri>/dodo</taglib-uri>
    <taglib-location>/WEB-INF/jsp/csajsp.tld</taglib-location>
    </taglib>
    and I call it in my jsp file in the following way:
    <%@ taglib uri="/dodo" prefix="c" %>
    And still doesn't work
    I'm using jdk 1.4.2 and tomcat 4.1.24.
    Any clues, thanks.

    That is right. The thing is that the custom tag example from tomcat works, and mine doesn't. Someone told me that it could be a jdk 1.4.2 issue, but thanks anyway.

  • Struts taglibs problems

    When I try to use an html:link tag (html:link action="/display.do") I get the following error
    java.lang.NoSuchMethodError: oracle.webdb.provider.v2.struts.StrutsUtils.isPortalRequest
    if I look in the pdkjava.jar and pdkstruts.jar I see StrutsUtils but isPortalRequest() is only in the pdkstruts.jar file not pdkjava.jar file. How can I fix this?
    It seems to be a classloader problem loading the wrong class do I need to use a different version of the PDK?
    Message was edited by:
    jgardner16

    Found the problem different pdk versions of the jar files.

  • Taglib - i18n in jsp 2.4

    Hi,
    while migrating the code from websphere 5.1 to websphere 6.1,
    am facing taglib problem.
    in index.jsp, i have added
    <%@ taglib uri="http://jakarta.apache.org/taglibs/i18n-1.0" prefix="i18n"%>
    this cause error as
    JSPG0047E: Unable to locate tag library for uri http://jakarta.apache.org/taglibs/i18n-1.0
    Error code:500
    even i tried with
    <%@ taglib uri="http://jakarta.apache.org/taglibs/i18n" prefix="i18n" %>
    am getting error
    JSPG0047E: Unable to locate tag library for uri http://jakarta.apache.org/taglibs/i18n
    Error code:500
    please help me out...
    what is the latest version of taglib - i18n
    where can i find...
    thanks in advance..
    regards,
    sana .g

    If you need more information, don't know what I mean or whatever, please ask.
    I realy need this but don't know how to do...

  • Help about JSTL: I can't use c:if .. in option.. !

    Hi, all
    I build my project on STRUTS before, and using the tableligs of struts,But now ,I find it is a good choice using JSTL.However ,problems accurred as follows:
    (my project is on Eclipse and Tomcat)
    In the page , I have already include that:
    <%@ taglib uri="/jstl/core" prefix="c" %>
    <%@ taglib uri="/jstl/fn" prefix="fn" %>
    <%@ page isELIgnored="false"%>
    In web.xml, I added that :
    <taglib>
    <taglib-uri>/jstl/core</taglib-uri>
    <taglib-location>/WEB-INF/c.tld</taglib-location>
    </taglib>
    <taglib>
    <taglib-uri>/jstl/fn</taglib-uri>
    <taglib-location>/WEB-INF/fn.tld</taglib-location>
    </taglib>
    Problem occur here:
    <select name="category">
    <option value="IM1" <c:if test="${CCOption == 0}"> selected</c:if> ><bean:message key="IM1"/></option>
    but the system told that " undefined attribute name <c:if .... " that is to say, they cannot find the tag in this page,but I have try to put the <c:if to ..>out , not in the <option...> ,then that is OK.
    But in fact ,we can use the tag <c:if....> in such as <option...> and so on . I don't know why I can't.
    By the way, in jslt 1.1, JSTl.jar/standard.jar have 15 .tld files , I don't
    know what are the differences among the file c-1_0-rt.tld, c-1_0.tld and c.tld(which are inclued in the 15 tld files)?How can I set up JSTL in my Tomcat?
    Look forward for your help!
    Many thanks in advance!

    You may find it useful to go and read [url http://forum.java.sun.com/thread.jspa?threadID=629437&tstart=0] this post. (reply #6)
    Basically you are making a whole lot of work for yourself that you don't need.
    JSTL doesn't need the tld files in WEB-INF.
    It doesn't need entries in web.xml
    All it needs is you to use the standard import URI: <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
    So get rid of those tlds. Leave them hidden inside the jar file. Tomcat will find them there.
    The other thing of not is the <%@ page isELIgnored="false"%> attribute you have.
    You only need this because your web.xml is defining itself as version2.3.
    If you update your web.xml to version2.4, EL is enabled by default
    Hope this helps,
    evnafets

  • Amarok amarok 2.7.0-3 won't start

    When I run " [teeha]$  amarok" it gives:
    amarok: symbol lookup error: /usr/lib/libamaroklib.so.1: undefined symbol: _ZN11KListWidget17mouseReleaseEventEP11QMouseEvent
    Search on google says it might be taglib problem:
    taglib 1.8-1
    The return of " ldd /usr/lib/libamaroklib.so.1 |  grep tag"
    libtag.so.1 => /usr/lib/libtag.so.1 (0x00007fc010126000)
    libtag-extras.so.1 => /usr/lib/libtag-extras.so.1 (0x00007fc00ff17000)
    "ls -la /usr/lib | grep libtag"
    lrwxrwxrwx 1 root root 13 Sep 21 10:07 libtag_c.so -> libtag_c.so.0
    lrwxrwxrwx 1 root root 17 Sep 21 10:07 libtag_c.so.0 -> libtag_c.so.0.0.0
    -rwxr-xr-x 1 root root 18760 Sep 21 10:07 libtag_c.so.0.0.0
    lrwxrwxrwx 1 root root 18 Sep 12 2011 libtag-extras.so -> libtag-extras.so.1
    lrwxrwxrwx 1 root root 22 Sep 12 2011 libtag-extras.so.1 -> libtag-extras.so.1.0.0
    -rwxr-xr-x 1 root root 60192 Sep 12 2011 libtag-extras.so.1.0.0
    lrwxrwxrwx 1 root root 11 Sep 21 10:07 libtag.so -> libtag.so.1
    lrwxrwxrwx 1 root root 16 Sep 21 10:07 libtag.so.1 -> libtag.so.1.12.0
    -rwxr-xr-x 1 root root 953152 Sep 21 10:07 libtag.so.1.12.0
    I am running kde4 in arch linux with gstreamer as phonone back-end. And I have install all gstreamer plug-ins
    I have -Syu and reinstall so many times still not working.
    What am I missing
    Last edited by hexarrow (2013-02-24 22:33:43)

    Here is the output of "ldd /bin/amarok"
    linux-vdso.so.1 (0x00007fff3d089000)
    libkdeui.so.5 => /usr/lib/libkdeui.so.5 (0x00007f91d30f8000)
    libamarokcore.so.1 => /usr/lib/libamarokcore.so.1 (0x00007f91d2e6e000)
    libamaroklib.so.1 => /usr/lib/libamaroklib.so.1 (0x00007f91d2340000)
    libX11.so.6 => /usr/lib/libX11.so.6 (0x00007f91d2007000)
    libQtGui.so.4 => /usr/lib/libQtGui.so.4 (0x00007f91d1364000)
    libkdecore.so.5 => /usr/lib/libkdecore.so.5 (0x00007f91d0e98000)
    libQtCore.so.4 => /usr/lib/libQtCore.so.4 (0x00007f91d09c0000)
    libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x00007f91d06bd000)
    libgcc_s.so.1 => /usr/lib/libgcc_s.so.1 (0x00007f91d04a8000)
    libc.so.6 => /usr/lib/libc.so.6 (0x00007f91d00fb000)
    libSM.so.6 => /usr/lib/libSM.so.6 (0x00007f91cfef3000)
    libICE.so.6 => /usr/lib/libICE.so.6 (0x00007f91cfcd7000)
    libQtXml.so.4 => /usr/lib/libQtXml.so.4 (0x00007f91cfa95000)
    libattica.so.0.4 => /usr/lib/libattica.so.0.4 (0x00007f91cf7c6000)
    libQtNetwork.so.4 => /usr/lib/libQtNetwork.so.4 (0x00007f91cf48e000)
    libQtSvg.so.4 => /usr/lib/libQtSvg.so.4 (0x00007f91cf238000)
    libdbusmenu-qt.so.2 => /usr/lib/libdbusmenu-qt.so.2 (0x00007f91cefff000)
    libXtst.so.6 => /usr/lib/libXtst.so.6 (0x00007f91cedf8000)
    libXcursor.so.1 => /usr/lib/libXcursor.so.1 (0x00007f91cebed000)
    libXfixes.so.3 => /usr/lib/libXfixes.so.3 (0x00007f91ce9e6000)
    libXrender.so.1 => /usr/lib/libXrender.so.1 (0x00007f91ce7db000)
    libQtDBus.so.4 => /usr/lib/libQtDBus.so.4 (0x00007f91ce560000)
    libpthread.so.0 => /usr/lib/libpthread.so.0 (0x00007f91ce344000)
    libm.so.6 => /usr/lib/libm.so.6 (0x00007f91ce046000)
    libkio.so.5 => /usr/lib/libkio.so.5 (0x00007f91cdb9a000)
    libsolid.so.4 => /usr/lib/libsolid.so.4 (0x00007f91cd8ac000)
    libthreadweaver.so.4 => /usr/lib/libthreadweaver.so.4 (0x00007f91cd695000)
    libkfile.so.4 => /usr/lib/libkfile.so.4 (0x00007f91cd3eb000)
    libknewstuff3.so.4 => /usr/lib/libknewstuff3.so.4 (0x00007f91cd178000)
    libphonon.so.4 => /usr/lib/libphonon.so.4 (0x00007f91ccf0f000)
    libplasma.so.3 => /usr/lib/libplasma.so.3 (0x00007f91cc9e9000)
    libQtScript.so.4 => /usr/lib/libQtScript.so.4 (0x00007f91cc546000)
    libQtSql.so.4 => /usr/lib/libQtSql.so.4 (0x00007f91cc307000)
    liblastfm.so.1 => /usr/lib/liblastfm.so.1 (0x00007f91cc079000)
    libofa.so.0 => /usr/lib/libofa.so.0 (0x00007f91cbe63000)
    libavformat.so.54 => /usr/lib/libavformat.so.54 (0x00007f91cbb04000)
    libavcodec.so.54 => /usr/lib/libavcodec.so.54 (0x00007f91cab96000)
    libavutil.so.52 => /usr/lib/libavutil.so.52 (0x00007f91ca964000)
    libamarokpud.so.1 => /usr/lib/libamarokpud.so.1 (0x00007f91ca74b000)
    libamarokocsclient.so.4 => /usr/lib/libamarokocsclient.so.4 (0x00007f91ca51a000)
    libamarok-transcoding.so.1 => /usr/lib/libamarok-transcoding.so.1 (0x00007f91ca304000)
    libtag.so.1 => /usr/lib/libtag.so.1 (0x00007f91ca01a000)
    libtag-extras.so.1 => /usr/lib/libtag-extras.so.1 (0x00007f91c9e0b000)
    libkcmutils.so.4 => /usr/lib/libkcmutils.so.4 (0x00007f91c9bcb000)
    libxcb.so.1 => /usr/lib/libxcb.so.1 (0x00007f91c99ac000)
    libdl.so.2 => /usr/lib/libdl.so.2 (0x00007f91c97a8000)
    libglib-2.0.so.0 => /usr/lib/libglib-2.0.so.0 (0x00007f91c94b2000)
    libpng15.so.15 => /usr/lib/libpng15.so.15 (0x00007f91c9285000)
    libz.so.1 => /usr/lib/libz.so.1 (0x00007f91c906f000)
    libfreetype.so.6 => /usr/lib/libfreetype.so.6 (0x00007f91c8dd0000)
    libgobject-2.0.so.0 => /usr/lib/libgobject-2.0.so.0 (0x00007f91c8b82000)
    libfontconfig.so.1 => /usr/lib/libfontconfig.so.1 (0x00007f91c8947000)
    libXext.so.6 => /usr/lib/libXext.so.6 (0x00007f91c8734000)
    libbz2.so.1.0 => /usr/lib/libbz2.so.1.0 (0x00007f91c8524000)
    liblzma.so.5 => /usr/lib/liblzma.so.5 (0x00007f91c8301000)
    librt.so.1 => /usr/lib/librt.so.1 (0x00007f91c80f9000)
    /lib64/ld-linux-x86-64.so.2 (0x00007f91d3761000)
    libuuid.so.1 => /usr/lib/libuuid.so.1 (0x00007f91c7ef4000)
    libssl.so.1.0.0 => /usr/lib/libssl.so.1.0.0 (0x00007f91c7c8a000)
    libcrypto.so.1.0.0 => /usr/lib/libcrypto.so.1.0.0 (0x00007f91c7881000)
    libXi.so.6 => /usr/lib/libXi.so.6 (0x00007f91c7672000)
    libdbus-1.so.3 => /usr/lib/libdbus-1.so.3 (0x00007f91c742c000)
    libnepomuk.so.4 => /usr/lib/libnepomuk.so.4 (0x00007f91c7157000)
    libstreamanalyzer.so.0 => /usr/lib/libstreamanalyzer.so.0 (0x00007f91c6ed4000)
    libacl.so.1 => /usr/lib/libacl.so.1 (0x00007f91c6ccb000)
    libattr.so.1 => /usr/lib/libattr.so.1 (0x00007f91c6ac6000)
    libudev.so.1 => /usr/lib/libudev.so.1 (0x00007f91c68b5000)
    libpulse.so.0 => /usr/lib/libpulse.so.0 (0x00007f91c666b000)
    libpulse-mainloop-glib.so.0 => /usr/lib/libpulse-mainloop-glib.so.0 (0x00007f91c6466000)
    libqzeitgeist.so.1 => /usr/lib/libqzeitgeist.so.1 (0x00007f91c6241000)
    libQtWebKit.so.4 => /usr/lib/libQtWebKit.so.4 (0x00007f91c3f18000)
    libQtDeclarative.so.4 => /usr/lib/libQtDeclarative.so.4 (0x00007f91c3972000)
    libkdnssd.so.4 => /usr/lib/libkdnssd.so.4 (0x00007f91c3747000)
    libkdewebkit.so.5 => /usr/lib/libkdewebkit.so.5 (0x00007f91c3524000)
    libqca.so.2 => /usr/lib/libqca.so.2 (0x00007f91c3211000)
    libQtOpenGL.so.4 => /usr/lib/libQtOpenGL.so.4 (0x00007f91c2f13000)
    libfftw3.so.3 => /usr/lib/libfftw3.so.3 (0x00007f91c2b97000)
    librtmp.so.0 => /usr/lib/librtmp.so.0 (0x00007f91c297b000)
    libmodplug.so.1 => /usr/lib/libmodplug.so.1 (0x00007f91c26aa000)
    libbluray.so.1 => /usr/lib/libbluray.so.1 (0x00007f91c247c000)
    libva.so.1 => /usr/lib/libva.so.1 (0x00007f91c2265000)
    libxvidcore.so.4 => /usr/lib/libxvidcore.so.4 (0x00007f91c1f4d000)
    libx264.so.129 => /usr/lib/libx264.so.129 (0x00007f91c1bfe000)
    libvpx.so.1 => /usr/lib/libvpx.so.1 (0x00007f91c195e000)
    libvorbisenc.so.2 => /usr/lib/libvorbisenc.so.2 (0x00007f91c148f000)
    libvorbis.so.0 => /usr/lib/libvorbis.so.0 (0x00007f91c1262000)
    libtheoraenc.so.1 => /usr/lib/libtheoraenc.so.1 (0x00007f91c1024000)
    libtheoradec.so.1 => /usr/lib/libtheoradec.so.1 (0x00007f91c0e09000)
    libspeex.so.1 => /usr/lib/libspeex.so.1 (0x00007f91c0bf0000)
    libschroedinger-1.0.so.0 => /usr/lib/libschroedinger-1.0.so.0 (0x00007f91c0924000)
    libopus.so.0 => /usr/lib/libopus.so.0 (0x00007f91c06e4000)
    libopenjpeg.so.1 => /usr/lib/libopenjpeg.so.1 (0x00007f91c04bc000)
    libopencore-amrwb.so.0 => /usr/lib/libopencore-amrwb.so.0 (0x00007f91c02a7000)
    libopencore-amrnb.so.0 => /usr/lib/libopencore-amrnb.so.0 (0x00007f91c007d000)
    libmp3lame.so.0 => /usr/lib/libmp3lame.so.0 (0x00007f91bfe06000)
    libgsm.so.1 => /usr/lib/libgsm.so.1 (0x00007f91bfbfb000)
    libXau.so.6 => /usr/lib/libXau.so.6 (0x00007f91bf9f7000)
    libXdmcp.so.6 => /usr/lib/libXdmcp.so.6 (0x00007f91bf7f1000)
    libpcre.so.1 => /usr/lib/libpcre.so.1 (0x00007f91bf58e000)
    libgthread-2.0.so.0 => /usr/lib/libgthread-2.0.so.0 (0x00007f91bf38c000)
    libffi.so.6 => /usr/lib/libffi.so.6 (0x00007f91bf184000)
    libexpat.so.1 => /usr/lib/libexpat.so.1 (0x00007f91bef5a000)
    libsoprano.so.4 => /usr/lib/libsoprano.so.4 (0x00007f91bec5c000)
    libsopranoclient.so.1 => /usr/lib/libsopranoclient.so.1 (0x00007f91be9ff000)
    libstreams.so.0 => /usr/lib/libstreams.so.0 (0x00007f91be7c5000)
    libxml2.so.2 => /usr/lib/libxml2.so.2 (0x00007f91be469000)
    libsystemd-daemon.so.0 => /usr/lib/libsystemd-daemon.so.0 (0x00007f91be265000)
    libjson.so.0 => /usr/lib/libjson.so.0 (0x00007f91be05d000)
    libpulsecommon-3.0.so => /usr/lib/pulseaudio/libpulsecommon-3.0.so (0x00007f91bddf5000)
    libjpeg.so.8 => /usr/lib/libjpeg.so.8 (0x00007f91bdba4000)
    libgstapp-0.10.so.0 => /usr/lib/libgstapp-0.10.so.0 (0x00007f91bd998000)
    libgstinterfaces-0.10.so.0 => /usr/lib/libgstinterfaces-0.10.so.0 (0x00007f91bd786000)
    libgstpbutils-0.10.so.0 => /usr/lib/libgstpbutils-0.10.so.0 (0x00007f91bd562000)
    libgstvideo-0.10.so.0 => /usr/lib/libgstvideo-0.10.so.0 (0x00007f91bd346000)
    libgstbase-0.10.so.0 => /usr/lib/libgstbase-0.10.so.0 (0x00007f91bd0f2000)
    libgstreamer-0.10.so.0 => /usr/lib/libgstreamer-0.10.so.0 (0x00007f91bce09000)
    libsqlite3.so.0 => /usr/lib/libsqlite3.so.0 (0x00007f91bcb5d000)
    libQtXmlPatterns.so.4 => /usr/lib/libQtXmlPatterns.so.4 (0x00007f91bc517000)
    libGL.so.1 => /usr/lib/libGL.so.1 (0x00007f91bc2b3000)
    libkparts.so.4 => /usr/lib/libkparts.so.4 (0x00007f91bc05c000)
    libogg.so.0 => /usr/lib/libogg.so.0 (0x00007f91bbe55000)
    liborc-0.4.so.0 => /usr/lib/liborc-0.4.so.0 (0x00007f91bbbda000)
    libsndfile.so.1 => /usr/lib/libsndfile.so.1 (0x00007f91bb974000)
    libasyncns.so.0 => /usr/lib/libasyncns.so.0 (0x00007f91bb76e000)
    libgmodule-2.0.so.0 => /usr/lib/libgmodule-2.0.so.0 (0x00007f91bb56a000)
    libglapi.so.0 => /usr/lib/libglapi.so.0 (0x00007f91bb344000)
    libXdamage.so.1 => /usr/lib/libXdamage.so.1 (0x00007f91bb141000)
    libX11-xcb.so.1 => /usr/lib/libX11-xcb.so.1 (0x00007f91baf3f000)
    libxcb-glx.so.0 => /usr/lib/libxcb-glx.so.0 (0x00007f91bad27000)
    libXxf86vm.so.1 => /usr/lib/libXxf86vm.so.1 (0x00007f91bab21000)
    libdrm.so.2 => /usr/lib/libdrm.so.2 (0x00007f91ba915000)
    libnepomukutils.so.4 => /usr/lib/libnepomukutils.so.4 (0x00007f91ba6d9000)
    libFLAC.so.8 => /usr/lib/libFLAC.so.8 (0x00007f91ba48e000)
    libnsl.so.1 => /usr/lib/libnsl.so.1 (0x00007f91ba276000)
    libresolv.so.2 => /usr/lib/libresolv.so.2 (0x00007f91ba05f000)
    libnepomukquery.so.4 => /usr/lib/libnepomukquery.so.4 (0x00007f91b9e17000)

  • Problem with taglib

    i am having a problem with my taglib in xml file. I use html:hidden taglib to pass the parameter which is not visible at the form. It is working properly at the form that I which to implement it, but however it cause an error to another form. How should I handle it? Can anyone help me. I really need help on this one.

    Could you pls describe the problem clearly so that i can analyse where the problem is....

  • Jdev 10.1.2 problem define jstl tagLib

    hi,
    i have a problem in my jsp when i compile it with JDev 10.1.2, when trying to use JSTL tag:
    <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
    I always get the following message:
    Error(3,49): Attribute 'xmlns' used but not declared.
    Error(4,58): Attribute 'xmlns:xsi' used but not declared.
    Error(5,105): Attribute 'xsi:schemaLocation' used but not declared.
    Error(6,18): Attribute 'version' used but not declared.
    Error(33,19): Invalid element 'context-param' in content of 'web-app', expected elements '[resource-ref, security-constraint, login-config, security-role, env-entry, ejb-ref, ejb-local-ref]'.
    Error(34,18): Invalid element 'description' in content of 'context-param', expected elements '[param-name]'.
    but i saw this tutorial http://www.oracle.com/technology/products/jdev/tips/schalk/taglibs/taglibs.html
    and i check my preferences about my projet, i had the libraries standart.jar and jstl.jar to my project (Project Properties->Profile->developement->Libraries), and they are located in my <project>/public_html/WEB-INF/lib/
    And for the declaration of the taglib,
    Tools->Manage Libraries-> JSP TagLibraries the prefix "c" is defined, and it is the same uri what i'm using in my jsp.
    I make another with jdev 10.1.3, and i put my project, i compile and it work very fine.
    Thanks for any help.
    Regis.

    Hi this is my Web.xml
    I do not have a DTD with the web.xml
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <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_4.xsd"
    version="2.4">
    <display-name>jGallery</display-name>
    <context-param>
         <param-name>useDataBase</param-name>
         <param-value>false</param-value>
    </context-param>
    <context-param>
         <param-name>dataSource</param-name>
         <param-value>java:comp/env/jdbc/jGallery</param-value>
    </context-param>
    <context-param>
         <param-name>thumbnailWriter</param-name>
         <param-value>de.jwi.jgallery.toolkit.ToolkitThumbnailWriter</param-value>
    </context-param>
    <resource-ref>
    <description>DB Connection</description>
    <res-ref-name>jdbc/jGallery</res-ref-name>
    <res-type>javax.sql.DataSource</res-type>
    <res-auth>Container</res-auth>
    </resource-ref>
    <context-param>
         <description>separate with commas</description>
         <param-name>dirmappings</param-name>
              <param-value>/=D:/temp/jg</param-value>
    </context-param>
    <servlet>
    <servlet-name>Controller</servlet-name>
    <servlet-class>de.jwi.jgallery.servlets.Controller</servlet-class>
         <init-param>
              <description>Path prefix, that maps to web ressources</description>
              <param-name>webprefix</param-name>
              <param-value>/web/</param-value>
         </init-param>
    </servlet>
    <servlet>
    <servlet-name>StatisticsController</servlet-name>
    <servlet-class>de.jwi.jgallery.servlets.StatisticsController</servlet-class>
    </servlet>
    <servlet-mapping>
    <servlet-name>Controller</servlet-name>
              <url-pattern>*.html</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
    <servlet-name>StatisticsController</servlet-name>
         <url-pattern>/Statistics/*</url-pattern>
    </servlet-mapping>
    <!--
    <security-constraint>
    <web-resource-collection>
    <web-resource-name>jGallery</web-resource-name>
    <url-pattern>/Statistics</url-pattern>
    </web-resource-collection>
    <auth-constraint>
         <role-name>manager</role-name>
    </auth-constraint>
    </security-constraint>
    <login-config>
    <auth-method>FORM</auth-method>
    <realm-name>Example Form-Based Authentication Area</realm-name>
    <form-login-config>
    <form-login-page>/security/login.jsp</form-login-page>
    <form-error-page>/security/error.jsp</form-error-page>
    </form-login-config>
    </login-config>
    <security-role>
    <role-name>manager</role-name>
    </security-role>
    -->
    <welcome-file-list>
         <welcome-file>jGallery.htm</welcome-file>
    </welcome-file-list>
    <jsp-config>
    <taglib>
    <taglib-uri> http://www.jwi.de/jGallery/taglib </taglib-uri>
    <taglib-location> /WEB-INF/jGallery.tld </taglib-location>
    </taglib>
    </jsp-config>
    </web-app>
    I'm not using the JSTL 1.1, in the "management libraries"
    i define a JSTL librarie and the version is 1.0.

  • Problem with formatting taglib

    I am trying to use the JSTL formatting taglib using JBoss 402 and am having a problem with the <fmt:message tag. Every reference to a message resource, such as <fmt:message key="xyz" /> is not resolved, and instead the value '???xyz???' is always displayed.
    I have made sure that my 'messages.properties' file is in /WEB-INF/classes so that it is in the classpath, and have included the tags below, but these have not changed a thing. Anyone have any ideas or suggestions as to what the problem might be?
    <fmt:setLocale value="${locale}" />
    <fmt:bundle basename = "messages" />

    There are a couple of JSTL tags that deal with bundles.
    The bundle tag you are using here needs the <fmt:message> tag nested inside it:
    <fmt:setLocale value="${locale}" />
    <fmt:bundle basename = "messages">
      <fmt:message key="xyz"/>
    </fmt:bundle>alternatively use the <fmt:setBundle> tag
    <fmt:setBundle basename="messages"/>
    <fmt:message key="xyz"/>Cheers,
    evnafets

Maybe you are looking for

  • New to bt - vision replay help needed

    Hello to you all i'm new to bt. I recently purchased the £17.99 phone, tv, & broadband package. This package was meant to include free & unliimited access to vision replay. Problem is i'm unable to get bbc iplayer programs at all, & it wants to charg

  • How do i "cut" parts out of tracks in i-tunes

    ages ago when i 1st got an i-pod someone told me how to selectively cut unwanted parts (ie 20 mins of silence) out of tracks in i-tunes..... for example so that when i have "something in the way" from "nevermind" in my i-tunes instead of the track be

  • Global color replace in Keynote '09

    I use my own palette for my keynote presentations, using each color for a specific purpose consistently throughout. But I usually want to fine-tune these colors when I ultimately connect to the projector I'm going to present on, to compensate for bot

  • Remove a task from a ScheduledThreadPoolExecutor

    hi , i have a small program that creates a ScheduledThreadPoolExecutor , and insert one Runnable task into it. the task should be preformed for given time and then cancelled. but for some reason i can't remove the task from the thread pool , and it k

  • Upgrade Fixed Assets from 10.7 SC to 11i

    I would to gain some knowledge from anyone who has been through a Fixed Assets Upgrade from 10.7 SC to 11i. In particular, I need to understand the steps involved, estimate for the total task, lesson learnt, any technical issues, any relevant trainin