Exception Handling with Custom Tags/Exceptions

Hello all --
          I'm looking for some guidance in handling Custom errors in my app. I can't
          seem to find the message string of my custom exception when trying to call
          my JSP Error page. I'm consistently getting:
          javax.servlet.jsp.JspTagException: runtime failure in custom tag
          'CalendarHandler' .
          I am using custom JSP tag libraries to process logic on my EJBs. When I
          reach an error in business logic I raise a custom exception and propogate
          this back up to doStartTag:
          public int doStartTag() throws JspException {
          CalendarProcessor cp = new CalendarProcessor();
          try {
          String eventAction = getEventID();
          // pageContext contains information for the JSP;
          // Initialize the page with the current context and session
          cp.init(pageContext.getServletContext(), pageContext.getSession());
          HttpServletRequest req = (HttpServletRequest)pageContext.getRequest();
          cp.processRequest(req, eventAction );
          } catch (CalendarException ce) {
          throw new JspException(ce.getMessage());
          return SKIP_BODY;
          Then, in my JSP, I am enclosing the TagHandler in a try...catch block; I
          can't catch CalendarException because it is Throwable and conflicts with
          JspException.
          <% try { %>
          <gtc:CalendarHandler eventID="updatecal"/>
          <% } catch (Exception e) {
          throw e instanceof JspException ? (JspException) e : new
          JspTagException(e.getMessage());
          %>
          many thanks in advance!
          s.
          

I could not tell what the problem was that you were describing. Could you
          clarify?
          Cameron Purdy
          [email protected]
          http://www.tangosol.com
          WebLogic Consulting Available
          "Shari" <[email protected]> wrote in message
          news:[email protected]...
          > Hello all --
          >
          > I'm looking for some guidance in handling Custom errors in my app. I can't
          > seem to find the message string of my custom exception when trying to call
          > my JSP Error page. I'm consistently getting:
          > javax.servlet.jsp.JspTagException: runtime failure in custom tag
          > 'CalendarHandler' .
          >
          > I am using custom JSP tag libraries to process logic on my EJBs. When I
          > reach an error in business logic I raise a custom exception and propogate
          > this back up to doStartTag:
          >
          > public int doStartTag() throws JspException {
          >
          > CalendarProcessor cp = new CalendarProcessor();
          >
          > try {
          >
          > String eventAction = getEventID();
          >
          > // pageContext contains information for the JSP;
          >
          > // Initialize the page with the current context and session
          >
          > cp.init(pageContext.getServletContext(), pageContext.getSession());
          >
          > HttpServletRequest req = (HttpServletRequest)pageContext.getRequest();
          >
          > cp.processRequest(req, eventAction );
          >
          > } catch (CalendarException ce) {
          >
          > throw new JspException(ce.getMessage());
          >
          > }
          >
          > return SKIP_BODY;
          >
          > }
          >
          > Then, in my JSP, I am enclosing the TagHandler in a try...catch block; I
          > can't catch CalendarException because it is Throwable and conflicts with
          > JspException.
          >
          > <% try { %>
          >
          > <gtc:CalendarHandler eventID="updatecal"/>
          >
          > <% } catch (Exception e) {
          >
          > throw e instanceof JspException ? (JspException) e : new
          > JspTagException(e.getMessage());
          >
          > }
          >
          > %>
          >
          > many thanks in advance!
          >
          > s.
          >
          >
          >
          >
          >
          >
          >
          

Similar Messages

  • Exception handling with eInsight

    hi,
    Can any body has any specific document regarding to achieve the effective exception handling with respect to JCAPS eInsight. where we have very limited information in the eInsight user guide.
    Thanks

    We have the same problem, so I could not help you.
    Further we migrate from SRE eInsight and use manuell restart on failure which does not have a corresponding handling in JCAPS.

  • Exception handling in Custom Login procedure

    Hi,
    I have a custom login procedure. Now instead of handling the possible exceptions in a custom way too, I want to use the syntax of the exception handling API (probably the one in the PDK) the default login procedure uses. Can someone point me to the values the default login procedure uses?
    Thanks, Tony

    Tony,
    The default login page (the source of which is now unwrapped in 3.0.0), uses the following snippet of code to report the errors:
    if p_error then
    wwerr_api_error_ui.show_inline_html;
    end if;The errors are stacked when the ls_login procedure is executed, and the next time the login page is called up, it just displays the stacked errors.

  • Exception handling with fault message type not working

    Hi,
    I have a sync proxy to proxy scenario and I have created a fault MT and specified in the outbound and Inbound service interface...
    *In Inbound proxy I have the following code--*......
    RAISE EXCEPTION TYPE z_cx_test_fault
    EXPORTING
    standard = l_standard_data.
    In the sender side abap code which calls the outbound proxy I have the follwing code -
    CATCH cx_ai_system_fault INTO lo_cx_ai_system_fault.
    txt = lo_cx_ai_system_fault->get_text( ).
    WRITE txt.
    CATCH z_cx_test_fault INTO lo_cx_test_fault.
    txt = lo_cx_standard_message_fault->get_text( ).
    WRITE txt.
    CATCH cx_ai_application_fault INTO lo_cx_ai_application_fault.
    txt = lo_cx_ai_application_fault->get_text( ).
    WRITE txt.
    when i test the inbound proxy separately I get the custom fault message properly...
    however when i run the proxy to proxy sync scenario and the custom exceptionz_cx_test_fault  is raised inside the receiver proxy .......control goes to CATCH cx_ai_application_fault    and not CATCH  z_cx_test_fault .
    I understand that cx_ai_application_fault is the super class of all the exception class but why does control go to its exception handling when a custom exception is raised...
    Edited by: hema T on Feb 26, 2012 1:16 PM
    Edited by: hema T on Feb 26, 2012 1:17 PM

    Hi
    I tried changing the sequence also but it did not work...
    I can see an appropriate response coming from the receiver in SXMB_MONI of PI...this response has the "fault response "
    "fault detail" data that I want.....however when the control goes to the sender why does it go to CATCH CX_AI_APPLICATION_FAULT and not not my CATCH z_cx_test_fault .
    My observation - If I change the scenario to SOAP to Proxy sync..then the sender SOAP client gets the appropriate custom fault message back.
    Edited by: hema T on Feb 27, 2012 1:17 PM
    Edited by: hema T on Feb 27, 2012 1:17 PM

  • Exception Handling with GUI

    Hi,
    I'm new to Java so I'm a little rusty with exception handling. Please help me with this portion of my code. I'm supposed to screen out the bad input by the user. The user has to enter a double value and not an illegal value, for example: 45ab would be unacceptable. I've tried this way but after entering a number, the program just exits. Thanks first for helping me out.
    import javax.swing.*;
    import java.io.*;
    import java.text.*;
    public class Circle {
    public static double readDouble() {
    boolean done = false;
    String s;
    double d=0;
    while (!done) {
    JOptionPane.showInputDialog("Enter a double : ");
    System.out.flush();
    try {
    BufferedReader in = new BufferedReader (
    new InputStreamReader(System.in));
    s = in.readLine();
    d = Double.parseDouble(s);
    d = new Double(s).doubleValue();
    done = true;
    }catch (IOException e){
    done = true;
    }catch (NumberFormatException e1){
    JOptionPane.showMessageDialog(null,"Error -- input a double -- Try again");
    return d;
    public static void area(){
    double radius1;
    double area;
    radius1 = readDouble();
    area = (radius1 * radius1) * Math.PI;
    // Rounding the area value to 2 decimal places
    NumberFormat nf = NumberFormat.getNumberInstance();
    nf.setMaximumFractionDigits(2);
    JOptionPane.showMessageDialog(null, "The area is " + nf.format(area));
    // There are more code after this.

    Hello, I quickly wrote a possible solution to your problem, hope it will help you. (ICQ #28985387)
    import javax.swing.*;
    public class InputExample {
    public static double getDouble() {
    String input;
    do {
    input = JOptionPane.showInputDialog(null, "Enter a double", "Input", JOptionPane.QUESTION_MESSAGE);
    } while(!validateDouble(input));
    return Double.parseDouble(input);
    private static boolean validateDouble(String input) {
    double num = 0;
    try {
    if(input.length() == 0) {
    JOptionPane.showMessageDialog(null, "Please enter a value", "Warning", JOptionPane.WARNING_MESSAGE);
    return false;
    num = Double.parseDouble(input);
    } catch(NullPointerException exception) {
    System.exit(0);
    } catch(NumberFormatException exception) {
    JOptionPane.showMessageDialog(null, "Not a double", "Warning", JOptionPane.WARNING_MESSAGE);
    return false;
    if (num < -Double.MAX_VALUE || Double.MAX_VALUE < num) {
    JOptionPane.showMessageDialog(null, "Must be between\n" + (-Double.MAX_VALUE) + "\nand " + Double.MAX_VALUE, "Warning", JOptionPane.WARNING_MESSAGE);
    return false;
    return true;
    }

  • JSP with Custom tags error during verify.

    Hi, i am new to JSP and Custom tag Library. The tools that i am using to deploy is "Sun Deploy Tool 8.2" with Sun Application Server. When i try to verify my JSP page i get this error message
    tests.web.AllJSPsMustBeCompilable . I guess there is nothing wrong for my code, will it be path problem, because
    i already check that i had included all the path that i need. Any idea what might cause this problem? Thank You.
    Assertion:All the JSPs that are bundled inside a web application must be compilable using a J2EE compliant JSP compiler that does not have any proprietary or optional features in it.
    For [ /tag/tag.war ]
    Error: Some JSPs bundled inside [ tag ] could not be compiled. See details below.
    org.apache.jasper.JasperException: Unable to compile class for JSP
    An error occurred at line: 12 in the jsp file: /currentTime.jsp
    Here are my class file :
    Custom lib java Class timetag.java
    import javax.servlet.jsp.tagext.*;
    import javax.servlet.jsp.*;
    import java.text.SimpleDateFormat;
    public class timetag extends TagSupport{
         public int doEndTag() throws JspException
              SimpleDateFormat sdf;
              sdf = new SimpleDateFormat("HH:mm:ss");
              String time = sdf.format(new java.util.Date());
              try {
                   pageContext.getOut().print(time);
              }catch(Exception ex)
                   throw new JspException(ex.toString());
              return EVAL_PAGE;
    Tag file *.tld : examplesTag.tld
    <?xml version="1.0" encoding="ISO-8859-1" ?>
    <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/web-jsptaglibrary_2_0.xsd"
    version="2.0">
    <tlib-version>1.0</tlib-version>
    <jsp-version>2.0</jsp-version>
    <short-name>ExamplesTags</short-name>
    <description>A set of example tag handlers.</description>
    <tag>
    <name>time</name>
    <tag-class>timetag</tag-class>
    </tag>
    </taglib>
    JSP File : currentTime.jsp
    <?xml version="1.0" encoding="ISO-8859-1" ?>
    <%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <%@ taglib prefix="examples" uri="/WEB-INF/examplesTags.tld" %>
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
    <title>Insert title here</title>
    </head>
    <body>
    <examples:time /> //If i remove this it will be fine.
    </body>
    </html>

    I am sorry for the double post because the format mess up..Please ignore this POST..Apologies again..Thanks

  • Exception handling in ODI - common exception handling framework

    Hi,
    I need to come up with a common exception handling framework in an environment where ESB and ODI are being used for interfacing and ELT operations. I am of the opinion that
    1. I am not able to find any documentation wrt exception handling when ODI is used? Can some one help me with some pointers?
    2, When I come up with a common exception handling framework using BPEL, will I be able to invoke the same from ODI.
    Thanks,
    Mahesh

    Thanks for the reply Allan. I haven't used BusinessWorks.
    I did go through this thread before and here's my understanding.
    1. ESB provides the ability of error handling (client management API) but not the exception handling i.e. I can't redirect the flow in case there is an exception in my primary flow. Am I right with my understanding?
    2. Error handling ability of ESB is limited to retryable exceptions viz-a-viz asynchrounous ESB processes (e.g. database listener not up) where in the process can be retried. Am I right here?
    Thanks,
    Mahesh

  • Problem with custom tag

    I have written a custom tag that I am having problems with. It works on some machines, but not on others. I have a page that uses many 'standard' tags. I have correctly set the URI etc, because all of my other tags work. However, on some machines, my custom tag gives me an error:
    attribute does not support request time values
    I'm assuming that I have the correct versions of standard.jar etc because all of the regular jstl 1.1 tags work. It is just my custom tag that throws an error.
    here is the .tld for my tag:
    <?xml version="1.0" encoding="ISO-8859-1" ?>
    <!DOCTYPE taglib PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.2//EN" "http://java.sun.com/dtd/web-jsptaglibrary_1_2.dtd">
    <taglib>
         <tlib-version>1.1.2</tlib-version>
         <jsp-version>1.2</jsp-version>
         <short-name>My custom tag</short-name>
         <uri>http://my.custom/tags</uri>
         <tag>
              <name>breadcrumb</name>
              <tag-class>tag.BreadcrumbTag</tag-class>
              <body-content>JSP</body-content>
              <attribute>
                   <name>breadcrumbs</name>
                   <required>true</required>
                   <rtexprvalue>false</rtexprvalue>
                   <description>Pass in the list of Breadcrumbs containing the actual information
    about what tags need to be rendered on the page.</description>
              </attribute>
         </tag>
    </taglib>
    Any thoughts/help greatly appreciated...

    I encountered the same problem in our environment. I did the same thing as
              James. Simply re-initialize all variables in the do end tag.
              Also, with the nested tags you use you may also need to implement cloneable
              in the inner tag if the outer tag keeps references to all the inner tag
              instances.
              For instance if the outer tag kept a vector of references to the inner tag,
              then you would need to use clone() on the inner tag before adding it to the
              vector.
              "James Lynn" <[email protected]> wrote in message
              news:3af05d29$[email protected]..
              > > But
              > > with WL 6.0, the cell tag handler reuse the same instance each time the
              > cell tag
              > > is called and the member field is not reset
              >
              > I had the same problem. As a work around, I reinitialize everything in my
              > doEndTag() method and it works.
              >
              >
              > --
              > James Lynn - Lead Software Architect
              > Oakscape - Java Powered eBusiness Solutions <http://www.oakscape.com/>
              >
              >
              

  • Problem with custom tags

    Hello..
    I have created custom tags and she gives an error me.
    The code is:
    <%@ taglib uri="mitaglib.tld" prefix="ejemplos" %>
    <HTML>
    <HEAD>
    <TITLE>Tag Hola Mundo</TITLE>
    </HEAD>
    <ejemplos:holamundo/><br>
    <ejemplos:SumaTag num1="2" num2="6" />
    </BODY>
    </HTML>
    The class:
    package helperClasses;
    import java.io.*;
    import javax.servlet.jsp.*;
    import javax.servlet.jsp.tagext.*;
    public class hm extends TagSupport{
    public int doStartTag() throws JspException
    try
    pageContext.getOut().print("Hola Mundo");
    catch (IOException e)
    throw new JspException("Error: IOException" + e.getMessage());
    return SKIP_BODY;
    public int doEndTag() throws JspException
    return EVAL_PAGE;
    package helperClasses;
    import java.io.*;
    import javax.servlet.jsp.*;
    import javax.servlet.jsp.tagext.*;
    public class SumaTag extends TagSupport{
    private int num1,num2;
    public void setNum1(int num1){
    this.num1 = num1;
    public void setNum2(int num2){
    this.num2 = num2;
    public int doStartTag() throws JspException {
    try{
    pageContext.getOut().print("Suma: " + (num1+num2));
    } catch (IOException e) {
    throw new JspException ("Error: IOException" +
    e.getMessage());
    return SKIP_BODY;
    public int doEndTag() throws JspException {
    return SKIP_PAGE;
    The file mitaglib.tld is:
    <?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>ejemplos</shortname>
    <uri></uri>
    <info>Etiquetas de ejemplo</info>
         <tag>
         <name>holamundo</name>
         <tagclass>helperClasses.hm</tagclass>
         <bodycontent>empty</bodycontent>
         <info>Saludo</info>
         </tag>
         <tag>
         <name>suma</name>
         <tagclass>helperClasses.SumaTag</tagclass>
         <bodycontent>empty</bodycontent>
         <info>Saludo</info>
         <attribute>
         <name>num1</name>
         <required>true</required>
         <rtexprvalue>false</rtexprvalue>
         </attribute>
         <attribute>
              <name>num2</name>
         <required>true</required>
         <rtexprvalue>false</rtexprvalue>
         </attribute>
         </tag>
    </taglib>

    [22/Dec/2003:09:43:47] failure (11848): Internal error: Unexpected error condition thrown (unknown exception,no description), stack: java.lang.NoSuchMethodError: javax.servlet.jsp.tagext.TagAttributeInfo.<init>(Ljava/lang/String;ZLjava/lang/String;Z)V
         at org.apache.jasper.compiler.TagLibraryInfoImpl.createAttribute(TagLibraryInfoImpl.java:518)
         at org.apache.jasper.compiler.TagLibraryInfoImpl.createTagInfo(TagLibraryInfoImpl.java:426)
         at org.apache.jasper.compiler.TagLibraryInfoImpl.parseTLD(TagLibraryInfoImpl.java:379)
         at org.apache.jasper.compiler.TagLibraryInfoImpl.<init>(TagLibraryInfoImpl.java:227)
         at org.apache.jasper.compiler.JspParseEventListener.handleDirective(JspParseEventListener.java:701)
         at org.apache.jasper.compiler.DelegatingListener.handleDirective(DelegatingListener.java:110)
         at org.apache.jasper.compiler.Parser$Directive.accept(Parser.java:215)
         at org.apache.jasper.compiler.Parser.parse(Parser.java:1077)
         at org.apache.jasper.compiler.Parser.parse(Parser.java:1042)
         at org.apache.jasper.compiler.Parser.parse(Parser.java:1038)
         at org.apache.jasper.compiler.Compiler.compile(Compiler.java:218)
         at org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadJSP(JspServlet.java:193)
         at org.apache.jasper.servlet.JspServlet$JspServletWrapper.access$4(JspServlet.java:167)
         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:477)
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:589)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:865)
         at com.iplanet.server.http.servlet.NSServletRunner.invokeServletService(NSServletRunner.java:897)
         at com.iplanet.server.http.servlet.WebApplication.service(WebApplication.java:1065)
         at com.iplanet.server.http.servlet.NSServletRunner.ServiceWebApp(NSServletRunner.java:959)

  • Problem with custom tag attribute types

    Hi,
    I try to figure out how to pass an attribute to a custom tag that is of a type other than "String"?
    In my case, I should pass an attribute with a type of "java.util.ResourceBundle".
    My tag looks like this:
    <tt:cs sel="ab" ce="<%= java.util.ResourceBundle.getBundle("de", Application.getApp().getLocale())%>" />
    I always get the message that the attribute ce is empty.
    Isn't it possible to have attirbutes that are of an other type than string? How could I solve this problem?
    Thanks a lot!
    Regards Patrick

    In JSP 1.2, in the Tag Library Descriptor, you can specify a tagt attribute as
    <attribute>
       <name>attr1</name>
       <required>true|false|yes|no</required>
       <rtexprvalue>true|false|yes|no</rtexprvalue>
       <type>fully-qualified_type</type>
    </attribute> Notice the XML element <type>fully-qualified_type</type>
    Not sure if you can do this in JSP 1.1

  • Problems with custom tags (Tomcat 4.1)

    I have been trying to set up an existing web application to use a custom tag library. I have these tag-related files:
    /photodb/WEB-INF/photodb.tld
    /photodb/WEB-INF/classes/PhotoListTag.class
    /photodb/photolist.jsp
    This is how i have the photoList tag configured in photodb.tld
    <tag>
    <name>photoList</name>
    <tag-class>PhotoListTag</tag-class>
    <body-content>JSP</body-content>
    <attribute>
    <name>startIndex</name>
    </attribute>
    </tag>
    When i try to view photolist.jsp, i get this error:
    org.apache.jasper.JasperException: Unable to compile class for JSP
    An error occurred at line: -1 in the jsp file: null
    Generated servlet error:
    [javac] Compiling 1 source file
    C:\Program Files\Apache Group\Tomcat 4.1\work\Standalone\localhost\photodb\photolist_jsp.java:73: cannot resolve symbol
    symbol : class PhotoListTag
    location: class org.apache.jsp.photolist_jsp
    PhotoListTag jspxth_photodb_photoList_0 = (PhotoListTag) jspxtagPool_photodb_photoList.get(PhotoListTag.class);
    ^
    C:\Program Files\Apache Group\Tomcat 4.1\work\Standalone\localhost\photodb\photolist_jsp.java:73: cannot resolve symbol
    symbol : class PhotoListTag
    location: class org.apache.jsp.photolist_jsp
    PhotoListTag jspxth_photodb_photoList_0 = (PhotoListTag) jspxtagPool_photodb_photoList.get(PhotoListTag.class);
    ^
    C:\Program Files\Apache Group\Tomcat 4.1\work\Standalone\localhost\photodb\photolist_jsp.java:73: cannot resolve symbol
    symbol : class PhotoListTag
    location: class org.apache.jsp.photolist_jsp
    PhotoListTag jspxth_photodb_photoList_0 = (PhotoListTag) jspxtagPool_photodb_photoList.get(PhotoListTag.class);
    ^
    3 errors
    I have tried many ideas, such as packaging the tag handler class, and putting the class file in other loctions, but nothing has helped.
    I know that Tomcat is recognizing PhotoListTag at some point (when it parses the TLD file, but not when compiling the JSP, I think), because if i change the <tag-class> to an invalid class, i get an "Unable to load class photoList" (which is a confusing error message btw, as photoList is not a class, but a tag name).
    Does anyone know how to fix this problem? I've been going in circles for hours, and i'm thinking this problem has a simple solution.

    Thank you for your quick replies. Unfortunately, they do not solve my problem. If I put PhotoListTag in the com.yourdomain package (and move it to classes/com/yourdomain), the error changes to reflect the different package (e.g. package com.yourdomain does not exist). Also, deleting the class files and restarting Tomcat did not cause any changes.
    Although my knowledge of how Tomcat works is limited, it seems to me that something like this is happening:
    When a request for /photodb/photolist.jsp is recieved, tomcat processes that file, processes the tld file, and checks for that any classes called using a tag--in this case <photodb:photoList>--exist. If the class is invalid, the error message "Unable to load class photoList" is given.
    Otherwise, it translates the jsp into java, and attempts to compile it. This is where the problem occurs. It seems that the jasper compiler does not know where to look for the PhotoListTag class. Is there a way that this can be changed, or is could the problem be caused by something else?

  • JDev 9.0.3 - Working with Custom Tags Hangs JDev Repeatedly!

    All,
    I recently upgraded from JDev 9.0.2 to 9.0.3 because of the new support for JSP 1.2 and Servlets 2.3. As you probably know, JSP 1.2 includes additional support for custom tag development. Unfortunately, JDev 9.0.3 keeps hanging repeatedly when trying to work with a custom tag library. I have seen a couple other postings on this forum that indicate the fact that I'm not alone in this experience.
    It seems that I am able to open a taglib and make a modification, and then save the taglib without a problem. However, if I attempt to make any further changes to that taglib again without restarting JDev, it just hangs JDev and I have to kill the JDev process and restart JDev. This has made JDev extremely frustrating and unusable developing custom tags. I do not have this problem with JDev 9.0.2, but that version does not support the additionally tag library functionality of JSP 1.2, which is supported by 9.0.3.
    Is this a bug with 9.0.3? Does anyone know of a workaround I can try?
    Thanks in advance,
    Kyle Corley

    Hi,
    Logged as bug 2725712.
    Thanks,
    Brian
    JDev Team

  • Error while running JSP with custom tag

    I am trying to run a jsp with a tag and I am getting the following error when I run the jsp:
    "Unable to open taglibrary /WEB-INF/jsp/mytaglib.tld : Parse Error in the tag library descriptor: External parameter entity "%(DOCTYPE);" has characters after markup."
    I have no idea what this is, can anyone help me here?
    tx
    -AB

    Its difficult to tell without looking at your TLD file i.e. mytaglib.tld
    However, a guess is that you may be refering to an invalid or otherwise corrupted DTD from your TLD.
    Check that out.
    The official DTD for TLDs in JSP 1.1 is http://java.sun.com/j2ee/dtds/web-jsptaglibrary_1_1.dtd
    and the official DTD for TLDs in JSP 1.2 is http://java.sun.com/dtd/web-jsptaglibrary_1_2.dtd

  • Build-time errors with custom tags in wkshop sp3

    We have custom tags which create tag variables declared in the .tld file as follows:
    <tag>
    <name>contentsIterator</name>
    <tag-class>org.cap.documentaccess.taglibs.ContentsIteratorTag</tag-class>     <tei-class>org.cap.documentaccess.taglibs.ContentsIteratorTEI</tei-class>
    <body-content>JSP</body-content>
    <display-name>Contents Iterator</display-name>
    <description>
    </description>
    <variable>          <name-from-attribute>id</name-from-attribute>          <variable-class>org.cap.documentaccess.Content</variable-class>
    <declare>true</declare>
    <scope>NESTED</scope>
    </variable>
    <attribute>
    <name>id</name>
    <required>false</required>
    <rtexprvalue>false</rtexprvalue>
    <description>
    </description>
    </attribute>
    The calling jsp contains the following:
    <cap:contentsIterator id="content">
    The app built fine in wkshop(sp2) but in sp3 we get the following:
    A name-from-attribute variable cannot reference a tag attribute that is request time or is not required.
    Has the sp3 compiler become less forgiving or was this an oversight in sp2?

    if u are using weblogic workshop for ur application import c.tld into WEB-INF
    and just import standard.jar, jstl.jar to WEB-INF/lib.
    if u are using other than weblogic work shop like tomcat
    1.just copy c.tld to WEB-INF.
    2.create a 'lib' directoty inside WEB-INF copy standard.jar,jstl.jar files to that lib directory.
    i think it should work.

  • Recurison with custom tags

    Is Binary tree traversal possibe using custom tags?. The scriptiong variable need to be set in the JSP page on traversal of each node. Any suggestions will be appreciated.
    thanks
    sprasad

    thanks for suggestion.but the issue here is not actually traversing the binary tree(which is major focus in XML). It would be possible to do that using recursive method in tag. But the problem is that how to assign them to the scripting variables in the JSP.
    While using the recursion , how to set the variables in the bodycontent.

Maybe you are looking for

  • Listener EA2: database connection pool and connection revalidation

    Hi all, As one can expect from early adopter release there could be some bugs but I can't find any references in forum to my situation: * My 11g XE database and listener are starting as windows services when server boots operating system (Windows Ser

  • Issue in ESS

    Hi All, When we login into ESS and navigate to leave ---> cashout ann lve /lsl/bel then we are getting the below error. com.sap.mw.jco.JCO$Exception: (104) RFC_ERROR_SYSTEM_FAILURE: Conversion error between two character sets. 500   Internal Server E

  • PI 7.1 Adapter Modules not longer available/moved?

    Hi everybody, in our file sender cc on XI 3.0 we got the following adapter modules to transform special (german) characters: localejbs/AFModules/MessageTransformBean_ localejbs/AFModules/TextCodepageConversionBean_ When I try to use this modules in P

  • CyberPower PowerPanel Business Edition client installation

    In case there's anyone out there that is trying to install the cyberpower power panel client software to manage the interaction between a cyberpower ups agent and a solaris box, here are the instructions to get it working. Basically, the software use

  • Condition record table

    Hi I want to make a report of all the cust-material price with validty which are stored in VK12.How can i do it.Is there a particular Tcode or table name where i can get all the price with cust ,material and vality period of condition type.. Thankyou