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]
          

Similar Messages

  • Custom tag library problem

    I created a workspace with two projects in it.
    In the first project I realized a tag library with its deployment descriptor.
    In the second project I realized a .war component with a jsp that uses the tag in the library.
    In the .war deployment descriptor I choosed the library deployment descriptor in the Profile Dependencies page.
    When I deploy my .war (alone or in an .ear) file I properly find the library .jar file in it but in this .jar file there isn't any .class file.
    Where are my tag handlers? If I deploy the tag library alone the .class files are there so I can replace the library .jar file created in the .ear and all works properly.
    I tried creating a third project that include the .war in its .ear, but I cannot include my tag library .jar because it's not listed in the Application Assembly page.
    Thank you
    Andrea Mattioli

    I found the bug! Its in greeting.jsp ...
    Instead of
    <tw:greeting />
    I typed....
    <tw.greeting />
    which resulted in the the custom tag not being called! That was the source of my problem.
    Thanks,
    Joe!

  • JSP Custom tag uri problem

    I'm using custom tags in my app (JSP 1.2). My tld is located in WEB-INF/tlds (not packaged in a JAR), meaning that the uri in the tld file should be picked up by JSP 1.2's autodiscovery. This works fine in actual deployment, but Nitrox claims that:
    "The tag library uri "mytaglib" cannot be mapped to an existing tld file. "
    when I attempt to reference it as follows from within my jsps:
    <%@ taglib uri="mytaglib" prefix="m" %>
    Do you know if this is a bug, or have any suggestions as to why the tld uri isn't being picked up by Nitrox?
    Thanks,
    John

    This is a known (kind of) issue. There are 2 easy workarounds:
    1- Specify the path to the tld file in the uri attribute. For example:
    <%@ taglib uri="/WEB-INF/mytaglib.tld" prefix="m" %>
    2- Map the tld file in web.xml. For example:
    <taglib>
    <taglib-uri>mytaglib</taglib-uri>
    <taglib-location>/WEB-INF/mytaglib.tld</taglib-location>
    </taglib>
    M7 Support

  • Jsp & custom tag buffer problem

    Hi all,
    I have a tag that reads one of the txt file and renders the output on the JSP.
    The problem is, when I refresh the same page in it duplicates the output and append it to the previous output every time (mostly).
    I know there is no that there is no exception occurred, bcoz i have checked the log files. I am using tomcat 5.5.9
    I tired to use out.flush() but it gave me same thing.
    Any help would be appreciated.
    Thank you.
    The code:
    JspWriter out = pageContext.getOut();
    URL header = new URL(url);
    BufferedReader in = new BufferedReader
    (new InputStreamReader(header.openStream()));
    String inputLine;
    while ((inputLine = in.readLine()) != null){
    System.out.println(inputLine);
    fileContent = fileContent + inputLine;
    in.close();
    out.print(fileContent);
    out.flush();

    code_box wrote:
    You are genius. Tell that to the forum elite! Seriously, it's just a matter of practice. I've been using Java since 1998 so I better be able to spot that!
    A very basic mistake from me and you spotted it right away...As you get more experience you'll spot them esaily yourself, but as you write more and more complex code, the mistakes you DO make will be much harder to figure out. :)
    Thanks a lot. It resolved the problem.
    Cheers mate,
    /md.Any time. Good luck!

  • Jdev 10G Custom Tag compilation problems

    Hi,
    I noticed that new tld's are added to "src/META-INF/."
    When i compile my jsp to reference the tld it is not successful b/c it is looking for the tlds within the "public_html" or somewhere within it. I turned off tld and web.xml validation, but jdev 10G still validates the location of the tld. Is there way to configure Jdev to put the tld in another location?
    I know i can work around this by building w/ ant or someother compiler external to Jdev, but would like to remedy this problem so i can use jdeveloper as it is.
    hope someone can shed some light, i've been working on this all day long...
    Thanks in advance,
    Eugene

    i am referenceing the tld via the web.xml alias entry. I found a work around where i copy the tld to somewhere in the public_html location of the project. I guess Jdeveloper doesn't look for the tld within META-INF which is embedded in the src directory structure of the project. For some reason, Jdeveloper doesn't look there for the TLD where it writes the tld to. it's interesting that jdeveloper doesn't look for the tld where it writes to. :)
    from the server side, when i deploy, it works okay. but to get around the compilation problem, i have to copy the tld or softlink it to the META-INF location of the original tld.
    I tried turning off web.xml, tld, and jsp validation of TLDs to get around this problem, but that doesn't seem to "turn it off."
    How do you approach this problem? do you use ant or some other external build process?
    thanks!

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

Maybe you are looking for

  • How can i get all these values in single row with comma separated?

    I have a table "abxx" with column "absg" Number(3) which is having following rows absg 1 3 56 232 43 436 23 677 545 367 xxxxxx No of rows How can i get all these values in single row with comma separated? Like output_absg 1,3,56,232,43,436,23,677,545

  • Indexing function in Adobe Acrobat Pro

    I am currently using the 30 day trial version of the above software, and am new to the Adobe product.  I am able to import a file created in MS Publisher, but am now attempting to create an index file.  I searched on the web and found this reference

  • System Message with Yes or No Button

    Hi Techies, I need value or which button pressed(Yes/No) for some validation. If i presses the Yes button only my coding should work. how can we get this. Thanks and Regards, Yadav

  • Why are certain CC apps missing from the list of those available to install within the CC desktop?

    Your system may not meet the system requirements to install some apps. Check the system requirements on the product download page for the app you're interested in. Visit the Download Center.

  • Synching Notes with MobileMe?

    I have been trying to set up Note app synch between my girlfriend's iPhone(3Gs) and iPad. Phone is updated to 4.2.1, iPad is new. Here's the problem: In General>Mail,Contacts,Calendars, I select her MobileMe account, and then select Notes ON. No Defa