Custom tag problem (parent/child tag)

I have a table tag and a column tag that I'm using in my application to display records.
The first time through it sets up headers and keeps a coun't of the columns.
The second time through it starts putting data in the fields. The problem I'm having is that I set a counter in the column tag. When it hits the first column it increments it from 0 to 1. When it hits the second column the counter has lost its value and is back to 0.
This only occurs if I have the align="Left". Or more precisely when some of the columns have align and some don't.... To fix this I can add align="right" to all the columns... but I have it defaulting to right and don't think I should have to include it.. can someone explain to me why this is occuring?
<xxx:table name="columnData" scope="request" scrollable="Yes">
     <xxx:column key="selectorColumn:FILEID" title="Select" />
     <xxx:column key="50" title="VTFHBRForm.de50" align="Left"/>
     <xxx:column key="110" title="VTFHBRForm.de110" />
     <xxx:column key="330" title="VTFHBRForm.de330" />
     <xxx:column key="320" title="VTFHBRForm.de320" />
     <xxx:column key="160" title="VTFHBRForm.de160" />
     <xxx:column key="5" title="VTFHBRForm.de5" />
     <xxx:column key="500" title="VTFHBRForm.de500" />
     <xxx:column key="510" title="VTFHBRForm.de510" />
     <xxx:column key="240" title="VTFHBRForm.de240" />
     <xxx:column key="150" title="VTFHBRForm.de150" />
     <xxx:column key="170" title="VTFHBRForm.de170" />
     <xxx:column key="140" title="VTFHBRForm.de140" />
     <xxx:column key="480" title="VTFHBRForm.de480" />
     <xxx:column key="172" title="VTFHBRForm.de172" />
     <xxx:column key="270" title="VTFHBRForm.de270" />
</xxx:table>

u have not define what child tad retrieves (null?) or u mean to say EL is not evaluated...
because in my tag i had faced the problem for not evaluating the EL.
(although i had done rexp...=true).
could u put ur custom tag code then perhaps, i could say the solutiong

Similar Messages

  • Parent Child Hierarchy - Display other dimension fields against parent

    Hi,
    I have a Dimension for Customer with a parent child hierarchy.  The problem I have is with additional fields within the dimension.  See data below:
    Row Labels
    Customer Group   Description
    Value
    500116 - OOO "Starline"
    30
       500116 - OOO "Starline"
    A - Dealer
    5
       818781 - OKNO
    Direct / End User
    10
       400464 - OKNO TV
    Other
    15
    500123 - VIDAU SYSTEMS
    300
      500123 - VIDAU SYSTEMS
    A - Dealer
    100
      400396 - VIDAU SYSTEMS
    Other
    200
    Grand   Total
    330
    I want the Customer Group to show "A - Dealer" for the parent of the first row (against "500116 - OOO "Starline"), but its shown blank.  Also, I would like other fields to do the same.  As the parent relates to a row in
    my dimension table, this should be possible?
    Thanks in advance,
    Dominic

    Hi,
    Sorry it took me a while to come back to this.
    My dimension has the following columns:
    ID
    Customer
    Customer Group
    Parent
    1
    500116
    A - Dealer
    NULL
    2
    818781
    Direct / End User
    1
    2
    400464
    Other
    1
    My measure has 3 rows:
    customerKey
    value
    1
    5
    2
    10
    3
    15
    So when this is presented in the cube, the 3 items with values are correctly presented but my problem is that the "Customer Group" doesnt show against record 1 (the parent).  In usual circumstances my users will not expand the hierarchy, i
    just want the associated row value shown.
    Does this make more sense?  I hope so, and i hope somebody can help me resolve it.
    Thanks,
    Dom

  • Custom Tags starting with $: lots of problems

    I'm building an extension for MovableType template tags.
    Those tags can be delimited in several ways: <MTNameOfTheTag>
    or <$MTNameOfTheTag> or even <$MTNameOfTheTag$>. Since
    the dollar sign is not allowed as tag name, i put a
    prefix="&lt;$" in tag definition, but now i have some problems:
    1. even if in tag chooser i can see the dollar-prefixed tags,
    i cannot see them in code hints (I mean "automatic" code hints,
    those floating menus automatically made for every tag/every
    attribute/every enumerated attriboption in library).
    2. I tried to manually code tags in codehints.xml file with
    the "&lt;$ pattern (so i can change the icon associated to my
    custom tags, too. That's will be very elegant) but I loose "child"
    codehints menus: the first codehints menu (the one i manually made)
    comes up, but those for attributes and attributes values don't.
    3. With the solution in point 2 not only i loose "automatic"
    codehints, but i have to write THREE files for every tag
    (taglibrary, codehins, third party tags file). Lot of time :/
    4. Dollar signs, in both start and end, are NOT part of the
    name, but part of the tag, like a prefix or a suffix. With an
    attribute i should have:
    <$MTBlogName donald="goofie"$>
    and not:
    <$NTBlogName$ donald="goofie">
    as actually i have
    so, as i said...a lot of problems! i hope someone can help
    me...its really an hard sunday, today! :/
    tnx in advance

    I think you might be moving into creating your own server
    model.
    Just a thought.

  • Problem Calling Query in Custom Tag

    I am using this code to call a custom tag called
    broadcast.cfm
    <cf_broadcast query="fe" orgID = "4">
    The query fe is an included file on my site and is available
    to the page I'm calling the custom tag from.
    In the custom tag I am referencing the query like:
    <cfloop query="#attributes.query#">
    but I keep getting this error:
    "The value of the attribute query, which is currently "fe",
    is invalid. "
    I must be missing something really simple here but can't
    figure out what.

    quote:
    Originally posted by:
    -==cfSearching==-
    rdk8487 wrote:
    > In the custom tag I am referencing the query like:
    > <cfloop query="#attributes.query#">
    > but I keep getting this error:
    > "The value of the attribute query, which is currently
    "fe", is invalid. "
    It is a scoping problem. The query is defined in the calling
    page. To access it by name, within the custom tag, use the "caller"
    scope.
    <cfloop query="caller.#attributes.nameOfTheQuery#">
    If the query object is passed to the custom tag via an
    attribute you shouldn't need the caller scope. See attached sample.

  • Custom Tag Capitalization Problem..

    All,
              OS: Windows 2000
              App Server: Weblogic 6.0 sp 2
              JDK: 1.3 (and tried 1.3.1)
              I have a set of custom tags that run fine when I use them on an app server (such as Enhydra) with JDK 1.2.2, but when I switch to JDK 1.3.x, which weblogic 6.x requires, they suddenly start generating errors with attributes which have capitalized letters in them. For example, in my taglib I have:
              <attribute>
              <name>closeConnection</name>
              <required>false</required>
              <rtexprvalue>true</rtexprvalue>
              </attribute>
              and in the support class I have:
              * Get the value of closeConnection.
              * @return value of closeConnection.
              public boolean getCloseConnection() {
              return closeConnection;
              * Set the value of closeConnection.
              * @param v Value to assign to closeConnection.
              public void setCloseConnection(String v) {
              if(v.toUpperCase().equals("TRUE")){
              this.closeConnection = true;
              } else {
              this.closeConnection = false;
              When I go to the page that this tag is on, I get the following output:
              Parsing of JSP File '/index.jsp' failed:
              /index.jsp(1): Error in using tag library uri='/cwerks' prefix='cwerks': There is no setter method for property 'closeconnection', for Tag class 'net.cwerks.taglib.MyTag'
              probably occurred due to an error in /index.jsp line 1:
              <%@ taglib uri="/cwerks" prefix="cwerks" %>
              Thu Aug 02 19:06:52 PDT 2001
              Note that the 'closeconnection' is all lowercase despite the fact that it is upper case in the tld and in the class itself.
              I came across a similar problem in weblogic 5.1 when I upgraded from JDK 1.2.2 to JDK 1.3. I tried changing the JDK for weblogic 6.0 sp 2 to 1.2.2, but a dll was missing. I also tried switching it to 1.3.1, but that did not help. It seems like introspection may have changed slightly between the two version. I'm shocked, and a bit suspicious, that I haven't seen this problem all over the newsgroups. Anyone else seen this?
              Thank you,
              Carson Gross
              [email protected]
              [att1.html]
              

    A solution presents itself:
              The problem was NOT with capitalization. Instead, the problem was as
              follows:
              My method was for setting a boolean, but I took a string so that people
              wouldn't have to type:
              <mytags:tag foo="<%=true%>" />
              instead, they could type:
              <mytags:tag foo="true" />
              which would call the setter method with a string "true", which would be then
              converted to a boolean within my class.
              So my setter has this signature:
              public void setFoo(String s)
              and my getter has this signature:
              public boolean getFoo() /* I know this isn't standard, but isFoo doesn't
              sound good to me*/
              I can't tell if it's because JavaBeans changed slightly between jdk 1.2.2
              and 1.3.x, or if Weblogic changed the way that they do things (I suspect the
              latter, since I had things working fine in WL 5.2 w/ jdk 1.2.2 and then
              things broke with WL 5.2 w/ jdk 1.3), but this no longer returns foo as a
              valid property to be set, and since weblogic 6.x relies on JavaBeans,
              instead of straight up introspection, it barfs. (I found this out by using
              jad/emacs, a wicked combination for those who want to poke around in jars).
              Anyway, I hope I can save someone else who has this same, albeit
              specialized, problem a lot of pain by my discovery. Your getters and
              setters better be of the same type with custom tags, or weblogic w/ jdk1.3.x
              is gonna barf when parsing the tld.
              Cheers, and thank God that's behind me,
              Carson Gross
              [email protected]
              ====================================================
              "Carson Gross" <[email protected]> wrote in message
              news:[email protected]...
              The plot grows thicker...
              The tags work fine on Tomcat 3.2.2
              I deploy the example tags that came with wl60 that have more than one
              capital letter in thier attributes, and they work fine. But my tag library
              stubbornly insists on not working so long as I keep the attributes with more
              than one capital letter in. If I remove the offending attributes, or change
              them to have only one capital letter, they work, but this is not an
              acceptable solution. (I guess.)
              I even created an simple introspection class to make sure that the acutal
              methods were there. They were.
              I am at a complete loss here... I guess it's tomcat for now.
              Cheers,
              Carson Gross
              [email protected]
              "Carson Gross" <[email protected]> wrote in message
              news:[email protected]...
              All,
              OS: Windows 2000
              App Server: Weblogic 6.0 sp 2
              JDK: 1.3 (and tried 1.3.1)
              I have a set of custom tags that run fine when I use them on an app server
              (such as Enhydra) with JDK 1.2.2, but when I switch to JDK 1.3.x, which
              weblogic 6.x requires, they suddenly start generating errors with attributes
              which have capitalized letters in them. For example, in my taglib I have:
              <attribute>
              <name>closeConnection</name>
              <required>false</required>
              <rtexprvalue>true</rtexprvalue>
              </attribute>
              and in the support class I have:
              * Get the value of closeConnection.
              * @return value of closeConnection.
              public boolean getCloseConnection() {
              return closeConnection;
              * Set the value of closeConnection.
              * @param v Value to assign to closeConnection.
              public void setCloseConnection(String v) {
              if(v.toUpperCase().equals("TRUE")){
              this.closeConnection = true;
              } else {
              this.closeConnection = false;
              When I go to the page that this tag is on, I get the following output:
              Parsing of JSP File '/index.jsp' failed:
              /index.jsp(1): Error in using tag library uri='/cwerks' prefix='cwerks':
              There is no setter method for property 'closeconnection', for Tag class
              'net.cwerks.taglib.MyTag'
              probably occurred due to an error in /index.jsp line 1:
              <%@ taglib uri="/cwerks" prefix="cwerks" %>
              Thu Aug 02 19:06:52 PDT 2001
              Note that the 'closeconnection' is all lowercase despite the fact that it is
              upper case in the tld and in the class itself.
              I came across a similar problem in weblogic 5.1 when I upgraded from JDK
              1.2.2 to JDK 1.3. I tried changing the JDK for weblogic 6.0 sp 2 to 1.2.2,
              but a dll was missing. I also tried switching it to 1.3.1, but that did not
              help. It seems like introspection may have changed slightly between the two
              version. I'm shocked, and a bit suspicious, that I haven't seen this
              problem all over the newsgroups. Anyone else seen this?
              Thank you,
              Carson Gross
              [email protected]
              

  • 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

  • Custom Tag -- Custom Component problems with iframes

    I have a "project" component that originally iterated over a list of models and created/renderered the corresponding (and fairly complex) interactive UI components for those models. On the client-side, the output from these were then organized neatly into "tabs" via CSS ... all on one page. Since these UI Components are so hefty, when any iteraction was done on one of them, the whole page had to re-render and things got just plain slow. To get around this limitation, I decided to have my "project" component no longer create the UI components himself, but instead generate an IFRAME that points to a page that will generate a single component. This way, any iteraction will just cause that single IFRAME to refresh.
    Due to the fact that an IFRAME can only be populated by using the src attribute, I have created a page that contains a JSF View (<faces:view>) and inside is a single custom tag of mine (<mine:displayView>). Let's call this page singleDisplayView.jsf. I create iframes that point to singleDisplayView.jsf with different request params for each (singleDisplayView.jsf?modelName=Foo, singleDisplayView.jsf?modelName=Bar, etc.)
    The displayView tag has one attribute called requestQueryString and I use the tag like so:
    <t:displayView requestQueryString="<%=request.getQueryString()%>" />The displayView tag's class is DisplayViewTag. In DisplayViewTag::setProperties(UIComponent uiComponent) method, I get the model name out of the request map and set this property on the UIComponent.
    The problem is that I'm noticing that as the main page (that contains these frames) loads, setProperties() is only being called twice. After that, the components created by subsequent iframes just seem to be using the modelName from the second frame.
    Is there a syncronization issue I don't understand?
    Any ideas?
    Any help would be much appreciated.
    Thanks in advance,
    Mark

    On a possibly related note, I read this in an article of the JSF application lifecycle:
    In the first phase of the JSF lifecycle -- restore view -- a request comes
    through the FacesServlet controller. The controller examines the request and
    extracts the view ID, which is determined by the name of the JSP page.Could it be that the lifecycle is trying to reuse components from a single view, since all these iframes are pointing to the same page?

  • Custom Tag Problem With iPlanet

    Hi,
    I've followed the instructions for creating Custom Tags located at: http://docs.iplanet.com/docs/manuals/enterprise/41/rn41sp9.html#18776. I'm using the examples provided and am still getting the:
    org.apache.jasper.JasperException: Unable to open taglibrary /jsps/test-tags.jar : com.sun.xml.tree.TextNode
    error. I've followed the instructions "Make sure you have the DOCTYPE in your taglib.tld..." but I still get the error.
    iPlanet 4.1 Enterprise on Windows 2000
    Any ideas?
    Thanks in advance.

    Hey i am also getting the same error, please let me know if u had solved this problem. i have copied the error message below
    [25/Feb/2002:15:00:46] info ( 260): JSP: JSP1x compiler threw exception
    org.apache.jasper.JasperException: Unable to open taglibrary /jsps/test-tags1.jar : in is null
         at org.apache.jasper.compiler.JspParseEventListener.handleDirective(JspParseEventListener.java:708)
         at org.apache.jasper.compiler.DelegatingListener.handleDirective(DelegatingListener.java:119)
         at org.apache.jasper.compiler.Parser$Directive.accept(Parser.java:190)
         at org.apache.jasper.compiler.Parser.parse(Parser.java:1048)
         at org.apache.jasper.compiler.Parser.parse(Parser.java:1022)
         at org.apache.jasper.compiler.Parser.parse(Parser.java:1018)
         at org.apache.jasper.compiler.Compiler.compile(Compiler.java:173)
         at com.netscape.server.http.servlet.NSServletEntity.load(NSServletEntity.java:230)
         at com.netscape.server.http.servlet.NSServletEntity.update(NSServletEntity.java:149)
         at com.netscape.server.http.servlet.NSServletRunner.Service(NSServletRunner.java:453)
    [25/Feb/2002:15:00:46] warning ( 260): Internal error: Failed to get GenericServlet. (uri=/web/jsps/test-tags.jsp,SCRIPT_NAME=/web/jsps/test-tags.jsp)

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

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

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

  • JSF custom tag body content problem

    Hi, I'm having some problem with a custom tag I built, but the body of the tag content is not rendered correctly.
    I have:<foo:bar>
        <ul>
            <li>blah</li>
            <li>blah</li>
        </ul>
    </foo:bar>
    </pre>But the rendered html source look like this:    <ul>
            <li>blah</li>
            <li>blah</li>
        </ul>
    <!-- beging foo tag -->
    <!-- end foo tag -->The <ul> tags are supposed to be inside of the <!-- begin foo --> & <!-- end foo -->. I've declared in TLD it has JSP content. I've compared to the J2EE tutorial and corejsp book again and again, couldn't figure where I went wrong. So, am I missing something?
    Thanks a lot.

    Use <f:verbatim> around the non-jsf content.
    I.e.<foo:bar>
    <f:verbatim>
        <ul>
            <li>blah</li>
            <li>blah</li>
        </ul>
    </f:verbatim>
    </foo:bar>--
    Sergey : jsfTutorials.net

  • Weird problem - Custom Tags

    Hello,
    I'm having a strange problem with my app. I've developed a custom tag and placed it on one of my xhtml files, but it never gets interpreted, no error messages, nothing. When i check the source code i see the tag exactly as i wrote it.
    Does anyone faced a similar problem?
    BTW, i'm using myFaces and Facelets.
    Thanks for any help.

    You can't do it through the value attribute of the c:set tag. But, if you do not have a value attribute in the set tag, you can use the body of the set tag to assign to the var... for example:
    <c:set var="foo">
      <mtag:bar baz="mic"/>
    </c:set>

  • Problem using jsp:include from inside a custom tag

    Hi, All !
              I have a problem using <jsp:include> from inside a custom tag. Exception is:
              "java.lang.ClassCastException: weblogic.servlet.jsp.BodyContentImpl"
              Apparently, weblogic tries to cast BodyContentImpl to JspWriterImpl and
              could not do this. Is it a bug, since in the 1.1 spec is said: "The
              BodyContent is a subclass of JspWriter that can be used to process body
              evaluations so they can retrieved later on."
              My code is:
              <wfmklist:items>
              <jsp:include page="item.jsp" flush="true"/>
              </wfmklist:items>
              

    This is an area of contention with WL. It is not so tolerant with regards to
              the spec. I spent several days recently trying to convince it to accept the
              specification in regards to bodies and includes and it appears to have
              successfully rebuffed my efforts.
              Frankly, this is very disappointing. It appears that some shortcuts were
              taken on the way to JSP 1.1 support, and the result is a very hard-coded,
              inflexible implementation. As I have not seen the implementation myself, I
              hate to assume this, however one could posit that the term "interface" was a
              foreign concept during the implementation, other than as some annoying
              intermediary reference requiring an immediate cast to a specific Weblogic
              class, which in turn is apparently required to be final or have many final
              methods, as if being optimized for a JDK 1.02 JIT.
              I am sorry that I don't have any positive suggestions other than to use a
              URL object to come back in an execute the necessary "include" directly. You
              lose all context (other than session) and that can cause its own problems.
              However, you can generally get the URL approach to work, and you will
              hopefully avoid further frustration.
              Peace,
              Cameron Purdy
              Tangosol, Inc.
              http://www.tangosol.com
              Tangosol: How Weblogic applications are customized
              "Denis" <[email protected]> wrote in message
              news:[email protected]...
              > Hi, All !
              > I have a problem using <jsp:include> from inside a custom tag. Exception
              is:
              > "java.lang.ClassCastException: weblogic.servlet.jsp.BodyContentImpl"
              >
              > Apparently, weblogic tries to cast BodyContentImpl to JspWriterImpl and
              > could not do this. Is it a bug, since in the 1.1 spec is said: "The
              > BodyContent is a subclass of JspWriter that can be used to process body
              > evaluations so they can retrieved later on."
              >
              > My code is:
              > ...
              > <wfmklist:items>
              > <jsp:include page="item.jsp" flush="true"/>
              > </wfmklist:items>
              > ...
              

  • Problem in using jsp 1.1 custom tag library in websphere

    I am using was 3.5.2. Everything has been installed properly. I am using jdeveloper 3.2 for building the jsp application using custom tag library. But when I run the jsp file in browser, its gives dr. watson on java.exe. I am using websphere 3.5.2 application server.
    Have any body got this type of prob. ...
    pls respond asap.
    Thanks in Advance
    Yogesh

    Let me explain the problem again
    I am using was(websphere) 3.5.2. Everything has been installed properly. I am using jdeveloper 3.2 for building the jsp application using custom tag library.
    Application works fine in JDeveloper 3.2.
    Application works fine even when deployed on JRun 3.0. ( we are evaluating various web servers).
    How when deployed on WAS and I run the jsp file in browser, its gives dr. watson on java.exe. I am using websphere 3.5.2 application server.
    WAS has typical settings as against JRun and Tomcat and may be I have not set the necessary paths.
    Have any body got this type of prob. ...
    pls respond asap.
    Thanks in Advance
    Yogesh
    null

  • Adding custom tags and extend ParserDelegator and DTD support problem!!

    Hi all, I searched all forums and google for information about this problem but I did not find any clear solution or example.
    The probem stared when HTMLEditorKit's insertHTML method did not worked for custom tags.
    I extended javax.swing.text.html.parser.ParserDelegator class
    and override it's setDefaultDTD() method, which loads the default dtd (html32 definition). After the dtd field is created it I call this method:
              javax.swing.text.html.parser.Element element = _dtd.defineElement(
                  "template", javax.swing.text.html.parser.Element.SYSTEM, false, false,
                  null, null, null,
                  new AttributeList("value"));where _dtd is instance of DTD class in the same package, and "template" is the name of my custom tag.
    (if i define the element's type as CONTENT instead of SYSTEM the parser removes it)
    So after this,i see that my new tag is in DTD.elements vector and DTD.elementHash hastable, so its defined in DTD structures.
    The problem is that I have to redefine most element's ContentModel field "content" so that the parser will parse correctly the html source.
    Here is the tracing of DTD.elements vector default contents + template tag.Sorry for the long text but i just want to be clear
    Index i 0 element name #pcdata type 19 content null
    Index i 1 element name html type 18 content (head , body , plaintext?)
    Index i 2 element name meta type 17 content null
    Index i 3 element name base type 17 content null
    Index i 4 element name isindex type 17 content null
    Index i 5 element name head type 18 content (title? & isindex? & base? & nextid?)
    Index i 6 element name body type 18 content (h1 | h2 | h3 | h4 | h5 | h6 | p | ul | ol | dir | menu | pre | xmp | listing | plaintext | dl | div | center | blockquote | form | isindex | hr | table | object | #pcdata* | tt | i | b | u | strike | s | big | small | sub | sup | em | strong | dfn | code | samp | kbd | var | cite | a | img | applet | object | font | basefont | br | script | map | nobr | wbr | blink | input | select | textarea | address | frameset | noframes | nohotjava | animate)*
    Index i 7 element name applet type 18 content ((p | ul | ol | dir | menu | pre | xmp | listing | plaintext | dl | div | center | blockquote | form | isindex | hr | table | object | #pcdata* | tt | i | b | u | strike | s | big | small | sub | sup | em | strong | dfn | code | samp | kbd | var | cite | a | img | applet | object | font | basefont | br | script | map | nobr | wbr | blink | input | select | textarea)* | h1 | h2 | h3 | h4 | h5 | h6 | input | select | textarea | tr | td)*
    Index i 8 element name param type 17 content null
    Index i 9 element name p type 18 content (#pcdata* | tt | i | b | u | strike | s | big | small | sub | sup | em | strong | dfn | code | samp | kbd | var | cite | a | img | applet | object | font | basefont | br | script | map | nobr | wbr | blink | input | select | textarea)*
    Index i 10 element name title type 18 content (#pcdata*)*
    Index i 11 element name style type 18 content (#pcdata*)*
    Index i 12 element name link type 17 content null
    Index i 13 element name plaintext type 1 content null
    Index i 14 element name nextid type 17 content null
    Index i 15 element name script type 18 content (h1 | h2 | h3 | h4 | h5 | h6 | p | ul | ol | dir | menu | pre | xmp | listing | plaintext | dl | div | center | blockquote | form | isindex | hr | table | object | #pcdata* | tt | i | b | u | strike | s | big | small | sub | sup | em | strong | dfn | code | samp | kbd | var | cite | a | img | applet | object | font | basefont | br | script | map | nobr | wbr | blink | input | select | textarea | address | frameset | noframes | nohotjava | animate)*
    Index i 16 element name h1 type 18 content (img | br | hr | center | #pcdata* | tt | i | b | u | strike | s | big | small | sub | sup | em | strong | dfn | code | samp | kbd | var | cite | a | img | applet | object | font | basefont | br | script | map | nobr | wbr | blink | input | select | textarea)*
    Index i 17 element name h2 type 18 content (img | br | hr | center | #pcdata* | tt | i | b | u | strike | s | big | small | sub | sup | em | strong | dfn | code | samp | kbd | var | cite | a | img | applet | object | font | basefont | br | script | map | nobr | wbr | blink | input | select | textarea)*
    Index i 18 element name h3 type 18 content (img | br | hr | center | #pcdata* | tt | i | b | u | strike | s | big | small | sub | sup | em | strong | dfn | code | samp | kbd | var | cite | a | img | applet | object | font | basefont | br | script | map | nobr | wbr | blink | input | select | textarea)*
    Index i 19 element name h4 type 18 content (img | br | hr | center | #pcdata* | tt | i | b | u | strike | s | big | small | sub | sup | em | strong | dfn | code | samp | kbd | var | cite | a | img | applet | object | font | basefont | br | script | map | nobr | wbr | blink | input | select | textarea)*
    Index i 20 element name h5 type 18 content (img | br | hr | center | #pcdata* | tt | i | b | u | strike | s | big | small | sub | sup | em | strong | dfn | code | samp | kbd | var | cite | a | img | applet | object | font | basefont | br | script | map | nobr | wbr | blink | input | select | textarea)*
    Index i 21 element name h6 type 18 content (img | br | hr | center | #pcdata* | tt | i | b | u | strike | s | big | small | sub | sup | em | strong | dfn | code | samp | kbd | var | cite | a | img | applet | object | font | basefont | br | script | map | nobr | wbr | blink | input | select | textarea)*
    Index i 22 element name ul type 18 content (p | br | #pcdata* | tt | i | b | u | strike | s | big | small | sub | sup | em | strong | dfn | code | samp | kbd | var | cite | a | img | applet | object | font | basefont | br | script | map | nobr | wbr | blink | input | select | textarea | ol | ul | li)*
    Index i 23 element name ol type 18 content (p | br | #pcdata* | tt | i | b | u | strike | s | big | small | sub | sup | em | strong | dfn | code | samp | kbd | var | cite | a | img | applet | object | font | basefont | br | script | map | nobr | wbr | blink | input | select | textarea | ol | ul | li)*
    Index i 24 element name dir type 18 content (ul | ol | dir | menu | #pcdata* | tt | i | b | u | strike | s | big | small | sub | sup | em | strong | dfn | code | samp | kbd | var | cite | a | img | applet | object | font | basefont | br | script | map | nobr | wbr | blink | input | select | textarea | li)*
    Index i 25 element name menu type 18 content (ul | ol | dir | menu | #pcdata* | tt | i | b | u | strike | s | big | small | sub | sup | em | strong | dfn | code | samp | kbd | var | cite | a | img | applet | object | font | basefont | br | script | map | nobr | wbr | blink | input | select | textarea | li)*
    Index i 26 element name pre type 18 content (#pcdata* | tt | i | b | u | strike | s | big | small | sub | sup | em | strong | dfn | code | samp | kbd | var | cite | a | img | applet | object | font | basefont | br | script | map | nobr | wbr | blink | input | select | textarea)*
    Index i 27 element name xmp type 1 content null
    Index i 28 element name listing type 1 content null
    Index i 29 element name dl type 18 content (p | dl | dt | dd)*
    Index i 30 element name div type 18 content (h1 | h2 | h3 | h4 | h5 | h6 | p | ul | ol | dir | menu | pre | xmp | listing | plaintext | dl | div | center | blockquote | form | isindex | hr | table | object | #pcdata* | tt | i | b | u | strike | s | big | small | sub | sup | em | strong | dfn | code | samp | kbd | var | cite | a | img | applet | object | font | basefont | br | script | map | nobr | wbr | blink | input | select | textarea | address | frameset | noframes | nohotjava | animate)*
    Index i 31 element name center type 18 content (h1 | h2 | h3 | h4 | h5 | h6 | p | ul | ol | dir | menu | pre | xmp | listing | plaintext | dl | div | center | blockquote | form | isindex | hr | table | object | #pcdata* | tt | i | b | u | strike | s | big | small | sub | sup | em | strong | dfn | code | samp | kbd | var | cite | a | img | applet | object | font | basefont | br | script | map | nobr | wbr | blink | input | select | textarea | address | frameset | noframes | nohotjava | animate)*
    Index i 32 element name blockquote type 18 content (h1 | h2 | h3 | h4 | h5 | h6 | p | ul | ol | dir | menu | pre | xmp | listing | plaintext | dl | div | center | blockquote | form | isindex | hr | table | object | #pcdata* | tt | i | b | u | strike | s | big | small | sub | sup | em | strong | dfn | code | samp | kbd | var | cite | a | img | applet | object | font | basefont | br | script | map | nobr | wbr | blink | input | select | textarea | address | frameset | noframes | nohotjava | animate)*
    Index i 33 element name form type 18 content (h1 | h2 | h3 | h4 | h5 | h6 | p | ul | ol | dir | menu | pre | xmp | listing | plaintext | dl | div | center | blockquote | form | isindex | hr | table | object | #pcdata* | tt | i | b | u | strike | s | big | small | sub | sup | em | strong | dfn | code | samp | kbd | var | cite | a | img | applet | object | font | basefont | br | script | map | nobr | wbr | blink | input | select | textarea | address | frameset | noframes | nohotjava | animate)*
    Index i 34 element name hr type 17 content null
    Index i 35 element name table type 18 content (tr | caption)*
    Index i 36 element name object type 18 content (param | (h1 | h2 | h3 | h4 | h5 | h6 | (p | ul | ol | dir | menu | pre | xmp | listing | plaintext | dl | div | center | blockquote | form | isindex | hr | table | object | #pcdata* | tt | i | b | u | strike | s | big | small | sub | sup | em | strong | dfn | code | samp | kbd | var | cite | a | img | applet | object | font | basefont | br | script | map | nobr | wbr | blink | input | select | textarea)* | address)* | input | select | textarea)*
    Index i 37 element name tt type 18 content (#pcdata* | tt | i | b | u | strike | s | big | small | sub | sup | em | strong | dfn | code | samp | kbd | var | cite | a | img | applet | object | font | basefont | br | script | map | nobr | wbr | blink | input | select | textarea | center | p | dl | ul | ol)*
    Index i 38 element name i type 18 content (#pcdata* | tt | i | b | u | strike | s | big | small | sub | sup | em | strong | dfn | code | samp | kbd | var | cite | a | img | applet | object | font | basefont | br | script | map | nobr | wbr | blink | input | select | textarea | center | p | dl | ul | ol)*
    Index i 39 element name b type 18 content (#pcdata* | tt | i | b | u | strike | s | big | small | sub | sup | em | strong | dfn | code | samp | kbd | var | cite | a | img | applet | object | font | basefont | br | script | map | nobr | wbr | blink | input | select | textarea | center | p | dl | ul | ol)*
    Index i 40 element name u type 18 content (#pcdata* | tt | i | b | u | strike | s | big | small | sub | sup | em | strong | dfn | code | samp | kbd | var | cite | a | img | applet | object | font | basefont | br | script | map | nobr | wbr | blink | input | select | textarea | center | p | dl | ul | ol)*
    Index i 41 element name strike type 18 content (#pcdata* | tt | i | b | u | strike | s | big | small | sub | sup | em | strong | dfn | code | samp | kbd | var | cite | a | img | applet | object | font | basefont | br | script | map | nobr | wbr | blink | input | select | textarea | center | p | dl | ul | ol)*
    Index i 42 element name s type 18 content (#pcdata* | tt | i | b | u | strike | s | big | small | sub | sup | em | strong | dfn | code | samp | kbd | var | cite | a | img | applet | object | font | basefont | br | script | map | nobr | wbr | blink | input | select | textarea | center | p | dl | ul | ol)*
    Index i 43 element name big type 18 content (#pcdata* | tt | i | b | u | strike | s | big | small | sub | sup | em | strong | dfn | code | samp | kbd | var | cite | a | img | applet | object | font | basefont | br | script | map | nobr | wbr | blink | input | select | textarea | center | p | dl | ul | ol)*
    Index i 44 element name small type 18 content (#pcdata* | tt | i | b | u | strike | s | big | small | sub | sup | em | strong | dfn | code | samp | kbd | var | cite | a | img | applet | object | font | basefont | br | script | map | nobr | wbr | blink | input | select | textarea | center | p | dl | ul | ol)*
    Index i 45 element name sub type 18 content (#pcdata* | tt | i | b | u | strike | s | big | small | sub | sup | em | strong | dfn | code | samp | kbd | var | cite | a | img | applet | object | font | basefont | br | script | map | nobr | wbr | blink | input | select | textarea | center | p | dl | ul | ol)*
    Index i 46 element name sup type 18 content (#pcdata* | tt | i | b | u | strike | s | big | small | sub | sup | em | strong | dfn | code | samp | kbd | var | cite | a | img | applet | object | font | basefont | br | script | map | nobr | wbr | blink | input | select | textarea | center | p | dl | ul | ol)*
    Index i 47 element name em type 18 content (#pcdata* | tt | i | b | u | strike | s | big | small | sub | sup | em | strong | dfn | code | samp | kbd | var | cite | a | img | applet | object | font | basefont | br | script | map | nobr | wbr | blink | input | select | textarea | center | p | dl | ul | ol)*
    Index i 48 element name strong type 18 content (#pcdata* | tt | i | b | u | strike | s | big | small | sub | sup | em | strong | dfn | code | samp | kbd | var | cite | a | img | applet | object | font | basefont | br | script | map | nobr | wbr | blink | input | select | textarea | center | p | dl | ul | ol)*
    Index i 49 element name dfn type 18 content (#pcdata* | tt | i | b | u | strike | s | big | small | sub | sup | em | strong | dfn | code | samp | kbd | var | cite | a | img | applet | object | font | basefont | br | script | map | nobr | wbr | blink | input | select | textarea | center | p | dl | ul | ol)*
    Index i 50 element name code type 18 content (#pcdata* | tt | i | b | u | strike | s | big | small | sub | sup | em | strong | dfn | code | samp | kbd | var | cite | a | img | applet | object | font | basefont | br | script | map | nobr | wbr | blink | input | select | textarea | center | p | dl | ul | ol)*
    Index i 51 element name samp type 18 content (#pcdata* | tt | i | b | u | strike | s | big | small | sub | sup | em | strong | dfn | code | samp | kbd | var | cite | a | img | applet | object | font | basefont | br | script | map | nobr | wbr | blink | input | select | textarea | center | p | dl | ul | ol)*
    Index i 52 element name kbd type 18 content (#pcdata* | tt | i | b | u | strike | s | big | small | sub | sup | em | strong | dfn | code | samp | kbd | var | cite | a | img | applet | object | font | basefont | br | script | map | nobr | wbr | blink | input | select | textarea | center | p | dl | ul | ol)*
    Index i 53 element name var type 18 content (#pcdata* | tt | i | b | u | strike | s | big | small | sub | sup | em | strong | dfn | code | samp | kbd | var | cite | a | img | applet | object | font | basefont | br | script | map | nobr | wbr | blink | input | select | textarea | center | p | dl | ul | ol)*
    Index i 54 element name cite type 18 content (#pcdata* | tt | i | b | u | strike | s | big | small | sub | sup | em | strong | dfn | code | samp | kbd | var | cite | a | img | applet | object | font | basefont | br | script | map | nobr | wbr | blink | input | select | textarea | center | p | dl | ul | ol)*
    Index i 55 element name a type 18 content (#pcdata* | tt | i | b | u | strike | s | big | small | sub | sup | em | strong | dfn | code | samp | kbd | var | cite | a | img | applet | object | font | basefont | br | script | map | nobr | wbr | blink | input | select | textarea | h1 | h2 | h3 | h4 | h5 | h6 | pre)*
    Index i 56 element name img type 17 content null
    Index i 57 element name font type 18 content (#pcdata* | tt | i | b | u | strike | s | big | small | sub | sup | em | strong | dfn | code | samp | kbd | var | cite | a | img | applet | object | font | basefont | br | script | map | nobr | wbr | blink | input | select | textarea | center | p | dl | ul | ol)*
    Index i 58 element name basefont type 17 content null
    Index i 59 element name br type 17 content null
    Index i 60 element name map type 18 content (base | area)*
    Index i 61 element name nobr type 18 content (#pcdata* | tt | i | b | u | strike | s | big | small | sub | sup | em | strong | dfn | code | samp | kbd | var | cite | a | img | applet | object | font | basefont | br | script | map | nobr | wbr | blink | input | select | textarea)+
    Index i 62 element name wbr type 17 content null
    Index i 63 element name blink type 19 content null
    Index i 64 element name input type 17 content null
    Index i 65 element name select type 18 content (option+)
    Index i 66 element name textarea type 18 content (#pcdata*)*
    Index i 67 element name address type 18 content ((#pcdata* | tt | i | b | u | strike | s | big | small | sub | sup | em | strong | dfn | code | samp | kbd | var | cite | a | img | applet | object | font | basefont | br | script | map | nobr | wbr | blink | input | select | textarea) | p)*
    Index i 68 element name frameset type 18 content (frameset | frame | noframes)*
    Index i 69 element name noframes type 1 content null
    Index i 70 element name nohotjava type 1 content null
    Index i 71 element name animate type 1 content null
    Index i 72 element name tr type 18 content (td | th | script | map)*
    Index i 73 element name td type 18 content (h1 | h2 | h3 | h4 | h5 | h6 | p | ul | ol | dir | menu | pre | xmp | listing | plaintext | dl | div | center | blockquote | form | isindex | hr | table | object | #pcdata* | tt | i | b | u | strike | s | big | small | sub | sup | em | strong | dfn | code | samp | kbd | var | cite | a | img | applet | object | font | basefont | br | script | map | nobr | wbr | blink | input | select | textarea | address | frameset | noframes | nohotjava | animate)*
    Index i 74 element name area type 17 content null
    Index i 75 element name option type 18 content (#pcdata*)*
    Index i 76 element name dt type 18 content (h1 | h2 | h3 | h4 | h5 | h6 | #pcdata* | tt | i | b | u | strike | s | big | small | sub | sup | em | strong | dfn | code | samp | kbd | var | cite | a | img | applet | object | font | basefont | br | script | map | nobr | wbr | blink | input | select | textarea)*
    Index i 77 element name dd type 18 content (p | ul | ol | dir | menu | pre | xmp | listing | plaintext | dl | div | center | blockquote | form | isindex | hr | table | object | #pcdata* | tt | i | b | u | strike | s | big | small | sub | sup | em | strong | dfn | code | samp | kbd | var | cite | a | img | applet | object | font | basefont | br | script | map | nobr | wbr | blink | input | select | textarea)*
    Index i 78 element name li type 18 content ((p | ul | ol | dir | menu | pre | xmp | listing | plaintext | dl | div | center | blockquote | form | isindex | hr | table | object | #pcdata* | tt | i | b | u | strike | s | big | small | sub | sup | em | strong | dfn | code | samp | kbd | var | cite | a | img | applet | object | font | basefont | br | script | map | nobr | wbr | blink | input | select | textarea)* | h1 | h2 | h3 | h4 | h5 | h6)*
    Index i 79 element name caption type 18 content (h1 | h2 | h3 | h4 | h5 | h6 | p | ul | ol | dir | menu | pre | xmp | listing | plaintext | dl | div | center | blockquote | form | isindex | hr | table | object | #pcdata* | tt | i | b | u | strike | s | big | small | sub | sup | em | strong | dfn | code | samp | kbd | var | cite | a | img | applet | object | font | basefont | br | script | map | nobr | wbr | blink | input | select | textarea | address | frameset | noframes | nohotjava | animate)*
    Index i 80 element name frame type 17 content null
    Index i 81 element name th type 18 content (h1 | h2 | h3 | h4 | h5 | h6 | p | ul | ol | dir | menu | pre | xmp | listing | plaintext | dl | div | center | blockquote | form | isindex | hr | table | object | #pcdata* | tt | i | b | u | strike | s | big | small | sub | sup | em | strong | dfn | code | samp | kbd | var | cite | a | img | applet | object | font | basefont | br | script | map | nobr | wbr | blink | input | select | textarea | address | frameset | noframes | nohotjava | animate)*
    Index i 82 element name template type 17 content null
    Can anyone plase give me advice how i can add my custom tag in this ContentModel structures for example as a content of "p" element
    I must do this for most structure elements.
    Or tell me any other way i can achieve the solution of my problem.
    A lot of topics here are still opened for solution for similar problems.
    and hope that there is any solution for my problem 'cause its urgent.
    Thanks in advance.
    Nenko Ivanov

    Hi all, I searched all forums and google for information about this problem but I did not find any clear solution or example.
    The probem stared when HTMLEditorKit's insertHTML method did not worked for custom tags.
    I extended javax.swing.text.html.parser.ParserDelegator class
    and override it's setDefaultDTD() method, which loads the default dtd (html32 definition). After the dtd field is created it I call this method:
              javax.swing.text.html.parser.Element element = _dtd.defineElement(
                  "template", javax.swing.text.html.parser.Element.SYSTEM, false, false,
                  null, null, null,
                  new AttributeList("value"));where _dtd is instance of DTD class in the same package, and "template" is the name of my custom tag.
    (if i define the element's type as CONTENT instead of SYSTEM the parser removes it)
    So after this,i see that my new tag is in DTD.elements vector and DTD.elementHash hastable, so its defined in DTD structures.
    The problem is that I have to redefine most element's ContentModel field "content" so that the parser will parse correctly the html source.
    Here is the tracing of DTD.elements vector default contents + template tag.Sorry for the long text but i just want to be clear
    Index i 0 element name #pcdata type 19 content null
    Index i 1 element name html type 18 content (head , body , plaintext?)
    Index i 2 element name meta type 17 content null
    Index i 3 element name base type 17 content null
    Index i 4 element name isindex type 17 content null
    Index i 5 element name head type 18 content (title? & isindex? & base? & nextid?)
    Index i 6 element name body type 18 content (h1 | h2 | h3 | h4 | h5 | h6 | p | ul | ol | dir | menu | pre | xmp | listing | plaintext | dl | div | center | blockquote | form | isindex | hr | table | object | #pcdata* | tt | i | b | u | strike | s | big | small | sub | sup | em | strong | dfn | code | samp | kbd | var | cite | a | img | applet | object | font | basefont | br | script | map | nobr | wbr | blink | input | select | textarea | address | frameset | noframes | nohotjava | animate)*
    Index i 7 element name applet type 18 content ((p | ul | ol | dir | menu | pre | xmp | listing | plaintext | dl | div | center | blockquote | form | isindex | hr | table | object | #pcdata* | tt | i | b | u | strike | s | big | small | sub | sup | em | strong | dfn | code | samp | kbd | var | cite | a | img | applet | object | font | basefont | br | script | map | nobr | wbr | blink | input | select | textarea)* | h1 | h2 | h3 | h4 | h5 | h6 | input | select | textarea | tr | td)*
    Index i 8 element name param type 17 content null
    Index i 9 element name p type 18 content (#pcdata* | tt | i | b | u | strike | s | big | small | sub | sup | em | strong | dfn | code | samp | kbd | var | cite | a | img | applet | object | font | basefont | br | script | map | nobr | wbr | blink | input | select | textarea)*
    Index i 10 element name title type 18 content (#pcdata*)*
    Index i 11 element name style type 18 content (#pcdata*)*
    Index i 12 element name link type 17 content null
    Index i 13 element name plaintext type 1 content null
    Index i 14 element name nextid type 17 content null
    Index i 15 element name script type 18 content (h1 | h2 | h3 | h4 | h5 | h6 | p | ul | ol | dir | menu | pre | xmp | listing | plaintext | dl | div | center | blockquote | form | isindex | hr | table | object | #pcdata* | tt | i | b | u | strike | s | big | small | sub | sup | em | strong | dfn | code | samp | kbd | var | cite | a | img | applet | object | font | basefont | br | script | map | nobr | wbr | blink | input | select | textarea | address | frameset | noframes | nohotjava | animate)*
    Index i 16 element name h1 type 18 content (img | br | hr | center | #pcdata* | tt | i | b | u | strike | s | big | small | sub | sup | em | strong | dfn | code | samp | kbd | var | cite | a | img | applet | object | font | basefont | br | script | map | nobr | wbr | blink | input | select | textarea)*
    Index i 17 element name h2 type 18 content (img | br | hr | center | #pcdata* | tt | i | b | u | strike | s | big | small | sub | sup | em | strong | dfn | code | samp | kbd | var | cite | a | img | applet | object | font | basefont | br | script | map | nobr | wbr | blink | input | select | textarea)*
    Index i 18 element name h3 type 18 content (img | br | hr | center | #pcdata* | tt | i | b | u | strike | s | big | small | sub | sup | em | strong | dfn | code | samp | kbd | var | cite | a | img | applet | object | font | basefont | br | script | map | nobr | wbr | blink | input | select | textarea)*
    Index i 19 element name h4 type 18 content (img | br | hr | center | #pcdata* | tt | i | b | u | strike | s | big | small | sub | sup | em | strong | dfn | code | samp | kbd | var | cite | a | img | applet | object | font | basefont | br | script | map | nobr | wbr | blink | input | select | textarea)*
    Index i 20 element name h5 type 18 content (img | br | hr | center | #pcdata* | tt | i | b | u | strike | s | big | small | sub | sup | em | strong | dfn | code | samp | kbd | var | cite | a | img | applet | object | font | basefont | br | script | map | nobr | wbr | blink | input | select | textarea)*
    Index i 21 element name h6 type 18 content (img | br | hr | center | #pcdata* | tt | i | b | u | strike | s | big | small | sub | sup | em | strong | dfn | code | samp | kbd | var | cite | a | img | applet | object | font | basefont | br | script | map | nobr | wbr | blink | input | select | textarea)*
    Index i 22 element name ul type 18 content (p | br | #pcdata* | tt | i | b | u | strike | s | big | small | sub | sup | em | strong | dfn | code | samp | kbd | var | cite | a | img | applet | object | font | basefont | br | script | map | nobr | wbr | blink | input | select | textarea | ol | ul | li)*
    Index i 23 element name ol type 18 content (p | br | #pcdata* | tt | i | b | u | strike | s | big | small | sub | sup | em | strong | dfn | code | samp | kbd | var | cite | a | img | applet | object | font | basefont | br | script | map | nobr | wbr | blink | input | select | textarea | ol | ul | li)*
    Index i 24 element name dir type 18 content (ul | ol | dir | menu | #pcdata* | tt | i | b | u | strike | s | big | small | sub | sup | em | strong | dfn | code | samp | kbd | var | cite | a | img | applet | object | font | basefont | br | script | map | nobr | wbr | blink | input | select | textarea | li)*
    Index i 25 element name menu type 18 content (ul | ol | dir | menu | #pcdata* | tt | i | b | u | strike | s | big | small | sub | sup | em | strong | dfn | code | samp | kbd | var | cite | a | img | applet | object | font | basefont | br | script | map | nobr | wbr | blink | input | select | textarea | li)*
    Index i 26 element name pre type 18 content (#pcdata* | tt | i | b | u | strike | s | big | small | sub | sup | em | strong | dfn | code | samp | kbd | var | cite | a | img | applet | object | font | basefont | br | script | map | nobr | wbr | blink | input | select | textarea)*
    Index i 27 element name xmp type 1 content null
    Index i 28 element name listing type 1 content null
    Index i 29 element name dl type 18 content (p | dl | dt | dd)*
    Index i 30 element name div type 18 content (h1 | h2 | h3 | h4 | h5 | h6 | p | ul | ol | dir | menu | pre | xmp | listing | plaintext | dl | div | center | blockquote | form | isindex | hr | table | object | #pcdata* | tt | i | b | u | strike | s | big | small | sub | sup | em | strong | dfn | code | samp | kbd | var | cite | a | img | applet | object | font | basefont | br | script | map | nobr | wbr | blink | input | select | textarea | address | frameset | noframes | nohotjava | animate)*
    Index i 31 element name center type 18 content (h1 | h2 | h3 | h4 | h5 | h6 | p | ul | ol | dir | menu | pre | xmp | listing | plaintext | dl | div | center | blockquote | form | isindex | hr | table | object | #pcdata* | tt | i | b | u | strike | s | big | small | sub | sup | em | strong | dfn | code | samp | kbd | var | cite | a | img | applet | object | font | basefont | br | script | map | nobr | wbr | blink | input | select | textarea | address | frameset | noframes | nohotjava | animate)*
    Index i 32 element name blockquote type 18 content (h1 | h2 | h3 | h4 | h5 | h6 | p | ul | ol | dir | menu | pre | xmp | listing | plaintext | dl | div | center | blockquote | form | isindex | hr | table | object | #pcdata* | tt | i | b | u | strike | s | big | small | sub | sup | em | strong | dfn | code | samp | kbd | var | cite | a | img | applet | object | font | basefont | br | script | map | nobr | wbr | blink | input | select | textarea | address | frameset | noframes | nohotjava | animate)*
    Index i 33 element name form type 18 content (h1 | h2 | h3 | h4 | h5 | h6 | p | ul | ol | dir | menu | pre | xmp | listing | plaintext | dl | div | center | blockquote | form | isindex | hr | table | object | #pcdata* | tt | i | b | u | strike | s | big | small | sub | sup | em | strong | dfn | code | samp | kbd | var | cite | a | img | applet | object | font | basefont | br | script | map | nobr | wbr | blink | input | select | textarea | address | frameset | noframes | nohotjava | animate)*
    Index i 34 element name hr type 17 content null
    Index i 35 element name table type 18 content (tr | caption)*
    Index i 36 element name object type 18 content (param | (h1 | h2 | h3 | h4 | h5 | h6 | (p | ul | ol | dir | menu | pre | xmp | listing | plaintext | dl | div | center | blockquote | form | isindex | hr | table | object | #pcdata* | tt | i | b | u | strike | s | big | small | sub | sup | em | strong | dfn | code | samp | kbd | var | cite | a | img | applet | object | font | basefont | br | script | map | nobr | wbr | blink | input | select | textarea)* | address)* | input | select | textarea)*
    Index i 37 element name tt type 18 content (#pcdata* | tt | i | b | u | strike | s | big | small | sub | sup | em | strong | dfn | code | samp | kbd | var | cite | a | img | applet | object | font | basefont | br | script | map | nobr | wbr | blink | input | select | textarea | center | p | dl | ul | ol)*
    Index i 38 element name i type 18 content (#pcdata* | tt | i | b | u | strike | s | big | small | sub | sup | em | strong | dfn | code | samp | kbd | var | cite | a | img | applet | object | font | basefont | br | script | map | nobr | wbr | blink | input | select | textarea | center | p | dl | ul | ol)*
    Index i 39 element name b type 18 content (#pcdata* | tt | i | b | u | strike | s | big | small | sub | sup | em | strong | dfn | code | samp | kbd | var | cite | a | img | applet | object | font | basefont | br | script | map | nobr | wbr | blink | input | select | textarea | center | p | dl | ul | ol)*
    Index i 40 element name u type 18 content (#pcdata* | tt | i | b | u | strike | s | big | small | sub | sup | em | strong | dfn | code | samp | kbd | var | cite | a | img | applet | object | font | basefont | br | script | map | nobr | wbr | blink | input | select | textarea | center | p | dl | ul | ol)*
    Index i 41 element name strike type 18 content (#pcdata* | tt | i | b | u | strike | s | big | small | sub | sup | em | strong | dfn | code | samp | kbd | var | cite | a | img | applet | object | font | basefont | br | script | map | nobr | wbr | blink | input | select | textarea | center | p | dl | ul | ol)*
    Index i 42 element name s type 18 content (#pcdata* | tt | i | b | u | strike | s | big | small | sub | sup | em | strong | dfn | code | samp | kbd | var | cite | a | img | applet | object | font | basefont | br | script | map | nobr | wbr | blink | input | select | textarea | center | p | dl | ul | ol)*
    Index i 43 element name big type 18 content (#pcdata* | tt | i | b | u | strike | s | big | small | sub | sup | em | strong | dfn | code | samp | kbd | var | cite | a | img | applet | object | font | basefont | br | script | map | nobr | wbr | blink | input | select | textarea | center | p | dl | ul | ol)*
    Index i 44 element name small type 18 content (#pcdata* | tt | i | b | u | strike | s | big | small | sub | sup | em | strong | dfn | code | samp | kbd | var | cite | a | img | applet | object | font | basefont | br | script | map | nobr | wbr | blink | input | select | textarea | center | p | dl | ul | ol)*
    Index i 45 element name sub type 18 content (#pcdata* | tt | i | b | u | strike | s | big | small | sub | sup | em | strong | dfn | code | samp | kbd | var | cite | a | img | applet | object | font | basefont | br | script | map | nobr | wbr | blink | input | select | textarea | center | p | dl | ul | ol)*
    Index i 46 element name sup type 18 content (#pcdata* | tt | i | b | u | strike | s | big | small | sub | sup | em | strong | dfn | code | samp | kbd | var | cite | a | img | applet | object | font | basefont | br | script | map | nobr | wbr | blink | input | select | textarea | center | p | dl | ul | ol)*
    Index i 47 element name em type 18 content (#pcdata* | tt | i | b | u | strike | s | big | small | sub | sup | em | strong | dfn | code | samp | kbd | var | cite | a | img | applet | object | font | basefont | br | script | map | nobr | wbr | blink | input | select | textarea | center | p | dl | ul | ol)*
    Index i 48 element name strong type 18 content (#pcdata* | tt | i | b | u | strike | s | big | small | sub | sup | em | strong | dfn | code | samp | kbd | var | cite | a | img | applet | object | font | basefont | br | script | map | nobr | wbr | blink | input | select | textarea | center | p | dl | ul | ol)*
    Index i 49 element name dfn type 18 content (#pcdata* | tt | i | b | u | strike | s | big | small | sub | sup | em | strong | dfn | code | samp | kbd | var | cite | a | img | applet | object | font | basefont | br | script | map | nobr | wbr | blink | input | select | textarea | center | p | dl | ul | ol)*
    Index i 50 element name code type 18 content (#pcdata* | tt | i | b | u | strike | s | big | small | sub | sup | em | strong | dfn | code | samp | kbd | var | cite | a | img | applet | object | font | basefont | br | script | map | nobr | wbr | blink | input | select | textarea | center | p | dl | ul | ol)*
    Index i 51 element name samp type 18 content (#pcdata* | tt | i | b | u | strike | s | big | small | sub | sup | em | strong | dfn | code | samp | kbd | var | cite | a | img | applet | object | font | basefont | br | script | map | nobr | wbr | blink | input | select | textarea | center | p | dl | ul | ol)*
    Index i 52 element name kbd type 18 content (#pcdata* | tt | i | b | u | strike | s | big | small | sub | sup | em | strong | dfn | code | samp | kbd | var | cite | a | img | applet | object | font | basefont | br | script | map | nobr | wbr | blink | input | select | textarea | center | p | dl | ul | ol)*
    Index i 53 element name var type 18 content (#pcdata* | tt | i | b | u | strike | s | big | small | sub | sup | em | strong | dfn | code | samp | kbd | var | cite | a | img | applet | object | font | basefont | br | script | map | nobr | wbr | blink | input | select | textarea | center | p | dl | ul | ol)*
    Index i 54 element name cite type 18 content (#pcdata* | tt | i | b | u | strike | s | big | small | sub | sup | em | strong | dfn | code | samp | kbd | var | cite | a | img | applet | object | font | basefont | br | script | map | nobr | wbr | blink | input | select | textarea | center | p | dl | ul | ol)*
    Index i 55 element name a type 18 content (#pcdata* | tt | i | b | u | strike | s | big | small | sub | sup | em | strong | dfn | code | samp | kbd | var | cite | a | img | applet | object | font | basefont | br | script | map | nobr | wbr | blink | input | select | textarea | h1 | h2 | h3 | h4 | h5 | h6 | pre)*
    Index i 56 element name img type 17 content null
    Index i 57 element name font type 18 content (#pcdata* | tt | i | b | u | strike | s | big | small | sub | sup | em | strong | dfn | code | samp | kbd | var | cite | a | img | applet | object | font | basefont | br | script | map | nobr | wbr | blink | input | select | textarea | center | p | dl | ul | ol)*
    Index i 58 element name basefont type 17 content null
    Index i 59 element name br type 17 content null
    Index i 60 element name map type 18 content (base | area)*
    Index i 61 element name nobr type 18 content (#pcdata* | tt | i | b | u | strike | s | big | small | sub | sup | em | strong | dfn | code | samp | kbd | var | cite | a | img | applet | object | font | basefont | br | script | map | nobr | wbr | blink | input | select | textarea)+
    Index i 62 element name wbr type 17 content null
    Index i 63 element name blink type 19 content null
    Index i 64 element name input type 17 content null
    Index i 65 element name select type 18 content (option+)
    Index i 66 element name textarea type 18 content (#pcdata*)*
    Index i 67 element name address type 18 content ((#pcdata* | tt | i | b | u | strike | s | big | small | sub | sup | em | strong | dfn | code | samp | kbd | var | cite | a | img | applet | object | font | basefont | br | script | map | nobr | wbr | blink | input | select | textarea) | p)*
    Index i 68 element name frameset type 18 content (frameset | frame | noframes)*
    Index i 69 element name noframes type 1 content null
    Index i 70 element name nohotjava type 1 content null
    Index i 71 element name animate type 1 content null
    Index i 72 element name tr type 18 content (td | th | script | map)*
    Index i 73 element name td type 18 content (h1 | h2 | h3 | h4 | h5 | h6 | p | ul | ol | dir | menu | pre | xmp | listing | plaintext | dl | div | center | blockquote | form | isindex | hr | table | object | #pcdata* | tt | i | b | u | strike | s | big | small | sub | sup | em | strong | dfn | code | samp | kbd | var | cite | a | img | applet | object | font | basefont | br | script | map | nobr | wbr | blink | input | select | textarea | address | frameset | noframes | nohotjava | animate)*
    Index i 74 element name area type 17 content null
    Index i 75 element name option type 18 content (#pcdata*)*
    Index i 76 element name dt type 18 content (h1 | h2 | h3 | h4 | h5 | h6 | #pcdata* | tt | i | b | u | strike | s | big | small | sub | sup | em | strong | dfn | code | samp | kbd | var | cite | a | img | applet | object | font | basefont | br | script | map | nobr | wbr | blink | input | select | textarea)*
    Index i 77 element name dd type 18 content (p | ul | ol | dir | menu | pre | xmp | listing | plaintext | dl | div | center | blockquote | form | isindex | hr | table | object | #pcdata* | tt | i | b | u | strike | s | big | small | sub | sup | em | strong | dfn | code | samp | kbd | var | cite | a | img | applet | object | font | basefont | br | script | map | nobr | wbr | blink | input | select | textarea)*
    Index i 78 element name li type 18 content ((p | ul | ol | dir | menu | pre | xmp | listing | plaintext | dl | div | center | blockquote | form | isindex | hr | table | object | #pcdata* | tt | i | b | u | strike | s | big | small | sub | sup | em | strong | dfn | code | samp | kbd | var | cite | a | img | applet | object | font | basefont | br | script | map | nobr | wbr | blink | input | select | textarea)* | h1 | h2 | h3 | h4 | h5 | h6)*
    Index i 79 element name caption type 18 content (h1 | h2 | h3 | h4 | h5 | h6 | p | ul | ol | dir | menu | pre | xmp | listing | plaintext | dl | div | center | blockquote | form | isindex | hr | table | object | #pcdata* | tt | i | b | u | strike | s | big | small | sub | sup | em | strong | dfn | code | samp | kbd | var | cite | a | img | applet | object | font | basefont | br | script | map | nobr | wbr | blink | input | select | textarea | address | frameset | noframes | nohotjava | animate)*
    Index i 80 element name frame type 17 content null
    Index i 81 element name th type 18 content (h1 | h2 | h3 | h4 | h5 | h6 | p | ul | ol | dir | menu | pre | xmp | listing | plaintext | dl | div | center | blockquote | form | isindex | hr | table | object | #pcdata* | tt | i | b | u | strike | s | big | small | sub | sup | em | strong | dfn | code | samp | kbd | var | cite | a | img | applet | object | font | basefont | br | script | map | nobr | wbr | blink | input | select | textarea | address | frameset | noframes | nohotjava | animate)*
    Index i 82 element name template type 17 content null
    Can anyone plase give me advice how i can add my custom tag in this ContentModel structures for example as a content of "p" element
    I must do this for most structure elements.
    Or tell me any other way i can achieve the solution of my problem.
    A lot of topics here are still opened for solution for similar problems.
    and hope that there is any solution for my problem 'cause its urgent.
    Thanks in advance.
    Nenko Ivanov

  • Custom Tag Problems

    Hello Everyone,
    I am using iPlanet 4.1 as my web server and am having some problems with using custom tags. I try to access a jsp that uses my custom tags and I get a 500 Internal Server error. Then when I check the web server logs all it has is this one very esoteric message: "[26/Sep/2002:08:35:51] warning ( 8042): Internal error: Failed to get GenericServlet. uri=/BUYS/sep_accts.jsp,SCRIPT_NAME=/BUYS/sep_accts.jsp)" Usually I get this message when I make changes to a servlet and do not restart the web server, but that is not the problem this time.
    I am trying to use a very simple tag called SayHelloTag which just prints hello to the browser. I have a foundation tag which extends tag support and then SayHelloTag extends the foundation tag. Then I have it all JARd up and in the classpath like I'm supposed to. If anyone could take a look at my code and tell me if you see anything wrong I would be most appriciative!
    BuysFoundationTag
    package com.nf.buys.tags;
    import javax.servlet.jsp.*;
    import javax.servlet.jsp.tagext.*;
    import java.io.*;
    import com.nf.buys.lists.*;
    public class BuysFoundationTag extends TagSupport
    SayHelloTag
    package com.nf.buys.tags;
    import javax.servlet.jsp.*;
    import javax.servlet.jsp.tagext.*;
    import java.io.*;
    import com.nf.buys.lists.*;
    public class SayHelloTag extends BuysFoundationTag
        public int doStartTag()
        {   System.out.println("Starting do Start tag");
            try
                System.out.println("start the try statement");
                JspWriter out = pageContext.getOut();
                System.out.println("output the hello message");
                out.println("Say Hello");
            catch(Exception e)
                e.printStackTrace();
            finally
                return SKIP_BODY;
    TLD File
    <?xml version="1.0" encoding="ISO-8859-1" ?>
    <!DOCTYPE taglib
    PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.1//EN"
    "http://cheerios2.nfs.nwie.net:5050/BUYS/web-jsptaglibrary_1_1.dtd">
    <taglib>
      <!-- after this the default space is "jsptaglibrary_1_2.dtd" -->
      <tlibversion>1.0</tlibversion>
      <jspversion>1.1</jspversion>
      <shortname>buyslib</shortname>
      <info>
        A custom tag library for use by the Nationwide Financial,
        Financial Systems, Automated Buy/Sell System.
      </info>
      <tag>
        <name>SayHello</name>
        <tagclass>com.nf.buys.tags.SayHelloTag</tagclass>
        <bodycontent>JSP</bodycontent>
        <info>A test tag</info>
      </tag>
    </taglib>
    finally, my JSP page
    <html>
      <head>
        <title>Automated BUY/SELL System</title>
        <link rel=stylesheet href="buys_styles.css" type="text/css">
        <%@ taglib uri="/BUYS/buys-tags.jar" prefix="buystag" %>
      </head>
      <body bgcolor='#FFFFF'>
        <div id='heading'>
          This is the heading information
        </div>
        <div id='navigation'>
         <table width='100%'>
          <tr>Nav Option 1</tr>
          <tr>Nav Option 2</tr>
          <tr>...</tr>
          <tr>Nav Option n</tr>
         </table>
        </div>
        <div id='optionalMessage'>
          This is the optional message
        </div>
        <div id='listArea'>
          <buystag:SayHelloTag>
        </div>
      </body>
    </html>I get no compilation errors when I compile any of the tag handler classes. But when the web server can't compile the jsp page. Am I doing something obviously wrong? Please help!!
    Chris

    OMG I am a moron. I just have the name of the tag wrong.

Maybe you are looking for