Jdev 10.1.3.0.4 jsp 2.0 taglib support

hi,
i am trying to use ZK jsp tag library(zkoss.org) for a project. ZK taglib needs jsp2.0 support. i have create a web project with jsp2.0 and servlet2.4.
then i install taglib to the project and put required libraries under web-inf/lib.
here is a simple jsp: (just imports taglib)
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ page contentType="text/html;charset=UTF-8"%>
<%@ taglib uri="http://www.zkoss.org/dsp/web/core" prefix="zkjsp-functions"%>
<%@ taglib uri="http://www.zkoss.org/jsp/zul" prefix="zuljsp"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<title>Hello ZK World</title>
</head>
<body></body>
</html>
when i rebuild the project i get:
Error(4): Invalid body-content value in TLD: SCRİPTLESS.
Error(5): Invalid body-content value in TLD: SCRİPTLESS.
Error(5): "http://www.zkoss.org/jsp/zul" is not a registered TLD namespace
am i missing something?
does jdeveloper 10g really supports jsp2.0 taglibs?
regards, Engin.

hi,
jsp tag library definitions exist both at global jsp tag libs and project tag libs.
my pc regional setting are turkish. i have changed then to english. then the error changed to:
Error(4): Invalid body-content value in TLD: NONE.
Error(5): Invalid body-content value in TLD: NONE.
i guess the taglib file contains none value while its schema definition does not allow this? could it be the reason for last error? i found some none values at tld file.
regards, engin.

Similar Messages

  • How does the JSP container resolve taglib URI

    My application uses JSPs which have taglibs. The taglibs use absolute URIs(http://java.sun.com/jstl/core). I noticed that if the JAR which would resolve this taglib, which is standard.jar, were to be placed in the <domain>/lib folder, the application would not be able to resolve it. If i packaged the JAR with the taglib definitions in the WEB-INF/lib folder of the WAR file, the application worked fine. Any clues on if this is expected behaviour? I have some other taglibs which refer to http://java.sun.com/jsf/html and jsf/core - these seem to be resolved fine by placing the jsf-impl.jar in the <domain>/lib folder.
              Thanks
              Ramdas

    hello,
    unfortunatly it is not quite clear what type of security you want to achieve ...
    a) either securing the report for unauthorized running against different data
    or
    b) securing the stream between the server and the client using HTPPS
    for case a) you will have to code the logic into the report so a user can only run the report against his data.
    neither HTTPS nor the CGICMD.DAT can help you in this case. you could even use the row-level-security option of the database to achieve that.
    regards,
    the oracle reports team

  • Displaying Hashmap values in JSP using struts taglib

    Please can any one provide me the solution for the below query,
    I have stored hasmap key as string and value as arraylist, can any one suggest how to display the hashmap values(arraylist) in table format in jsp using struts taglib.
                             HashMap hsMap=new HashMap();
                             ArrayList arrList = new ArrayList();
                             arrList.add("filesize");
                             arrList.add("filelength");
                              hsMap.put("filename",arrList);
               In jsp i want to display filename and filesize in table format.

    Read this documentation:
    http://struts.apache.org/struts-doc-1.2.x/userGuide/struts-logic.html#iterate

  • How can I access to an EJB from a JSP, using a taglib?

    I'm trying to access to an EJB from a JSP using a taglib,
              and I get the example in
              http://java.sun.com/j2ee/j2sdkee/techdocs/guides/ejb/html/Advanced5.html.
              But I colund't run this example because in the weblogic Log appears many
              errors when I run the JSP.
              Can you help me?
              

    Backing files is an option. If you need to do it from the controller, you
    could use the Forward object. The forward object constructor can take a URL
    object as a parameter. This should do the trick.
    Regards,
    Kunal
    "Panji Aryaputra" <[email protected]> wrote in message
    news:[email protected]..
    Hi, you have to use backing file to get what you want. In my case, I am
    using a page backing file. Perhaps a portlet backing file can do thatalso.
    Cmiiw, the redirect header makes the page redirected only if the httpheader
    has not been sent to client. In your case, the header has been sent (i.e.
    the portal header.jsp has been displayed, etc). So the header need to be
    sent before anything else sent to client browser. This is where thebacking
    file comes handy.
    hth
    panji.a
    "A Hagen" <[email protected]> wrote in message
    news:[email protected]..
    I'm using Bea Workshop 8.1 and trying to perform a redirect from inside
    a
    portlet
    using HTTPServletResponse.sendRedirect(String url)... but nothing
    happens
    I tryed the same trick with a simple JSP, and that's ok, but portal
    pages
    obviously
    catch the redirect somehow.
    Please could you tell the correct way of redirecting the whole browser
    to
    another
    page from inside portlets?
    Thanks!!!

  • JDev 1014 JSF: difference between JSF JSP Page and JSF JSP Document ?

    Hi all here ;)
    I've been using the new JDev 1014 for some days now, find it very useful, but still... the help docs are not very helpful in one (minor) point: when you create a new JSF JSP item, you have to select either "JSP Page" or "JSP Document". Now, I see the difference in the created code, but what's the difference in it's usage?
    thanx in advance
    Thomas Nagel

    Thomas,
    there is none. Its just that the document has an XML format and the page is a typical JSP page. Its nothing specific in JDeveloper and just a matter of taste I guess.
    Frank

  • To JDev expert. Need help with JSP, pls.

    Hi all.
    I have a strange problem. Only one JSP in my entire application fails to appear when I debug with local (embeded) OC4J. These are the first lines of the exception message:
    Exception:
    java.lang.NoClassDefFoundError: _addFile
    java.lang.Class java.lang.ClassLoader.defineClass0(java.lang.String, byte[], int, int, java.security.ProtectionDomain)
    native code
    The class _addFile is generated from addFile.jsp and is available in the output directory. Production application doesn't display the same behavior, this only happens in DEBUG mode in JDeveloper.
    OS: win2000
    JDK: 1.3.1
    JDevaloper is 9.0.2.. something.
    Struts
    Thanks people.

    1) The main page should have a <f:view> tag which wraps any of the JSF tags.
    2) The include page should have a <f:subview> tag with an unique ID (thus, this should not be placed in the main page!).
    3) The UIInput and UICommand elements have to be placed in a <h:form> tag.
    Considering those facts, your structure should rather look like:
    main.jsp<f:view>
        <jsp:include page="menu.jsp" />
    </f:view>menu.jsp<f:subview id="menu">
        <h:form>
            <h:commandLink value="Salir" action="salir" />
        </h:form>
    </f:subview>

  • JSP xml syntax, taglibs not found

    Hello,
    I have JSPs look so:
    <?xml  version="1.0" encoding="ISO-8859-1"?>
    <!DOCTYPE jsp:root [
    <!ENTITY nbsp "&#x00A0;">
    ]>
    <jsp:root version="1.2"
              xmlns:jsp="http://java.sun.com/JSP/Page"
              xmlns:afc="http://afclabs.com/tags/afc"
              xmlns:c="http://java.sun.com/jstl/core">
    <jsp:directive.page language="java" contentType="text/html; charset=iso-8859-1"/>
    <afc:page>
    <head>
    <title></title>
    </head>
    <body>
    </body>
    </afc:page>
    </jsp:root>[/code:1:449443877c]
    If I use Tag Libraries panel, to insert , for example <c:out> tag, then the tag will be inserted along with this line: <%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %>, like so:
    [code:1:449443877c]<?xml  version="1.0" encoding="ISO-8859-1"?>
    <!DOCTYPE jsp:root [
    <!ENTITY nbsp "&#x00A0;">
    ]>
    <%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %>
    <jsp:root version="1.2"
              xmlns:jsp="http://java.sun.com/JSP/Page"
              xmlns:afc="http://afclabs.com/tags/afc"
              xmlns:c="http://java.sun.com/jstl/core">
    <jsp:directive.page language="java" contentType="text/html; charset=iso-8859-1"/>
    <afc:page>
    <head>
    <title></title>
    </head>
    <body>
    <c:out value="test" default="test"/>
    </body>
    </afc:page>
    </jsp:root>[/code:1:449443877c]
    I don't need this line, because the tag libraries are defined in the <jsp:root> tag.
    How can I stop the automatically insert of this line ?
    How to make, that the Nitrox "undestand" this tag:
    [code:1:449443877c] <jsp:root version="1.2"
              xmlns:jsp="http://java.sun.com/JSP/Page"
              xmlns:afc="http://itoolabs.com/tags/afc"
              xmlns:c="http://java.sun.com/jstl/core">[/code:1:449443877c] ?
    Thanks                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

    http://java.sun.com/products/jsp/docs.html
    To my knowledge, only Tomcat 5 will use the 2.0 specs. Other servers will use the 1.2 spec, but the server docs should state which JSP spec they support.
    I found the 'Card' PDF the most helpfull. The 'Reference' is quick and easy, but you don't get as much info as quickly, IMO (for example I couldn't find the information to help here in the 'Reference' but it was right on top in the 'Card')

  • Custom taglib support in Java Studio Creator (JSP-mode)?

    I want to use jstl-1.1 taglib in my project. - to do that I need to write:
    <jsp:root version="1.2" xmlns:c="http://java.sun.com/jsp/jstl/core" ...>but when I have done so I didn't found any support for jstl in jsp-mode of Java Studio Creator. I have to manually type all jstl's tags and their attributes.
    What I should do to switch on that support?

    All problems have solved - I only restarted IDE. :-)

  • Error while trying to show simple JSP page tag taglib

    Hello,
    I am trying to run jsp page which is using taglib. I copyied all three files (TestSample.tld, hello.java and hello.jsp) in the same directory. I am trying to run it (http://localhost:8088/working/hello.jsp), but I am getting an error (see below). I am a beginner in using taglib. Can anybody help me, what is wrong?, why I am getting this error? and how I should to fix it?
    Thanks in advance.
    HTTP Status 500 -
    type Exception report
    message
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    javax.servlet.ServletException: org/apache/jsp/working/hello_jsp (wrong name: org/apache/jsp/working/Hello_jsp)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:272)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    root cause
    java.lang.NoClassDefFoundError: org/apache/jsp/working/hello_jsp (wrong name: org/apache/jsp/working/Hello_jsp)
         java.lang.ClassLoader.defineClass1(Native Method)
         java.lang.ClassLoader.defineClass(Unknown Source)
         java.security.SecureClassLoader.defineClass(Unknown Source)
         java.net.URLClassLoader.defineClass(Unknown Source)
         java.net.URLClassLoader.access$100(Unknown Source)
         java.net.URLClassLoader$1.run(Unknown Source)
         java.security.AccessController.doPrivileged(Native Method)
         java.net.URLClassLoader.findClass(Unknown Source)
         org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:133)
         org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:65)
         org.apache.jasper.JspCompilationContext.load(JspCompilationContext.java:596)
         org.apache.jasper.servlet.JspServletWrapper.getServlet(JspServletWrapper.java:147)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:315)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    note The full stack trace of the root cause is available in the Apache Tomcat/5.5.17 logs.
    Apache Tomcat/5.5.17

    OK., I fixed that, but now I am getting a new error msg:
    type Exception report
    message
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    org.apache.jasper.JasperException: /working/hello.jsp(8,2) Unable to load tag handler class "test.examples.hello" for tag "test:hello"
         org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:510)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:375)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    root cause
    org.apache.jasper.JasperException: /working/hello.jsp(8,2) Unable to load tag handler class "test.examples.hello" for tag "test:hello"
         org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:39)
         org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:405)
         org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:196)
         org.apache.jasper.compiler.Parser.parseCustomTag(Parser.java:1327)
         org.apache.jasper.compiler.Parser.parseElements(Parser.java:1573)
         org.apache.jasper.compiler.Parser.parse(Parser.java:126)
         org.apache.jasper.compiler.ParserController.doParse(ParserController.java:211)
         org.apache.jasper.compiler.ParserController.parse(ParserController.java:100)
         org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:155)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:295)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:276)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:264)
         org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:563)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:303)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    note The full stack trace of the root cause is available in the Apache Tomcat/5.5.17 logs.
    Apache Tomcat/5.5.17
    Do anybody know good idea how to fix it?

  • jsp:include in taglibs

    Can I use jsp includes inside the taglib

    Hi madhur6,
    Is the below you're looking for - Can I use jsp includes inside the taglib ?-
    See point 1 and 2.
    -- Paul
    1. link:
    http://www.jguru.com/faq/view.jsp?EID=115446
    2. text from the link:
    Normally when you call one JSP page from another you have no significant access to the result of the called JSP. So if I have
    Hi, I like nice clean JSP output
    <jsp:include page="gobbledegook.jsp" flush="true"/>
    Doh!
    When it would be much nicer to be able to do this:
    <%@ taglib uri="blahblah" prefix="myTags"%>
    Hi, I like nice clean JSP output
    <myTags:cleanUp>
    <jsp:include page="gobbledegook.jsp" flush="true"/>
    </myTags:cleanUp>
    Wahoo!
    This can be accomplish with the tag class:
    public class TakeOutTheTrashTag extends BodyTagSupport
    public int doStartTag() throws JspTagException
    return EVAL_BODY_TAG;
    public int doAfterBody() throws JspTagException
    try {
    if (bodyContent != null) {
    String messy = bodyContent.getString();
    String clean = takeOutTheTrash(messy);
    bodyContent.getEnclosingWriter().print(clean);
    } catch (IOException ie) {}
    return EVAL_PAGE;
    public int doEndTag() throws JspTagException
    return EVAL_PAGE;
    private String takeOutTheTrash(String messy)
    String cleanedUp = messy;
    return cleanedUp;

  • JSP not finding Taglib

    hi all,
    i am using forte 2.0 ce, BEA's weblogic, and custom tags in JSP (for intranet site). i get an error each time i try to compile that says cant open TLD descriptor. ive followed several threads here in this forum to no avail. im convinced everything is in the right place. has anyone out there used Weblogic and encountered the same problem? any additonial areas i should check?

    Have tried asking/searching this in Bea weblogic JSP newsgroup ?

  • Jstl 1.1.2 jsp reference for taglibs not working

    When using NitroX with Eclipse and using these references at the top of my jsp pages:
    <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
    <%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
    <%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>
    recieving these warnings:
    The tag library uri "http://java.sun.com/jsp/jstl/core" cannot be mapped to an existing tld file. Make sure that the uri is specified in the web.xml file, or is a tld file present under WEB-INF or packaged in a jar file in the application class path.
    The tag library uri "http://java.sun.com/jsp/jstl/fmt" cannot be mapped to an existing tld file. Make sure that the uri is specified in the web.xml file, or is a tld file present under WEB-INF or packaged in a jar file in the application class path.
    The tag library uri "http://java.sun.com/jsp/jstl/functions" cannot be mapped to an existing tld file. Make sure that the uri is specified in the web.xml file, or is a tld file present under WEB-INF or packaged in a jar file in the application class path.
    This is very annoying and get no code completion ability when it is like this. Everything works properly when run in Tomcat 5. Any idea on this issue or a work around to it would be greatly appreciated.

    Hi,
    If the standard.jar (of JSTL 1.1.2) is present in the project (WEB-INF/lib) directory and listed in the libraries path (Project > Properties > Java Build Path > Libraries tab) then it would be strange and interesting to look into the scenario.
    Please send the sample project which exhibits this behavior to [email protected]
    Thanks,
    M7 Support

  • JDev 10.1.3EA - Importing UML  XMI - which models are supported

    I've read some instructions to import UML Class models from an XMI export. Is this the only type of model which can be imported? We have XML exports that contain Use case and sequence diagrams as well.
    Thx.

    Hi,
    Yes, currently only UML Classes can be imported in XMI.
    Regards,
    Lisa Sherriff
    JDev QA

  • JSP HTMLB tags/Taglib

    Hi all,
    Are there any JSP HTMLB tags like there are in the portals environment? i.e., tableview, button, tray, etc.?
    I know there's a mobilehtmlb.jar, but I couldn't find anything about htmlb tags for MI.
    If you have any idea/info, please let me know.
    Thx,
    mike

    Jelle,
    I found the jars, but I am awaiting a response from the product manager.   Through a NoClassDefFound error, I found out I also had to add logging.jar.
    Now this is what I'm getting:
    java.lang.NullPointerException
         at com.sapportals.htmlb.util.Log.getLoggingProperties(Log.java:22)
         at com.sapportals.htmlb.util.Log.getLogLocation(Log.java:44)
         at com.sapportals.htmlb.rendering.RendererManager.createUIBrowserRenderer(RendererManager.java:416)
         at com.sapportals.htmlb.rendering.RendererManager.initialize(RendererManager.java:446)
         at com.sapportals.htmlb.rendering.RendererManager.getJavascriptFileName(RendererManager.java:493)
         at com.sapportals.htmlb.rendering.PageContext.getJavascriptUrl(PageContext.java:996)
         at com.sapportals.htmlb.rendering.PageContext.createDocument(PageContext.java:1015)
         at com.sapportals.htmlb.taglib.PageTag.doStartTag(PageTag.java:53)
         at jsp._0002fjsp_0002fmenu_0002ejspmenu_jsp_30._jspService(_0002fjsp_0002fmenu_0002ejspmenu_jsp_30.java:107)
         at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
    ..etc., etc...
    Let me know if you have any ideas.
    Thanks,
    mike

  • Jsp tree using taglibs

    hi,
    i'm trying to implement a tree structure using jsp for which i have a taglib.tld which has different tags and attributes.
    My jsp page has the taglib uri:
    <%@ taglib uri="taglib.tld" prefix="tree" %>
    but i get the foll error
    No such tag folder in the tag library imported with prefix tree
    Can anybody help me
    Thanks

    hi, this is my tld file
    <?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>tree</shortname>
    <uri></uri>
    <info>
         A simple tab library for the examples
    </info>
    <!-- Tree Iterator Tag -->
    <tag>
    <name>treeiterator</name>     
    <tagclass>mypackage.TreeiteratorTag</tagclass>
    <info> Display Tree sources </info>
    </tag>
    <!-- Leaf Tag -->
    <tag>
    <name>leaf</name>
    <tagclass>mypackage.LeafTag</tagclass>
    <bodycontent>JSP</bodycontent>
    <attribute>
    <name>id </name>
    <required>true</required>     
    </attribute>
    <info>
              Perform a server side action; uses 3 mandatory attributes
    </info>
    </tag>
    <!-- Folder tag -->
    <tag>
    <name>Folder</name>
    <tagclass>mypackage.FolderTag</tagclass>
    <bodycontent>JSP</bodycontent>
    <info>
              Perform a server side action; Log the message.
    </info>
    <attribute>
              <name>entry</name>
              <required>true</required>
    </attribute>
    <attribute>
              <name>id</name>
              <required>true</required>
    </attribute>
    </tag>
    <tag>
    <name>Answer</name>
    <bodycontent></bodycontent>
    <info>
              Perform a server side action; Log the message.
    </info>
    </tag>
    </taglib>
    is in the web-inf directory
    Jsp call:
    <%@ taglib uri="taglib" prefix="tree" %>
    all the class files are in a directory mypackage in web-inf\classes.
    Web.xml:
    <taglib>
    <taglib-uri>
                   taglib
    </taglib-uri>
    <taglib-location>
    /WEB-INF/taglib.tld
    </taglib-location>
    </taglib>

Maybe you are looking for

  • Very Slow Finder in Mavericks

    Finder is very slow to respond when navigating folders directly or through another program like say Flickr to add a photo. Rainbow pinwheel spins and spins for much longer than normal. Here is my report. Please help! Thanks! JD EtreCheck version: 1.9

  • Creative Cloud Libraries through proxy not syncing

    Hi, We use Creative Cloud inside our company with proxy server. We allowed all URLs recommended by Adobe on our proxy server: https://na1mbls.licenses.adobe.com https://ims-na1.adobelogin.com https://adobeid-na1.services.adobe.com https://na1r.servic

  • Apple\Adobe\nqgjemih.dll could not be found

    When Windows is booting up, I am getting the following error: RUNDLL Error loading c:\Documents and Settings\Mayfield Home 1\Local Settings\Application Data\Apple\Adobe\nqgjemih.dll Can anyone assist? Thanks

  • Add lines in Forms

    Hi, In Pe51: Payslip How to plug in 2 lines additional, for the existing form If we do in "background", it will not mach with "Single fields" How to solve this Rx Dear Seems you are new to pay slip if   yes in Pay slip  PE51 you have 9 Sub objects  i

  • Cap Locks not working properly

    I have a macbook pro  running 10.6.8 & the cap lock turns on when I press the 2nd bracket key. The cap lock stays on until I press the 2nd bracket key again. It will not turn on when I press the cap lock key or shift cap lock key. I tried resetting a