Eclipse using custom library tag error

Hello, I have the following erro when I execute my index.jsp page on eclipse configured for tomcat
type Rapport d'exception
message
description Le serveur a rencontr� une erreur interne () qui l'a emp�ch� de satisfaire la requ�te.
exception
org.apache.jasper.JasperException: Impossible de compiler la classe pour la JSP:
Une erreur s'est produite � la ligne: 14 dans le fichier jsp: /index.jsp
tagAuthentification cannot be resolved to a type
11: </head>
12: <body>
13: 
14: <mt:AuthenTag>
15:      <script type="text/javascript" src="excanvas.js"></script>
16:      <script type="text/javascript" src="json2.js"></script>
17:      <script type="text/javascript">
Une erreur s'est produite � la ligne: 14 dans le fichier jsp: /index.jsp
tagAuthentification cannot be resolved to a type
11: </head>
12: <body>
13: 
14: <mt:AuthenTag>
15:      <script type="text/javascript" src="excanvas.js"></script>
16:      <script type="text/javascript" src="json2.js"></script>
17:      <script type="text/javascript">
Une erreur s'est produite � la ligne: 18 dans le fichier jsp: /index.jsp
tagMapTree cannot be resolved to a type
15:      <script type="text/javascript" src="excanvas.js"></script>
16:      <script type="text/javascript" src="json2.js"></script>
17:      <script type="text/javascript">
18:           <mt:mapTree noUsager="${sessionScope.userId}" />
19:      </script>
20:      <script type="text/javascript" src="mindmap.js"></script>
21:     <div style="position: relative" id="mainDiv">
Une erreur s'est produite � la ligne: 18 dans le fichier jsp: /index.jsp
tagMapTree cannot be resolved to a type
15:      <script type="text/javascript" src="excanvas.js"></script>
16:      <script type="text/javascript" src="json2.js"></script>
17:      <script type="text/javascript">
18:           <mt:mapTree noUsager="${sessionScope.userId}" />
19:      </script>
20:      <script type="text/javascript" src="mindmap.js"></script>
21:     <div style="position: relative" id="mainDiv">
Stacktrace:
     org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:92)
     org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:330)
     org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:423)
     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.service(JspServletWrapper.java:317)
     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)Here is my index.jsp page code
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@ taglib uri="http://java.sun.com/jsp/jstl/sql" prefix="sql"%>
<%@ taglib uri="/WEB-INF/tld/Authentification.tld" prefix="mt"%>
<%@ page isELIgnored="false" %>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>MindMap - Lab JSP2</title>
</head>
<body>
<mt:AuthenTag>
     <script type="text/javascript" src="excanvas.js"></script>
     <script type="text/javascript" src="json2.js"></script>
     <script type="text/javascript">
          <mt:mapTree noUsager="${sessionScope.userId}" />
     </script>
     <script type="text/javascript" src="mindmap.js"></script>
    <div style="position: relative" id="mainDiv">
    <canvas width="4000" height="4000" id="mindMap"/>
</div>
</mt:AuthenTag>
</body>
</html>Now here my tld xml file
<?xml version = '1.0' encoding = 'windows-1252'?>
<taglib 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-jsptaglibrary_2_0.xsd"
    version="2.0">
<display-name>Authentification</display-name>
  <tlib-version>1.0</tlib-version>
  <short-name>Authentification</short-name>
  <uri>MesTags</uri>
  <tag>
    <description>Tag qui affiche une fenetre d'authentification</description>
    <name>AuthenTag</name>
    <tag-class>tagAuthentification</tag-class>
    <body-content>scriptless</body-content>
  </tag>
    <tag>
    <description>Tag contient les ements necessaire pour construire un arbre</description>
    <name>mapTree</name>
    <tag-class>tagMapTree</tag-class>
    <body-content>tagdependent</body-content>
    <attribute>
      <description>Le numero usage</description>
      <name>noUsager</name>
      <required>true</required>
       <rtexprvalue>true</rtexprvalue>
      <type>int</type>
    </attribute>
  </tag>
</taglib>And finally here is a screenshot of my eclipse tree page :
My project screenshot : http://www.membres.lycos.fr/patatesaufour/eclipsePath.JPG
thank you.

Hello, I have the following erro when I execute my index.jsp page on eclipse configured for tomcat
type Rapport d'exception
message
description Le serveur a rencontr� une erreur interne () qui l'a emp�ch� de satisfaire la requ�te.
exception
org.apache.jasper.JasperException: Impossible de compiler la classe pour la JSP:
Une erreur s'est produite � la ligne: 14 dans le fichier jsp: /index.jsp
tagAuthentification cannot be resolved to a type
11: </head>
12: <body>
13: 
14: <mt:AuthenTag>
15:      <script type="text/javascript" src="excanvas.js"></script>
16:      <script type="text/javascript" src="json2.js"></script>
17:      <script type="text/javascript">
Une erreur s'est produite � la ligne: 14 dans le fichier jsp: /index.jsp
tagAuthentification cannot be resolved to a type
11: </head>
12: <body>
13: 
14: <mt:AuthenTag>
15:      <script type="text/javascript" src="excanvas.js"></script>
16:      <script type="text/javascript" src="json2.js"></script>
17:      <script type="text/javascript">
Une erreur s'est produite � la ligne: 18 dans le fichier jsp: /index.jsp
tagMapTree cannot be resolved to a type
15:      <script type="text/javascript" src="excanvas.js"></script>
16:      <script type="text/javascript" src="json2.js"></script>
17:      <script type="text/javascript">
18:           <mt:mapTree noUsager="${sessionScope.userId}" />
19:      </script>
20:      <script type="text/javascript" src="mindmap.js"></script>
21:     <div style="position: relative" id="mainDiv">
Une erreur s'est produite � la ligne: 18 dans le fichier jsp: /index.jsp
tagMapTree cannot be resolved to a type
15:      <script type="text/javascript" src="excanvas.js"></script>
16:      <script type="text/javascript" src="json2.js"></script>
17:      <script type="text/javascript">
18:           <mt:mapTree noUsager="${sessionScope.userId}" />
19:      </script>
20:      <script type="text/javascript" src="mindmap.js"></script>
21:     <div style="position: relative" id="mainDiv">
Stacktrace:
     org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:92)
     org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:330)
     org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:423)
     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.service(JspServletWrapper.java:317)
     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)Here is my index.jsp page code
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@ taglib uri="http://java.sun.com/jsp/jstl/sql" prefix="sql"%>
<%@ taglib uri="/WEB-INF/tld/Authentification.tld" prefix="mt"%>
<%@ page isELIgnored="false" %>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>MindMap - Lab JSP2</title>
</head>
<body>
<mt:AuthenTag>
     <script type="text/javascript" src="excanvas.js"></script>
     <script type="text/javascript" src="json2.js"></script>
     <script type="text/javascript">
          <mt:mapTree noUsager="${sessionScope.userId}" />
     </script>
     <script type="text/javascript" src="mindmap.js"></script>
    <div style="position: relative" id="mainDiv">
    <canvas width="4000" height="4000" id="mindMap"/>
</div>
</mt:AuthenTag>
</body>
</html>Now here my tld xml file
<?xml version = '1.0' encoding = 'windows-1252'?>
<taglib 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-jsptaglibrary_2_0.xsd"
    version="2.0">
<display-name>Authentification</display-name>
  <tlib-version>1.0</tlib-version>
  <short-name>Authentification</short-name>
  <uri>MesTags</uri>
  <tag>
    <description>Tag qui affiche une fenetre d'authentification</description>
    <name>AuthenTag</name>
    <tag-class>tagAuthentification</tag-class>
    <body-content>scriptless</body-content>
  </tag>
    <tag>
    <description>Tag contient les ements necessaire pour construire un arbre</description>
    <name>mapTree</name>
    <tag-class>tagMapTree</tag-class>
    <body-content>tagdependent</body-content>
    <attribute>
      <description>Le numero usage</description>
      <name>noUsager</name>
      <required>true</required>
       <rtexprvalue>true</rtexprvalue>
      <type>int</type>
    </attribute>
  </tag>
</taglib>And finally here is a screenshot of my eclipse tree page :
My project screenshot : http://www.membres.lycos.fr/patatesaufour/eclipsePath.JPG
thank you.

Similar Messages

  • Custom Create tag error when VI is compiled

    MY vi runs fine in development mode but generates a custom create tag error - 33164 when running the compiled version

    The VI was developed with LabView 6.0.2 and we are using Fieldpoint explorer version 3.0.1.
    The VI worked fine but we were having problems with our FP-1600 because it could not maintain an Ethernet connection.
    NI sent us a new FP-1601 and the ethernet design flaws of the FP-1600 were no longer causing us problems.
    Power was cycled on the system a day or so after that and ever since then the compiled version of the same VI will generate the afore mentioned error code, but the VI works when run in debugger/development mode. Re compiled, re-installed FP explorer, re imported fieldpoint tags; None of these worked.

  • Problems installing when using custom library

    I can't install generated application on iPad (IOS report installation error), when I use custom library. Before DPS App Builder v25 all was OK, problems started after 1 feb, when I installed new AppBuilder. I can't install any application (generated from AppBuilder v25) with custom library, incl. reference applications from devnet articles.

    Hi, Neil!
    Thank you for your attantion to my problem. Explain me successful installation on IOS when I use standard library with identical certificates.
    IOS reports "installation failed" only when I switch to custom library.
    P.S.: our friend with another DPS Pro account have the same error. He tries to create 2 "Pro" applications, first installation success, second fail. All certificates and mobileprovisions created yesterday...
    Message was edited by: Yuriy Petrov

  • Using custom library?

    Dear all,
    Is it possible to use custom library to enforce users to input some information when user save the records? For example: In the purchase order form (standard), any functions to enforce user to enter comment (another custom form) when save the record changes.
    Best Regards,
    Amy
    Edited by: amychan60 on Nov 24, 2008 11:38 PM

    Although I am not a developer, I believe this is possible using a "zoom" function in CUSTOM.pll. There are some details available in ML Docs 73505.1, 744065.1 and 438787.1. There may be more details in the Application Developer Guide for 11i
    HTH
    Srini

  • Default Value to Form using Custom Library?

    In Custom Form A, in the global variables i have store the value , How to populate default value to Form B using in custom library.
    I tried using COPY, but its not working?
    COPY('GLOBAL.EXP_PRO',':IT_QF.PROJECT_NUMBER');
    Is their any other way to do it?
    Thanks!

    Zaafran Ahmed  Posted: Oct 26, 2010 2:05 PM
    COPY(:GLOBAL.EXP_PRO,'IT_QF.PROJECT_NUMBER');user12207320 Posted: Oct 26, 2010 2:40 PM
    I tried it throws a error,bad bind variable error >
    This will throw an error because the COPY built-in takes 2 Varchar2 parameters (Source and Destination). When you use the COPY built-in, you pass references to the objects not the objects themselves. Therefore, the reference to the global variable :GLOBAL.EXP_PRO would have to be passed as a string to COPY.
    Looking at your original post, you have a COLAN in the destination string. Try the following:
    COPY('GLOBAL.EXP_PRO',':IT_QF.PROJECT_NUMBER');
    /* Change this statement to: */
    COPY('GLOBAL.EXP_PRO','IT_QF.PROJECT_NUMBER');Craig...

  • Default Value using Custom Library?

    In Custom Form A, in the global variables i have store the value , How to populate default value to Form B using in custom library.
    I tried using COPY, but its not working?
    COPY('GLOBAL.EXP_PRO',':IT_QF.PRO_NUM');
    Is their any other way to do it?
    Thanks!

    Zaafran Ahmed  Posted: Oct 26, 2010 2:05 PM
    COPY(:GLOBAL.EXP_PRO,'IT_QF.PROJECT_NUMBER');user12207320 Posted: Oct 26, 2010 2:40 PM
    I tried it throws a error,bad bind variable error >
    This will throw an error because the COPY built-in takes 2 Varchar2 parameters (Source and Destination). When you use the COPY built-in, you pass references to the objects not the objects themselves. Therefore, the reference to the global variable :GLOBAL.EXP_PRO would have to be passed as a string to COPY.
    Looking at your original post, you have a COLAN in the destination string. Try the following:
    COPY('GLOBAL.EXP_PRO',':IT_QF.PROJECT_NUMBER');
    /* Change this statement to: */
    COPY('GLOBAL.EXP_PRO','IT_QF.PROJECT_NUMBER');Craig...

  • How to use custom defined tags in uix in jdevloper 10g production

    can any one give me sample application for how to work with custom defined tags in uix with jedevloper 10g production
    thanks Venkat

    Hi Venkat,
    Maybe the reason for no one answering is because of lack of information in your post? What are you trying to do? Are you using JSP or UIX XML? Have you checked the online jdeveloper documentation? Have you checked the doc available in the JDeveloper release? Before we have more information we can't help you. Sorry
    Thanks,
    Jonas
    JDev Team

  • Refresh form using Custom Library

    I was wondering if there is a way to refresh a form after an insert or update of records, using custom libraries.
    Thanks

    Zaafran Ahmed  Posted: Oct 26, 2010 2:05 PM
    COPY(:GLOBAL.EXP_PRO,'IT_QF.PROJECT_NUMBER');user12207320 Posted: Oct 26, 2010 2:40 PM
    I tried it throws a error,bad bind variable error >
    This will throw an error because the COPY built-in takes 2 Varchar2 parameters (Source and Destination). When you use the COPY built-in, you pass references to the objects not the objects themselves. Therefore, the reference to the global variable :GLOBAL.EXP_PRO would have to be passed as a string to COPY.
    Looking at your original post, you have a COLAN in the destination string. Try the following:
    COPY('GLOBAL.EXP_PRO',':IT_QF.PROJECT_NUMBER');
    /* Change this statement to: */
    COPY('GLOBAL.EXP_PRO','IT_QF.PROJECT_NUMBER');Craig...

  • I cant access my custom library. "error:Package X does not exist".

    First of all, there is nothing wrong with my sourcecode. I've checked it and it runs fine when my client class and the rest of the classes is thrown into the same directory together.
    Thing is, I have a lot of reusable code,which works, and I have to my best ability followed guidelines on the net how to put them into a liberary and use the import statement in the client to make use of that liberary. My client class still cant find the library, and yes it has the proper import statement. It just tells me that the package does not exist. I've tried to compress the library to a jarfile:
    jar cf mittBibliotek.jar *
    , and I've tried treating it as it is(a directory with java files, each one containing the proper package statement).
    First I tried to setup my library using the Netbeans IDE 5.0.
    (Right click the libraries node in the project iew->properties>-Libraries->Add Jar/Folder) Source code still cant find any of the classes contained in the jar file.
    The netbeans interface can be a bit involved, so I switched to BlueJ just to see if my client class was able to find anything (Tools->preferences->Libraries->add).
    I've tried multiple variations trying to explain to the the source code where the liberary is located. Should the files in the library be compiled before it can be used as a jar? Have I set up my classpath correctly? I'm using windows XP, and I've placed the classpath by going to system properties-advanced tab->envirornment variables and typing it under the system variables.Is
    this wrong? Should it be someplace else? Haven't BlueJ or netbeans their own setup for classpaths? And why the need to type anything else in the classpath, when the dot in CLASSPATH=.;c:\Java;c:\suff;c:\andSoOn; actually means everything? Would it not be the same to just
    write CLASSPATH=.;?
    I seem to be getting off topic here, sorry about that. All I want is to be able to use my class library with my source code.
    PS: I've used the terms "source code" and "client class" arbitrarely. They are both the same.
    Message was edited by:
    javabra

    Have I set up my classpath
    correctly? I'm using windows XP, and I've placed the
    classpath by going to system properties-advanced
    tab->envirornment variables and typing it under the
    system variables.Is
    this wrong? That can work, but changing the CLASSPATH environment variable every time you want to run a program isn't recommended. Instead, you should you use the -classpath option of the javac command to compile your programs. Here is the syntax
    C:> javac -classpath C:\folder1;C:\folder2\subfolder1 MyClass.java
    Tip: construct your command in a text editor, so if it doesn't work, you can modify it and then copy and paste it into your DOS window. That will save you from having to retype the whole command in the DOS window.
    And
    why the need to type anything else in the classpath,
    when the dot in
    CLASSPATH=.;c:\Java;c:\suff;c:\andSoOn; actually
    means everything? Would it not be the same to just
    write CLASSPATH=.;? No. The dot means to look in the current directory. Suppose you have a DOS window open and you change directories to an existing directory on your computer called C:\folder1\subfolder1:
    something here>cd C:\folder1\subfolder1
    C:\folder1\subfolder1>Now, let's say you want to compile the MyClass.java file and it's in subfolder1. Also, suppose MyClass.java imports a class in folder1. If you use this command to compile:
    C:\folder1\subfolder1>
    javac -classpath . MyClass.java
    the current directory is C:\folder1\subfolder1 (note: I put the javac command on a different line for clarity). The -classpath is the dot, which instructs javac to look in the current directory for the classes referred to in the program MyClass.java. Since by assumption the class referred to by MyClass.java is not in subfolder1, the program won't compile. Also, the current directory does not include files in subdirectories of the current directory.
    Unfortunately, one of the biggest barriers to learning java is learning how to compile and execute programs. I still have trouble, and I constantly revise the rules I follow to take into account some new thing I stumbled on. Here are the current rules I follow:
    =================================
    EXAMPLE DIRECTORY STRUCTURE:
    D:\javaStuff\aFolder\TryPackage.java
    TryPackage.java is in the aFolder package and references the Line and Point classes. Line.java and Point.java are in the Geometry package, and they reside in the Geometry folder like this:
    C:\moreJava\Packages\Geometry\Line.java
    ====================================
    COMPILING: Use cd to change the DOS prompt to the current directory of the FILE you are trying to compile. In the -classpath option, include the classpaths to packages of all CLASSES referenced in your program whether they are in an import statement or not. If the file you want to compile is in the current directory, the compiler can find your FILE--it uses "." for the default location. To compile TryPackage.java above use this command:
    D:\javaStuff\aFolder>
    javac -classpath C:\moreJava\Packages filename
    where filename = TryPackage.java. If your FILE is not in the current directory, then you need to use the full path name of the FILE like this: filename = d:\javaStuff\aFolder\TryPackage.java
    RUNNING: In -classpath, include all paths to all packages of the classes USED in the program, which includes the path to the package of the .class file you are trying to run. If the .class file you are trying to run is not in a named package, then it is part of the default package, and the -classpath for that package must be included. For the default package, the -classpath equals the path to the directory that contains the file. If TryPackage.java did not have a package statement, the -classpath to the default package would be D:\javaStuff\aFolder. In addition, you need tack on the package name to the beginning of the .class file you compiled. Here is how you would run the TryPackage program:
    D:\javaStuff\aFolder>
    java -classpath C:\moreJava\Packages;D:\javaStuff filename
    where filename = aFolder.TryPackage. It does not matter if the .class file you are trying to run is in the current directory or not. The preceding command will work from any directory.
    ADDITIONAL RULES: You don't necessarily have to specify the full path name to the file when you are at a prompt other than the directory which contains the file. Instead, you can just complete the path to the file from the current directory, i.e. the prompt. For instance, if this is the directory structure:
    C:
    ----javaPrograms
    -----------Pack1
    -----------------DemoA.java
    and you are at the prompt:
    C:\javaPrograms>
    You can compile DemoA.java with this command:
    javac Pack1\DemoA.java
    Note that if you add the prompt directory to the path specified for the file, you get:
    C:\javaPrograms + Pack1\DemoA.java = C:\javaPrograms\Pack1\DemoA.java
    which results in the full path name to the file. So, javac can use the prompt directory as the starting point for path to the file you are compiling.
    The same thing works for the java command when you execute your program. Assume you are at the C:\ prompt:
    C:\>
    You can compile the program using:
    javac javaPrograms\Pack1\DemoA.java
    (Note: I've only completed the path to the file from the current directory). I can execute the program using:
    java -classpath javaPrograms Pack1.DemoA
    The java command completes the path to package. The prompt directory added to the -classpath is:
    C:\ + javaPrograms = C:\javaPrograms
    which is the full path to the parent directory of the package.

  • StandardView button is being selected in the ribbon even user clicks on Datasheet view of a library created using custom template.

    Hi,
    We have an issue with one of the library created using custom library template. Eventhough user selects Datasheet view from the ribbon it's showing Standard view button as selected. However content is being correctly in the grid view. Can some one help me
    in sorting this issue.
    NB: Functionality is working as expected with library created using OOB document library template.
    In the above screen shot Datasheet was selected.but Standard View was highlighted. 
    Is that something should be done in schema.xml file?
    Thanks,
    Venugopal

    Hi Venugopal Pulagam,
    This seems a weird issue, based on my understanding, it is not caused by SharePoint. I haven’t seen that there is settings in list instance schema file can effect this to happen.
    To narrow down this issue, would you please check whether this can be reproduced in other type of browser?
    And as this only happens for this specific library, please create a new list based on the template, check the result.
    How you create the list template, please share the steps to reproduce the issue.
    Thanks,
    Qiao Wei
    TechNet Community Support

  • Error 7 when use user library

    How can i use this library without error 7
    I'm using labview 8.6 and win 7
    Attachments:
    SoundVIs.zip ‏357 KB

    Also, Windows 7 is only formally supported for LV 2009 and 2010. Errors with 8.6 may or may not be fixable (usually it works fine in compatibility mode, though)
    Verne D. // LabVIEW & SignalExpress Product Support Engineer // National Instruments

  • Illegal Access Error : using Custom Tags

    Ive a very simple custom tag that try to print curent date on webpage but when I try to run it gives me following error
    java.lang.IllegalAccessError: try to access class com.sun.xml.tree.ParentNode from class org.apache.jasper.compiler.TagLibraryInfoImpl
    java.lang.IllegalAccessError: try to access class com.sun.xml.tree.ParentNode fr
    om class org.apache.jasper.compiler.TagLibraryInfoImpl
    Here is my jsp code
    <html>
    <head>
    <%@ taglib uri="http://127.0.0.1:8080/examples/cdate.tld" prefix="examples"%>
    </head>
    <body>
    The file is <examples:cdate/>
    </body>
    </html>
    here goes cdate.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>examples</shortname>
    <uri>http://www.mycompany.com/taglib</uri>
    <info>An example tag library</info>
    <tag>
    <name>cdate</name>
         <tagclass>datex.DateTag</tagclass>
    <info>Returns Current Date</info>
    </tag>
    </taglib>
    here is web.xml entry
    <taglib>
         <taglib-uri>
              http://127.0.0.1:8080/examples/WEB-INF/cdate.tld
         </taglib-uri>
         <taglib-location>
              /WEB-INF/cdate.tld
         </taglib-location>
    </taglib>
    here is the taghandler class code
    package datex;
    import java.io.*;
    import java.util.Date;
    import javax.servlet.jsp.*;
    import javax.servlet.jsp.tagext.*;
    public class DateTag extends javax.servlet.jsp.tagext.TagSupport {
    private String date;
    public int doStartTag() throws JspException {
              StringBuffer html = new StringBuffer();
              date = new Date().toString();
         html.append("Current Date : ");
         html.append(date);
         try {
         pageContext.getOut().write(html.toString());
         } catch (IOException ioe) {
         throw new JspException(ioe.getMessage());
    return EVAL_BODY_INCLUDE;
    public void setDate(String s) {
    this.date = s;
    can any one plz hlp me

    when i put the struts tags into the subforld such as /web-inf/tags , the jsp page tell me parsing tags error.
    should i must put all this tags in the right fold?
    i configure the url location in the web.xml as the route /web-inf/tags/....tld why invalid?

  • Custom Tag Error with Weblogic SP9

              Hi
              I seem to be having a problem with a custom tag that I wrote. When I run the JSP
              on WLS (without a service pack), the generated java code uses the weblogic.utils.StringUtils
              class to interprete jsp expressions that are passed into the custom tag's attribute
              (on the JSP). The method called on this StringUtils class is valueOf(). This method
              in essence makes sure that the result of the expression is not null and then subsequently
              calls a toString() on the value. Note that if the value is null it simply returns
              an empty string.
              The problem is that when we go to service pack 9, this method is not called (StringUtils.valueOf()).
              Now the problem arises if first of all the result of the expression statement
              in the custom tag definintion (on the JSP) is null. Secondly, it will also error
              out when the setter method is called within the custom tag, if the object returned
              from the expression does not match the one that is expected by the tag... in our
              case a String.
              Here's a sample usage of the tag:
              <wescombop:selectTag
              selectName="buildingNumber"
              selectedItem="<%= buildingJB.getBuildingNumber()%>"
              trimSelectedItem="true"
              selectTagDataName="buildingNumberDataAttribute" />
              Note: buildingJB.getBuildingNumber() returns BigDecimal
              Here's a snipett of the line generated java:
              * Without the service pack
              comwestfieldgrp_wescom_bop_view_tag_SelectTag_1.setSelectedItem(weblogic.utils.StringUtils.valueOf(buildingJB.getBuildingNumber()));
              *With Service Pack 9
              comwestfieldgrp_wescom_bop_view_tag_SelectTag_1.setSelectedItem(buildingJB.getBuildingNumber());
              Note: The setSelectedItem() method expects a String object as a parameter, so
              the code with service pack 9 will result in a compilation error, since buildingJB.getBuildingNumber()
              returns a BigDecimal.
              Let me know if you need more explanation.
              Has anyone experience this problem before... Any help would be deeply appreciated.
              Thanks all.
              Niran
              

              Modify the <cewolf:param> tag.
              <cewolf:chart id="confchart" title="Reports" type="bar3d" yaxislabel="Time"> <cewolf:data>
              <cewolf:producer id="report"> <cewolf:param name="type" value="all" > </cewolf:param>
              </cewolf:producer> </cewolf:data> </cewolf:chart>
              "Balakrishnan" <[email protected]> wrote:
              >
              >We are using cewolf charting library in weblogic 7.0. The charting library
              >is implemented
              >as custom jsp tag library module.
              >
              >However, when the use the tag for displaying the chart, weblogic is producing
              >this compiler error.
              >
              >/reports/reportsView.jsp(108): no corresponding open tag for tag extension
              >close:
              >//[ null; Line: 108]
              >
              >Here's the corresponding source of the jsp file:
              >
              > <cewolf:chart id="confchart" title="Reports" type="bar3d" yaxislabel="Time">
              > <cewolf:data>
              > <cewolf:producer id="report">
              > <cewolf:param name="type" value="all" /> (<-- Error occurs
              >here.
              >Line no: 108)
              > </cewolf:producer>
              > </cewolf:data>
              > </cewolf:chart>
              >
              >I've also checked the corresponding tld file and it is in place.
              >
              >The same code without any modifications is working fine in tomcat. Can
              >you please
              >let me know what needs to be corrected to make this work?
              

  • PO PDF errors when using custom RTF Template, but works with custom xsl

    Hi,
    I have done following set up steps for PO PDF
    Setup / Organizations / Purchasing Options / Control TAB / set 'PO Output Format' = 'PDF'
    setup / purchasing / document types / select "Standard Purchase Order" / Set the Document Type Layout to your new template.
    But with the RTF template the PO Output for communication completes with error. However when I use custom XSL-FO style sheet, it works.
    Can anyone help me how I can make my RTF work? When click on the preview of the template, it shows the PDF output though. Am I missing any other set up steps? Your help is greatly appreciated.
    Thanks,
    Sharmila

    I think the only way to have control over the html output is to enclose the tags or any information within a borderless table and align the text and table as necessary...
    Thanks,
    Bipuser

  • Can i make own formatted textbox using custom tag

    Hai,
    Can i create own format textbox similar to vb activex control.for example i want make own formatted textbox for enter only numeric value if entry any alpha value it's show error.Is this possible using custom tag

    Hai,
    Can i create own format textbox similar to vb
    activex control.for example i want make own
    formatted textbox for enter only numeric value if
    entry any alpha value it's show error.Is this
    possible using custom tag
    If you mean a custom text box in a web page without an applet (in other words an html component), then Java has nothing to do with it. And by mentioning activex (even only in a 'like' comparison), and custom tag, you are once again hinting that you want an html component. I think you need to place your request to a JavaScript Forum, which, once again, has absolutely nothing to do with Java.
    A "custom tag" in JSP is not an HTML Tag. It may look a little like an html or xml tag, but it is evaluated on the server side. The control you need must be executed on the client side, which, once again, tells me you need to post to a JavaScript forum.

Maybe you are looking for

  • Install on MacMini (config'ed for server)

    Greetings, I am looking for a way out of the MacMini with SL Server that I bought 6 months ago and has been nothing but a drain of my time and still doesn't work. Someone has suggested just installing Snow Leopard on the machine. Will that work? SOme

  • Scheduling a job to send e-mails in Oracle 10g

    Hi, Our application has a scheduled job that runs every hour to fetch data from another application. The SP which this job calls has logic to send e-mails at various stages of the job execution about the status of the job execution. Sometimes, the e-

  • Exporting by Firewire - no audio - HELP!

    I am trying to export a FCP project to mini dv tape and I get no audio; only picture. Tried w/multiple decks and all export settings are on default. Thanks

  • While installing OBIEE on linux box

    Hi, while installing OBIEE on linux box i am getting below error ./setup.sh Unable to load the launcher file index. Cannot open launcher file. can any one let me know how to reslove this issue... Regards Venkata

  • I am unable to unlock my ipad, it says "connct to itunes" any help?

    i am unable to unlock my ipad, it says"connect to itunes", any help?