Error in using taglib uri in jsp

When i write the following code in my jsp to use the tags, i got the error -
JSP Parsing Error:The absolute uri: http://java.sun.com/jsf/html cannot be resolved in either web.xml or the jar files deployed with this application     
And when i used the tld (html_basic.tld & jsf_core.tld), it gave me the error
JSP Parsing Error:Failed to load or instantiate TagLibraryValidator class: com.sun.faces.taglib.html_basic.HtmlBasicValidator

you can use
<taglib>
<taglib-uri>/WEB-INF/html-basic.tld</taglib-uri>
<taglib-location>
/WEB-INF/html-basic.tld
</taglib-location>
</taglib>
<taglib>
<taglib-uri>/WEB-INF/jsf-core.tld</taglib-uri>
<taglib-location>
/WEB-INF/jsf-core.tld
</taglib-location>
</taglib>
in your web.xml

Similar Messages

  • Error while using window.open() in JSP page

    I am getting error while using window.open() in my JSP page.
    This is code in my JSP page,
    <h:commandLink onclick="loadContextSensitiveHelp(#{setNewDayStatusBean. cycleStatusViewObject.helpUrl});" value="Help">
    function loadContextSensitiveHelp(helpPageName) {
    top.consoleRef=window.open('#{facesContext.externalContext.requestContextPath}/main/patient/helpPageName','myconsole',
    'width=350,height=250'
    +',menubar=0'
    +',toolbar=0'
    +',status=0'
    +',scrollbars=1'
    +',resizable=0')
    top.consoleRef.document.close()
    I am getting the following error in my browser,
    type Exception report
    message
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    org.apache.jasper.JasperException: /SetNewDayStatus.jsp(69,34) #{..} is not allowed in template text
         org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:40)
         org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:407)
         org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:102)
         org.apache.jasper.compiler.Validator$ValidateVisitor.visit(Validator.java:711)
         org.apache.jasper.compiler.Node$ELExpression.accept(Node.java:935)
         org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2336)
         org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2386)
         org.apache.jasper.compiler.Validator$ValidateVisitor.visit(Validator.java:838)
         org.apache.jasper.compiler.Node$CustomTag.accept(Node.java:1507)
         org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2336)
         org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2386)
         org.apache.jasper.compiler.Node$Visitor.visit(Node.java:2392)
         org.apache.jasper.compiler.Node$Root.accept(Node.java:489)
         org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2336)
         org.apache.jasper.compiler.Validator.validate(Validator.java:1737)
         org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:178)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:306)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:286)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:273)
         org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:566)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java: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)
         com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:428)
         com.sun.faces.application.ViewHandlerImpl.executePageToBuildView(ViewHandlerImpl.java:444)
         com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:116)
         com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:106)
         com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251)
         com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:144)
         javax.faces.webapp.FacesServlet.service(FacesServlet.java:245)
    note The full stack trace of the root cause is available in the Apache Tomcat/6.0.13 logs.
    Anyone help me to solve this issue. Thanks............................

    I am getting error while using window.open() in my JSP page.
    This is code in my JSP page,
    <h:commandLink onclick="loadContextSensitiveHelp(#{setNewDayStatusBean. cycleStatusViewObject.helpUrl});" value="Help">
    function loadContextSensitiveHelp(helpPageName) {
    top.consoleRef=window.open('#{facesContext.externalContext.requestContextPath}/main/patient/helpPageName','myconsole',
    'width=350,height=250'
    +',menubar=0'
    +',toolbar=0'
    +',status=0'
    +',scrollbars=1'
    +',resizable=0')
    top.consoleRef.document.close()
    I am getting the following error in my browser,
    type Exception report
    message
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    org.apache.jasper.JasperException: /SetNewDayStatus.jsp(69,34) #{..} is not allowed in template text
         org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:40)
         org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:407)
         org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:102)
         org.apache.jasper.compiler.Validator$ValidateVisitor.visit(Validator.java:711)
         org.apache.jasper.compiler.Node$ELExpression.accept(Node.java:935)
         org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2336)
         org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2386)
         org.apache.jasper.compiler.Validator$ValidateVisitor.visit(Validator.java:838)
         org.apache.jasper.compiler.Node$CustomTag.accept(Node.java:1507)
         org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2336)
         org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2386)
         org.apache.jasper.compiler.Node$Visitor.visit(Node.java:2392)
         org.apache.jasper.compiler.Node$Root.accept(Node.java:489)
         org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2336)
         org.apache.jasper.compiler.Validator.validate(Validator.java:1737)
         org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:178)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:306)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:286)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:273)
         org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:566)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java: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)
         com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:428)
         com.sun.faces.application.ViewHandlerImpl.executePageToBuildView(ViewHandlerImpl.java:444)
         com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:116)
         com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:106)
         com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251)
         com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:144)
         javax.faces.webapp.FacesServlet.service(FacesServlet.java:245)
    note The full stack trace of the root cause is available in the Apache Tomcat/6.0.13 logs.
    Anyone help me to solve this issue. Thanks............................

  • Error when using %@ include file="/test.jsp"%&

    UsingNitrox version 2.1 M3 (build 419 06022005):
    with jdk version: 1.5.0_03 and Tomcat 5.5.9
    This is the error :cry: when using <%@ include file="/test.jsp"%> in jsp:
    Severity     2
    The type java.lang.Object cannot be resolved. It is indirectly referenced from required .class files (test.jsp)
    It used to work in previuos version of Nitrox. I can't use struts tiles because the tiles content is dynamic (run time) and I need it to be static (at compile time).
    Have you encountered this problem? What is the fix? Nitrox bug?
    I need your help please,
    Alberto

    M7,
    I found the problem :wink: . In the java Build path having the default (ALL) is not picking up the content of the package. I had to use add multiple and include all the folders and subfolders (many L) in my packages. After that I added *.java and *.properties to select all the java files. Now it is working. I assume this is a bug in Nitrox. The default ALL should include the all the files in the path.
    Thanks,
    Alberto

  • Error while using mxml taglib in jsp

    Hi,
    I am getting following error while useing the mxml taglib in
    jsp for flex 2.0.1,
    java.lang.NullPointerException
    flex.webtier.server.j2ee.jsp.MxmlTagImpl.doStartTag(MxmlTagImpl.java:112)
    flex.bootstrap.BootstrapTag.doStartTag(BootstrapTag.java:77)
    org.apache.jsp.test_jsp._jspx_meth_mm_005fmxml_005f0(test_jsp.java:79)
    org.apache.jsp.test_jsp._jspService(test_jsp.java:54)
    org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
    org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:328)
    org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:315)
    org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
    My jsp as below,
    <%@ taglib uri="FlexTagLib" prefix="mm" %>
    <html><body>
    <mm:mxml source="reports/sampleapp.mxml" />
    </body></html>
    If any one knows how to resolve above error, please help me,
    My email id : [email protected]
    Regards,
    Chandra Reddy

    did u deploy your dbadapter through console to the plan mentioned for deployment?

  • Weblogic.servlet.jsp.JspException: (line 1): Error in using tag library uri

    Previously my web app was running fine using eclipse 3.1
    When I upgraded my eclipse to 3.2 then built the same web app and deployed, upon running the url i got error
    weblogic.servlet.jsp.JspException: (line 1): Error in using tag library uri='/tags/css' prefix='css' : cannot find tag class
    Your help is appreciated.

              Hi Guys
              Problem is almost certainly because I've gone and defined the get as returning
              an int, (hence no property!)
              Apols
              J
              

  • What is the use of %@ taglib uri="taglib" prefix="hbj" % in jsp?

    what is the use of
    <%@ taglib uri="taglib" prefix="hbj" %>
    in jsp?
    The portal Content works fine even without that.
    Any specific reasons?

    Hello Hanif,
    This is the we declare taglibs in JSP files. Check this for definition:
    http://java.sun.com/products/jsp/tutorial/TagLibraries5.html#61992
    After declaring this taglib <%@ taglib uri="taglib" prefix="<b>hbj</b>" %>
    , you can use all HTMLB classes as tags in JSP.
    I am not sure in which JSP you mean that every thing works fine with out this taglib!! But if you remove this taglib, then you cannot use HTMLB in this JSP.
    http://help.sap.com/saphelp_nw2004s/helpdata/en/42/efdb279a563ee7e10000000a1553f7/frameset.htm
    Greetings,
    Praveen Gudapati
    p.s Points are always welcome for helpful answers

  • How to use taglibs in JSP for Database access

    Hi
    Could any one please tell me how to use taglibs in JSP for Database access
    with regrds
    Jojo

    This is a sample how to connect to a MySQL database with JSTL 1.0:
    <%@ page contentType="text/html; charset=iso-8859-1" language="java" import="java.sql.*" errorPage="" %>
    <%@ taglib uri="http://java.sun.com/jstl/sql" prefix="sql" %>
    <%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <title>JSTL MySQL</title>
    <link href="styles.css" rel="stylesheet" type="text/css" />
    </head>
    <body>
    <c:catch var="e">
    <sql:setDataSource var="datasource" url="jdbc:mysql://Your_Server_Name_Here/You_Schema_Here"
                           user="Your_Username_Here" password="Your_Password_Here"
                           driver="com.mysql.jdbc.Driver"/>
    <c:out value="datasource= ${datasource},  Class = ${driver.class}"/>
    <br />
    <br />
    <sql:query var="deejays" dataSource="${datasource}">SELECT * FROM Your_Table_Name_Here</sql:query>
    <table>
    <%-- Get the column names for the header of the table --%>
    <c:forEach var="columnName" items="${deejays.columnNames}"><th><c:out value="${columnName}"/></th></c:forEach>
    <tbody>
    <%-- Get the value of each column while iterating over rows --%>
    <c:forEach var="row" items="${deejays.rows}">
      <tr><c:forEach var="column" items="${row}">
            <td><c:out value="${column.value}"/></td>
          </c:forEach>
      </tr>
    </c:forEach>
    </tbody>
    </table>
    </c:catch>
    <br />
    <br />
    <c:if test="${e!=null}"><span class="error">Error</span>�
      <c:out value="${e}" />
    </c:if>
    </body>
    </html>And this thread might help you:
    http://forum.java.sun.com/thread.jspa?threadID=639471&tstart=44

  • Generated servlet error - unable to compile class for JSP - using NB5.5/SS9

    I am using NB5.5 beta2 and Sun server 9.0 with JSF 1.1 - all is OK when I am creating firts JSF application - welcomeJSF.jsp page is rendered normally - but when I am adding one more jsp with JSP view and so on - then - I am getting errors in both JSF pages - both - in original welcomeJSF and the new invoice.jsp page
    here is code for typical error
    org.apache.jasper.JasperException: Unable to compile class for JSP
    org.apache.jasper.JasperException: Unable to compile class for JSP
    Generated servlet error:
    [javac] E:\Sun\AppServer\domains\domain1\generated\jsp\j2ee-modules\ERPSolution\org\apache\jsp\welcomeJSF_jsp.java:99: cannot find symbol
    [javac] symbol : method setJspId(java.lang.String)
    [javac] location: class com.sun.faces.taglib.jsf_core.ViewTag
    [javac] jspxth_f_view_0.setJspId("id7");
    [javac] ^
    Generated servlet error:
    [javac] E:\Sun\AppServer\domains\domain1\generated\jsp\j2ee-modules\ERPSolution\org\apache\jsp\welcomeJSF_jsp.java:144: cannot find symbol
    [javac] symbol : method setJspId(java.lang.String)
    [javac] location: class com.sun.faces.taglib.html_basic.OutputTextTag
    [javac] jspxth_h_outputText_0.setJspId("id17");
    [javac] ^
    Generated servlet error:
    [javac] E:\Sun\AppServer\domains\domain1\generated\jsp\j2ee-modules\ERPSolution\org\apache\jsp\welcomeJSF_jsp.java:145: setValue(java.lang.String) in com.sun.faces.taglib.html_basic.OutputTextTag cannot be applied to (javax.el.ValueExpression)
    [javac] jspxth_h_outputText_0.setValue(org.apache.jasper.runtime.PageContextImpl.getValueExpression("Java Server Faces", (PageContext)_jspx_page_context, java.lang.Object.class, null));
    [javac] ^
    [javac] 3 errors
         org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:94)
         org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:384)
         org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:461)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:528)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:507)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:495)
         org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:530)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:409)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:317)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
         com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:414)
         com.sun.faces.application.ViewHandlerImpl.executePageToBuildView(ViewHandlerImpl.java:455)
         com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:139)
         com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:108)
         com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:266)
         com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:159)
         javax.faces.webapp.FacesServlet.service(FacesServlet.java:245)
         com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:73)
         com.sun.enterprise.web.VirtualServerPipeline.invoke(VirtualServerPipeline.java:120)
         org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:231)
         com.sun.enterprise.web.connector.grizzly.ProcessorTask.invokeAdapter(ProcessorTask.java:667)
         com.sun.enterprise.web.connector.grizzly.ProcessorTask.processNonBlocked(ProcessorTask.java:574)
         com.sun.enterprise.web.connector.grizzly.ProcessorTask.process(ProcessorTask.java:844)
         com.sun.enterprise.web.connector.grizzly.ReadTask.executeProcessorTask(ReadTask.java:287)
         com.sun.enterprise.web.connector.grizzly.ReadTask.doTask(ReadTask.java:212)
         com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:252)
         com.sun.enterprise.web.connector.grizzly.WorkerThread.run(WorkerThread.java:75)
    note The full stack trace of the root cause is available in the Sun Java System Application Server Platform Edition 9.0 logs.
    and there is output for another error:
    Generated servlet error:
    [javac] E:\Sun\AppServer\domains\domain1\generated\jsp\j2ee-modules\ERPSolution\org\apache\jsp\welcomeJSF_jsp.java:144: cannot find symbol
    [javac] symbol : method setJspId(java.lang.String)
    [javac] location: class com.sun.faces.taglib.html_basic.OutputTextTag
    [javac] jspxth_h_outputText_0.setJspId("id17");
    [javac] ^
    Generated servlet error:
    [javac] E:\Sun\AppServer\domains\domain1\generated\jsp\j2ee-modules\ERPSolution\org\apache\jsp\welcomeJSF_jsp.java:145: setValue(java.lang.String) in com.sun.faces.taglib.html_basic.OutputTextTag cannot be applied to (javax.el.ValueExpression)
    [javac] jspxth_h_outputText_0.setValue(org.apache.jasper.runtime.PageContextImpl.getValueExpression("Java Server Faces", (PageContext)_jspx_page_context, java.lang.Object.class, null));
    [javac] ^
    [javac] 3 errors
    and here is code of my new invoice.jsp page:
    <%@page contentType="text/html"%>
    <%@page pageEncoding="UTF-8"%>
    <%@taglib prefix="f" uri="http://java.sun.com/jsf/core"%>
    <%@taglib prefix="h" uri="http://java.sun.com/jsf/html"%>
    <%--
    The taglib directive below imports the JSTL library. If you uncomment it,
    you must also add the JSTL library to the project. The Add Library... action
    on Libraries node in Projects view can be used to add the JSTL 1.1 library.
    --%>
    <%--
    <%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
    --%>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
       "http://www.w3.org/TR/html4/loose.dtd">
    <f:view>
       <html>
        <head>
            <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
            <title>JSP Page</title>
        </head>
        <body>
          <h1><h:outputText value="Java Server Faces" /></h1>
        <h:inputText value="#{managerBean.currentInvoice.id}"/>
        <h:inputText value="#{managerBean.currentInvoice.description}"/>
        <h:inputText value="#{managerBean.currentInvoice.total}"/>
        <h:commandButton value="new_invoice"
                         type="submit"
                         actionListener="#{managerBean.createNewInvoice}"/> 
        </body>
    </f:view>and faces-config.xml file:
    <?xml version='1.0' encoding='UTF-8'?>
    <!DOCTYPE faces-config PUBLIC
      "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.1//EN"
      "http://java.sun.com/dtd/web-facesconfig_1_1.dtd">
    <!-- =========== FULL CONFIGURATION FILE ================================== -->
    <faces-config>
        <managed-bean>
            <managed-bean-name>managerBean</managed-bean-name>
            <managed-bean-class>com.brl.ERPSolution.ui.ManagerBean</managed-bean-class>
            <managed-bean-scope>session</managed-bean-scope>
        </managed-bean>
    </faces-config>managerBean was intended to be backing beans which will call the facaed beans of EJB 3.0 entity beans - but at presnet - almost empty methods are declared there:
    package com.brl.ERPSolution.ui;
    import javax.faces.event.ActionEvent;
    import com.brl.solutions.EJB3.*;
    * @author Administrator
    public class ManagerBean {
        protected int currentInvoiceId;
        protected Invoices currentInvoice;
        protected InvoicesFacade invoicesFacade;
        /** Creates a new instance of ManagerBean */
        public ManagerBean() {
        /* business methods */
        public void createNewInvoice(ActionEvent actionEvent)
            invoicesFacade.create(this.currentInvoice);
        public Invoices getCurrentInvoice()
            return this.currentInvoice;
        public void setCurrentInvoice(Invoices currentInvoice)
            this.currentInvoice=currentInvoice;
    }I read in one blog (actually - the only page which was returned by yahoo - so - this should be very rare error!!!) to try to use Sun server's verifier.bat - and - it reported 0 errors and 0 warning. Build was succesfull as well and also - deployment was without errors - but - above mentioned error appeared during the automatic compilation of jsp pages/servlet when newly deployed jsps are first accessed from remote browser.
    So - is it possible, please, to receive some advice - what to do further? I feel that my invoice.jsp page can be with errors, - however - the original welcomeJSF.jsp should be working without errors even the erronwous JFS jsp page is added to web application.
    Thans for any adice or hint in advance!!!

    OK - I have made 'clean and build main project' from NB menu and the deployed the resulting *.war and the error messages have disappeared... So - it seems to be bug...

  • 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>

  • Error in using tag library uri='weblogic.tld'

    Hmmm...
    I'm trying to config my userprofile by creating it in the tools application (myserver/tools/index.jsp),
    but when I try to access the Unified Profile Types I get an Error 500 Internal
    Server Error in my webbrowser. The weblogic.log prints out an errormessage that
    sounds something like this:
    ####<30-Aug-01 16:30:14 CEST> <Error> <HTTP> <Ast-WT01> <server01> <ExecuteThread:
    '14' for queue: 'default'> <system> <> <101020> <[WebAppServletContext(3530676,tools)]
    Servlet failed with Exception>
    weblogic.servlet.jsp.JspException: (line 24): Error in using tag library uri='weblogic.tld'
    prefix='wl': For tag 'repeat', cannot load extra info class 'weblogicx.jsp.tags.RepeatTagInfo'
    I'm running weblogic 6.0 and wlcs 3.5. I'm sure of that the tag libraries are
    correct and they are located under tools/web-inf.

    Hmmm...
    I'm trying to config my userprofile by creating it in the tools application (myserver/tools/index.jsp),
    but when I try to access the Unified Profile Types I get an Error 500 Internal
    Server Error in my webbrowser. The weblogic.log prints out an errormessage that
    sounds something like this:
    ####<30-Aug-01 16:30:14 CEST> <Error> <HTTP> <Ast-WT01> <server01> <ExecuteThread:
    '14' for queue: 'default'> <system> <> <101020> <[WebAppServletContext(3530676,tools)]
    Servlet failed with Exception>
    weblogic.servlet.jsp.JspException: (line 24): Error in using tag library uri='weblogic.tld'
    prefix='wl': For tag 'repeat', cannot load extra info class 'weblogicx.jsp.tags.RepeatTagInfo'
    I'm running weblogic 6.0 and wlcs 3.5. I'm sure of that the tag libraries are
    correct and they are located under tools/web-inf.

  • 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

  • Using Taglib in jsp

    <?xml version="1.0" encoding="UTF-8"?>
    <jsp:root version="1.2" xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html" xmlns:jsp="http://java.sun.com/JSP/Page" xmlns:ui="http://www.sun.com/web/ui">
    <jsp:directive.page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"/>
    <f:view>
    <ui:page binding="#{Page1.page1}" id="page1">
    <ui:html binding="#{Page1.html1}" id="html1">
    <ui:head binding="#{Page1.head1}" id="head1">
    <ui:link binding="#{Page1.link1}" id="link1" url="/resources/stylesheet.css"/>
    </ui:head>
    <ui:body binding="#{Page1.body1}" id="body1" style="-rave-layout: grid">
    <ui:form binding="#{Page1.form1}" id="form1"/>
    </ui:body>
    </ui:html>
    </ui:page>
    </f:view>
    </jsp:root>
    where to include,
    <%@taglib prefix="is" uri="http://com.examples.imageslider"%>
    <f:view>
    <h:form>
    <is:ImageSlider id="imageSlider1"
    url="/resources/image1.jpg,/resources/image2.jpg"
    style="border: medium solid #000080;"
    width="200" height="150"/>
    </h:form>
    </f:view>

    Hi Riaz,
    You can use same code in JSP
    Java Code
    import java.util.*;
    class TestHashMap
    public static void main(String args[])
    HashMap hm=new HashMap();
    //store some Objects.
    hm.put("Rajib Sarma","100");
    //duplicate keys are not allowed.
    hm.put("Rajib Sarma","200");//The value "100" is replaced by "200".
    hm.put("Sazid Ahmed","200");
    //Display the contents of the HashMap
    System.out.println("Displaying all the keys/values.\r\n");
    System.out.println("Key\t\tValue\r\n");
    //get all the keys
    Collection c=hm.keySet();
    //obtain an Iterator
    Iterator i=c.iterator();
    while(i.hasNext())
    //obtain a key
    Object key=i.next();
    //obtain the value of the key
    Object value=hm.get(key);
    System.out.println(key +"\t" + value);
    }//while ends
    }//main ends
    }

  • Portal Runtime Error when communicating from JSPDynPage to JSP Using Bean

    Hi ...
    I am pursuing this problem for quite sometime now. Even opened a high priority message with SAP. We are using a bean to communicate value between a JSPDynPage and a JSP. When trying to access the bean in the doProcessAfterInput of the JSPDynpage, sometimesi get a nullpointer exception ..as if the bean was released ..
    I have tried ComponentProfile, ComponentSession... but in vain. If i try to use HTTPSession, the initialization of the bean in the JSP fails since its scope is applicationIt also fails if i try and reduce the scope of the bean.
    Pls advice. I can post the code on request.
    Thanks,
    Devina

    I believe application has a larger scope than session ..
    Here's the extract of the code
    public void doInitialization() {
    IPortalComponentRequest request =(IPortalComponentRequest) this.getRequest();
              IPortalComponentResponse response =     (IPortalComponentResponse) this.getResponse();
              IPortalComponentContext compcontext = request.getComponentContext();
    zOrgStructBean.setOrgData(aOrgData);
                                  zOrgStructBean.init(); //initialize bean
                   //compcontext.putValue("OrgSelectionBean", zOrgStructBean);
                   myProfile.putValue("OrgSelectionBean", zOrgStructBean);
    public void doProcessBeforeOutput() throws PageException {
              IPortalComponentRequest request = (IPortalComponentRequest) this.getRequest();
              compcontext = request.getComponentContext();
         this.setJspName("TeamViewer.jsp");
         request = (IPortalComponentRequest) this.getRequest();
              request1 = request.getServletRequest();
              compcontext = request.getComponentContext();
              IPortalComponentProfile myProfile = compcontext.getProfile();
    zOrgStructBean =(OrgSelectionTreeBean) myProfile.getValue("OrgSelectionBean");
    ...// bean is returned as null
    JSP
    <%@ page import="com.hersheys.hr.pcr.exit.HersheyTeamViewerExitBean"%>
    <%@ page import="com.hersheys.hr.pcr.exit.OrgSelectionTreeBean"%>
    <%@ page import="java.util.*"%>
    <%@ page import="com.sapportals.portal.prt.component.*"%>
    <%@ page import="com.sapportals.htmlb.TreeNode"%>
    <%@ taglib uri="tagLib" prefix="hbj" %>
    <jsp:useBean id="OrgSelectionBean" scope="application" class="com.hersheys.hr.pcr.exit.OrgSelectionTreeBean"/>
    <jsp:useBean id="myTableViewBean" scope="application" class="com.hersheys.hr.pcr.exit.HersheyTeamViewerExitBean"/>
    <hbj:content id="myContext" >
    <hbj:page title="AIP TeamViewer" >
            <hbj:form id="myFormId">
                   <%  int j = myTableViewBean.getSelectedRow();
                        pageContext.setAttribute("myRootNode", OrgSelectionBean.getTree());
                    OrgSelectionBean.renderTree(myFormId);
    Bean
    public void init(JCO.Table TableData) {
              Object[] colTitle ={"Name","ID"};
              Object[] colTitleB = {"Forms"};
              data = new Object[TableData.getNumRows()][2];
              bdata = new Object[3][1];
              bdata[0][0]="Termination";
              bdata[1][0]="Retirement";
              bdata[2][0]="Death";
              int j = 0;
                        //int i;
              for (int i = 0; i < TableData.getNumRows(); i++) {
                             //HersheyTeamViewerAIPBean zAIPBean = (HersheyTeamViewerAIPBean)TableData.getRow(i);
                   j = 0;
              //for (JCO.FieldIterator e = TableData.fields(); e.hasMoreElements(); ){
                   JCO.FieldIterator e = TableData.fields();
                   while (e.hasMoreElements()) {
                             JCO.Field field = e.nextField();
                             data<i>[j] = field.getString();
                             j = j + 1;
                        TableData.nextRow();
              this.model = new DefaultTableViewModel(data, colTitle);
              this.setOldTableViewModel(data, colTitle);
              bmodel = new DefaultTableViewModel(bdata, colTitleB);

  • 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?

  • Taglib URI error in Weblogic60

    Hi All,
              having some trouble deploying my custom Tag, this is the error...
              thanks in advance
              Parsing of JSP File '/test/tagpage.jsp' failed:
              /test/tagpage.jsp(1): Could not parse deployment descriptor:
              java.io.IOException: cannot resolve 'taglib' into a valid tag library
              probably occurred due to an error in /test/tagpage.jsp line 1:
              <%@ taglib uri="taglib" prefix="input" %>
              my directories look like this
              myserver
              test
              - tagpage.jsp
              WEB-INF
              -web.xml
              -taglib.tld
              my code:
              in jsp
              -<%@ taglib uri="taglib" prefix="input" %>
              in web.xml
              -<?xml version="1.0" ?>
              <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application
              1.2//EN" "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">
              <web-app>
              <taglib>
              <taglib-uri>taglib</taglib-uri>
              <taglib-location>/WEB-INF/taglib.tld</taglib-location>
              </taglib>
              </web-app>
              

    I get the following error when I try to get my taglibs running in WLS 6.0 -
              any ideas?
              Parsing of JSP File '/Project.jsp' failed:
              /Project.jsp(3): Could not parse deployment descriptor:
              org.xml.sax.SAXParseException: Could not parse: taglib starting at line 1
              probably occurred due to an error in /Project.jsp line 3:
              <%@ taglib prefix="rdbm" uri="/rdbmstags6_0.tld" %>
              Tue Feb 20 10:41:57 MST 2001
              "Mark S." <[email protected]> wrote in message
              news:[email protected]...
              > Hi All,
              >
              > having some trouble deploying my custom Tag, this is the error...
              >
              > thanks in advance
              >
              > Parsing of JSP File '/test/tagpage.jsp' failed:
              >
              > /test/tagpage.jsp(1): Could not parse deployment descriptor:
              > java.io.IOException: cannot resolve 'taglib' into a valid tag library
              > probably occurred due to an error in /test/tagpage.jsp line 1:
              > <%@ taglib uri="taglib" prefix="input" %>
              >
              > ------------------------------
              >
              > my directories look like this
              >
              > myserver
              >
              > test
              >
              > - tagpage.jsp
              >
              > WEB-INF
              >
              > -web.xml
              >
              > -taglib.tld
              >
              > -------------------------------
              >
              > my code:
              >
              > in jsp
              >
              > -<%@ taglib uri="taglib" prefix="input" %>
              >
              > in web.xml
              >
              > -<?xml version="1.0" ?>
              >
              > <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application
              > 1.2//EN" "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">
              >
              > <web-app>
              >
              > <taglib>
              >
              > <taglib-uri>taglib</taglib-uri>
              >
              > <taglib-location>/WEB-INF/taglib.tld</taglib-location>
              >
              > </taglib>
              >
              > </web-app>
              >
              >
              >
              

Maybe you are looking for

  • My ipod wont let me in  some of my apps

    my 4th gen ipod touch keeps taking me out of my apps and reloading my ipod only helps for a little can someone help me

  • How do I print exact photo sizes?

    I need to print photos exactly 5x7 and 8x10.  The old ZoomBrowser had settings to do that.  Now they've vanished, and using the Image Garden to print two bordered prints per letter size page gives me 51/2 x 8 photos.  I can't find anything in the man

  • Can I create a result set filter on a SSRS Report similar to what you can do in Excel?

    Asking this question in a different way...I have my SSRS Result set. Now the Business User wants to filter down a 15-page report to what they want to specifically see....Sooo my result set has a list of claims. And now the Business User just wants to

  • Integrating Oracle EBS and ApEx Aplication with Responsibilities and SSO.

    Good day all. I am looking forward from getting somebody 's help, the trouble I am facing is described below: a) I am currently working on SSO with EBS. I mean, my users can connect and work perfectly. b) ApEx is Configured as Application Partner wit

  • Tax Reporting Date Active in Documents

    Hello, I have activated the flag "Tax Reporting Date Active in Documents" and I want to select which data the system must take. I have found the option to select the Document Data instead of the Posting Data in OBCK transaction but I need to take the