Jsp taglib problem

Hello all,
as i am facing problem to display the value inside the table. following are the flow files of my code.
my jsp page............
<%@ taglib uri="/WEB-INF/tld/c.tld" prefix="c" %>
<tr>
<td> </td>
<td nowrap><b>Client</b></td>
<td><c ut value="${ConstantDeclarations.ATTR_CMB_CLIENT.strClientName}" default="value is null" escapeXml="true"/></td>
<!--<td><label for="<%=ConstantDeclarations.ATTR_CMB_CLIENT%>"><%=strClientName%></label></td>-->
<td> </td>
</tr>
my c.tld file.....................
<tag>
<description>
Like <%= ... >, but for expressions.
</description>
<name>out</name>
<tag-class>org.apache.taglibs.standard.tag.rt.core.OutTag</tag-class>
<body-content>JSP</body-content>
<attribute>
<description>
Expression to be evaluated.
</description>
<name>value</name>
<required>true</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<description>
Default value if the resulting value is null.
</description>
<name>default</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<description>
Determines whether characters <,>,&,'," in the
resulting string should be converted to their
corresponding character entity codes. Default value is
true.
</description>
<name>escapeXml</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
</tag>
so i am trying to display the value ConstantDeclarations.ATTR_CMB_CLIENT.strClientName in the table which is taking from the class file ProjectVO.class. in which getClientName is returning the value of strClientName. as shown below
public class ProjectVO extends ValueObjectImpl implements SearchableEntity{
public String getClientName(){
return strClientName;
i have tried different types like
ProjectVo.ATTR_CMB_CLIENT.strClientName
ProjectVO.getClientName.strClientName
so please refer the code and if u have any solution for this reply to me.
with regards
seenu

First, next time you post code, could you please use [code] tags as per the [code] button at the top of the posting page...
Okay, down to the question. You have this:
${ConstantDeclarations.ATTR_CMB_CLIENT.strClientName}
This will look for a variable instance named ConstantDeclarations and will try to access the method:
public [ObjectType] getATTR_CMB_CLIENT()
It will then try to call
public [ObjectType] getStrClientName()
from the object returned from the previous method call.
The point is: ConstantDeclarations can not be a class name, it must be an instance of a class. And ATTR_CMB_CLIENT can not be a static member of that class. It must be a property - accessed through a getATTR_CMB_CLIENT() method, which must be public, non static, and have a return type (non-void).

Similar Messages

  • Jsp taglib problems in J2ee server  of j2sdkee1.3

    Fresh from solving the problems with usebean in jsp, I again got a problem with the custom tags of JSP
    I am using Jdk1.3 and j2sdkee1.3, windows98
    The class file is stored in a package called my in the c:\j2sdkee1.3\lib\classes\my folder
    and the tld and jsp file stored in c:\j2sdkee1.3\public_html folder
    when I access the atm.jsp page, I got this error message
    A Servlet Exception Has Occurred
    org.apache.jasper.compiler.ParseException: End of content reached while more parsing required: tag nesting error?
    Here is the ATMJsp.tld code
    <?xml version="1.0" encoding="ISO-8859-1" ?>
    <!DOCTYPE taglib PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.1//EN" "http://java.sun.com/j2ee/dtds/web-jsptaglibrary_1_1.dtd">
    <taglib>
         <tlibversion>1.0</tlibversion>
         <jspversion>1.1</jspversion>
         <shortname>ATMJsp</shortname>
         <info>a tag library for the atm details</info>
         <tag>
              <name>ATM</name>
              <tagclass>my.atmtag</tagclass>
              <bodycontent>JSP</bodycontent>
              <info>Outputs of the ATM Counter</info>
         </tag>
    </taglib>
    I try:
    When I put the <bodycontent> tags below the <info> tags, I got the error message that the tag doesn't allow "bodycontent" here
    I don't know what caused the problem ... is there some mistake in the above code?
    Include other file to make it more clear---* atm.jsp and atmtag.java
    atm.jsp
    <%@ page import="my.atmtag" %>
    <%@ taglib uri="ATMJsp.tld" prefix="atmjsp" %>
    <%@ page errorPage="errorpage.jsp" %>
    <!DocType HTML Public "-//W3C//DTD// HTML 4.0 Translational//EN">
    <html>
    <head></head>
    <body>
    <h3 align=center>ATM counters that need cash</h3>
    <table><tr>
    <td></td>
    <td><atmjsp:ATM></td>
    </tr>
    </body>
    </html>
    atmtag.java
    package my;
    import javax.servlet.jsp.*;
    import javax.servlet.jsp.tagext.*;
    import java.io.*;
    import java.sql.*;
    import java.math.*;
    import java.util.*;
    //tag handler
    public class atmtag extends TagSupport
         Connection connect=null;
         Statement state=null;
         ResultSet result=null;
         public atmtag() throws ClassNotFoundException
              Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
         public int doStartTag() throws JspTagException
              return EVAL_BODY_INCLUDE;
         public int doEndTag() throws JspTagException
              try
                   JspWriter out=pageContext.getOut();
                   connect=DriverManager.getConnection("jdbc:odbc:EarnestBank","","");
                   String strquery="select cCounter_id, cAddress, mCashBalance from Counter where mCashBalance<=10000";
                   state=connect.createStatement();
                   ResultSet result=state.executeQuery(strquery);
                   String sid=null;
                   String saddress=null;
                   String sbalance=null;
                   Vector v=new Vector();
                   while(result.next())
                        sid=result.getString(1);
                        saddress=result.getString(2);
                        sbalance=result.getString(3);
                        v.add(sid);
                        v.add(saddress);
                        v.add(sbalance);
                   for (int i=0; i<v.size();i++)
                        String str=(String)v.elementAt(i);
                        pageContext.getOut().write(str);
              catch(Exception ex)
              return EVAL_PAGE;
    Pls help me to get through this hurdle
    Thanks

    1) To handle <bodycontent> you should inherit from BodyTagSupport
    class
    2) You should use your bean like: <td><atmjsp:ATM/></td>
    with closing slash - it's bodyless tag - this mistake
    causes JSP compiler to report error
    Enjoy!
    Paul

  • Jsp taglibs in include files not detected, throws errors, no code insight

    I have a jsp which is included in all the other jsp. it looks something like this
    taglibs.jsp
    <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
    <%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
    <%@ taglib uri="http://www.springframework.org/tags" prefix="spring" %>
    <%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
    test.jsp
    <%@ include file="/jsp/menu/taglibs.jsp"%>
    <html>
         <head>
              <title>Tours</title>
         </head>
         <body>
    <form:form commandName="testCommand">
                   <form:hidden path="tour.firstname" id="tour.firstname" />
    and so on.
    I am having 2 problems
    1. the jsp editor show errors all over the place saying
    element path not expected
    element commandName not expected etc.
    2. no code insights.
    but if i include the taglib def in test.jsp it dosn't show any error and also provides code insights. but seldom do people include all taglibs in all jsps.
    is there a way for Jdeveloper to show code insights in jsp pages which includes a jsp or like xml schemas could be added at some place(tools-pref-xml schemas) and when used anywhere, would provide code insights.

    am not sure, try with this
    <jsp:include   .../>

  • JSP Taglib for RSS

    Just wondering if anyone else is having better luck - been working thru:
    http://developer.java.sun.com/developer/technicalArticles/javaserverpages/rss_utilities/
    Each time I try and parse an RSS file I get the following trace:
    <rss>
    <channel>
    <title>
    </title>
    <link>
    </link>
    <description>
    </description>
    </channel>
    <item>
    INFO: items does not exist or method signature is incorrect
    java.lang.NoSuchMethodException
    at java.lang.Class.getMethod0(Native Method)
    at java.lang.Class.getMethod(Class.java:888)
    at com.sun.cnpi.rss.handlers.DefaultElementHandler.startElement DefaultElementHandler.java:91)
    at com.sun.cnpi.rss.handlers.DocumentHandler.startElement(DocumentHandler.java:98)
    at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1477)
    ... rest of stack trace.
    This is tried with 5 or 6 different RSS feeds (0.91 and 2.0) and with both crimson and the latest xerces parsers (stacktrace is the same apart from the parser specific parts - it's always in com.sun.cnpi.rss.handlers.DocumentHandler.startElement(DocumentHandler.java:98)
    It appears to be trying to call a method based on the fact that it has seen an items tag (which it hasn't - it's an item tag).
    The JSP:
    <%@ taglib uri="/rssutils.tld" prefix="rss" %>
    <rss:feed
    url="path-to-feed"
    feedId="intranetRT"/>
    <h2>"><rss:channelTitle feedId="intranetRT"/></a></h2>
    <rss:forEachItem feedId="intranetRT">
    <h3><a href="<rss:itemLink feedId="intranetRT"/>"><rss:itemTitle feedId="intranetRT"/></a></h3>
    <div class="item">
    <p><rss:itemDescription feedId="intranetRT"/></p>
    </div>
    </rss:forEachItem>
    Maybe of interest - all tried RSS streams work fine for various other RSS readers and return valid from 2 different validators.
    Hints anyone?

    I try using this tag library, and I get the following on my page:
    java.lang.ClassNotFoundException: com.cj.rss.objVariable
    as the root cause for this excemption:
    org.apache.jasper.JasperException: Failed to load or instantiate TagExtraInfo class: com.cj.rss.objVariable
    Do I have a bad "path" set up somewhere? Here's my code:
    <%@ taglib uri="/WEB-INF/lib/taglib.tld" prefix="c" %>
    <html>
    <head><title>Java Feed</title></head>
    <body>
    <%-- <jsp:useBean id="beanInstanceName" scope="session" class="beanPackage.BeanClassName" /> --%>
    <%-- <jsp:getProperty name="beanInstanceName" property="propertyName" /> --%>
    <c:setFeed url="http://www2.theserverside.com/rss/theserverside-1.0.rdf" id="A"/>
    <p>Title:<c:getChannelTitle feedId="A"/>
    <p>Description:<c:getChannelDescription feedId="A"/>
    <c:forEachItem feedId="A">
    Link:<%=itemLink%>
    Title:<%=itemTitle%>
    Description:<%=itemDescription%>
    </c:forEachItem>
    </body>
    </html>
    It's pretty simple code, and I made sure that the library file (jar) and .tld file were in the /WEB-INF/lib directory, off of the "context" directory or "docroot". I guess I would have gotten a different error if they weren't there.
    Any thoughts as to why my server is having problems loading the object:
    com.cj.rss.objVariable
    It is in my rsstag.jar file. I confirmed it by opening it with WinZip. Here's the reference to it in the rssrag.tld file:
    <tag>
    <name>setFeed</name>
    <tagclass>com.cj.rss.setFeedTag</tagclass>
    <teiclass>com.cj.rss.objVariable</teiclass>
    <bodycontent>JSP</bodycontent>
    <info>parses rss feed</info>
    Any information would be greatly appreciated.

  • How Do I Specify uri in JSP taglib Directive to Point to the Jar File

    I put the trail-taglib-0.2.jar file in the MyApplication/WEB-INF/lib directory.
    Because the .tld is included in the trail-taglib-0.2.jar, I added the following In the MyApplication/WEB-INF/web.xml file:
    < filter >
      < filter-name > trailFilter < /filter-name >
      < filter-class > org.osjava.taglib.trail.OriginalRequestFilter < /filter-class >
    < /filter >
    < filter-mapping >
      < filter-name > trailFilter < /filter-name >
      < url-pattern > *.do < url-pattern >
    < filter-mapping > How do I specify the uri in my JSP @taglib to point to the jar file? I think I did not get the path right:
    < %@ taglib prefix="trail" uri="trail-taglib-0.2" % >

    Your advices have been very good. Problems get solved one at a time.
    1. Now, the taglib.tld in the WEB-INF directory can be found; however, another problem occurred: XML parsing error on file /WEB-INF/taglib.tld: (line 11, col 17): Element type "display-name" must be declared.
    2. no matter where I insert the filter and its mapping in the web.xml file,
      <filter>
       <filter-name>trailFilter</filter-name>
       <filter-class>org.osjava.taglib.trail.OriginalRequestFilter</filter-class>
      </filter>
      <filter-mapping>
       <filter-name>trailFilter</filter-name>
       <url-pattern>*.do</url-pattern>
      </filter-mapping>The server cannot find the Struts tag libraries. If I remove the filter tag and its mapping, the server does not complain anymore. I checked the DTD, the filter tag and its mapping tag should be before the servlet tag and servlet mapping tag. But, it does not work.
    Here is the taglib.tld:
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE taglib PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.1//EN" "http://java.sun.com/j2ee/dtds/web-jsptaglibrary_1_1.dtd">
    <taglib>
      <tlibversion>1.0</tlibversion>
      <jspversion>2.0</jspversion>
      <shortname>trail</shortname>
      <uri>http://www.osjava.org/taglibs/trail-1.0</uri>
      <info>Breadcrumbs in a taglib. </info>
      <display-name>Trail Taglib</display-name>
      <description>The Trail taglib maintains a dynamic trail of pages that the user has hit and allows a normalized version of that trail to be shown as a breadcrumbs list. </description>
      <tag>
        <name>list</name>
        <tagclass>org.osjava.taglib.trail.ListTag</tagclass>
        <bodycontent>JSP</bodycontent>
        <display-name>Trail List</display-name>
        <description>ListTag is used to display the trail, either the whole trail or more likely the normalized version. </description>
      <attribute>
          <name>var</name>
          <required>false</required>
          <rtexprvalue>true</rtexprvalue>
          <description>Store the trail text in a variable. This will probably change to store the actual trail list and not the text. </description>
        </attribute>
        <attribute>
          <name>delimiter</name>
          <required>false</required>
          <rtexprvalue>true</rtexprvalue>
          <description>The delimiter to use between trail items. It defaults to -> and at some point an image will be useable instead. </description>
        </attribute>
        <attribute>
          <name>type</name>
          <required>false</required>
          <rtexprvalue>true</rtexprvalue>
          <description>The type of list to show. The default is 'normalized', while any other type specified will result in 'full'. </description>
        </attribute>
      </tag>
      <tag>
        <name>push</name>
        <tagclass>org.osjava.taglib.trail.PushTag</tagclass>
        <bodycontent>JSP</bodycontent>
        <display-name>Trail Formation</display-name>
        <description>Place a page on the trail. </description>
        <attribute>
          <name>label</name>
          <required>true</required>
          <rtexprvalue>true</rtexprvalue>
          <description>The text to use when placing the page on the trail. This is what will be displayed to the user in the List tag. </description>
        </attribute>
        <attribute>
          <name>url</name>
          <required>false</required>
          <rtexprvalue>true</rtexprvalue>
          <description>Usually the url in question will be figured out by the taglib, however you may override it with this attribute. </description>
        </attribute>
      </tag>
    </taglib>

  • Re: [iPlanet-JATO] sp3 jsp compiler problem

    Weiguo,
    First, Matt is correct, the regular expression tool is perfect for general text
    substitution situations, and as a completely independent tool its use is not
    restricted to migration situations (or file types for that matter).
    Second, I sympathize with the unfortunate trouble you are experiencing due to
    Jasper's (perhaps more strict) compilation, but in what way did the iMT
    automated translation contribute to these inconsistencies that you cited?
    1. Changed the case of the tag attribute to be the same as what's
    defined in tld.
    example: changed OnClick to onClick
    The iMT does not generate any OnClick or onClick clauses per se. In a
    translation situation, the only way "OnClick" would have been introduced was if
    it had been part of the pre-existing project's "extraHTML" (which was written
    by the original customer and just passed through unchanged by the iMT) or if it
    was added manually by the post-migration developer.
    2. Removed attributes which are not defined in tld.
    example: escape attribute only defined in three tags
    but in some pages, it's used although it's not defined as an
    attribute
    of certain tags. The jasper compiler doesn't like it.Can you give soem examples? Is there a definite pattern? Again, this might be
    similar to the OnClick situation described above?
    3. In an end tag, there can't be any space.
    example: </content > doesn't work. </content> works.
    Again, the content tag would never have been generated by the iMT. There was no
    equivalent in the NetDynamics world, so any content tags in your code must have
    been introduced by your developers manually. Its a shame that jasper is so
    particular, but the iMT could not help you out here even if we wanted to. The
    constants that are used by the iMT are defined in
    com.iplanet.moko.jsp.convert.JspConversionConstants. From what I can see, the
    only situation of a closing tag with any space in it is
    public static final String CLOSE_EMPTY_ELEMENT = " />";
    But that should not cause the type of problem you are referring to.
    Mike
    ----- Original Message -----
    From: Matthew Stevens
    Sent: Thursday, September 06, 2001 10:16 AM
    Subject: RE: [iPlanet-JATO] sp3 jsp compiler problem
    Weiguo,
    Others will chime in for sure...I would highly recommend the Regex Tool from
    the iMT 1.1.1 for tackling this type of problem. Mike, Todd and myself have
    posted to the group (even recently) on directions and advantages of creating
    your own RULES (rules file) in XML for arbitary batch processing of source.
    matt
    -----Original Message-----
    From: weiguo.wang@b...
    [mailto:<a href="/group/SunONE-JATO/post?protectID=125056020108194190033029175101192165174144234026000079108238073194105057099246073154180137239239223019162">weiguo.wang@b...</a>]
    Sent: Thursday, September 06, 2001 12:25 PM
    Subject: [iPlanet-JATO] sp3 jsp compiler problem
    Matt/Mike/Todd,
    We are trying to migrate to sp3 right now, but have had a lot of
    issues with the new jasper compiler.
    The following workaround has been employed to solve the issues:
    1. Changed the case of the tag attribute to be the same as what's
    defined in tld.
    example: changed OnClick to onClick
    2. Removed attributes which are not defined in tld.
    example: escape attribute only defined in three tags
    but in some pages, it's used although it's not defined as an
    attribute
    of certain tags. The jasper compiler doesn't like it.
    3. In an end tag, there can't be any space.
    example: </content > doesn't work. </content> works.
    As I see it, we have two options to go about solving this problem:
    1. Write a script which will iterate through all the jsp files and
    call jspc on them. Fix the errors manually when jspc fails. Jspc will
    flag the line number where an error occurs.
    2. Write a utility which scans the jsp files and fix the errors when
    they are encountered. We should define what's an error and how to
    correct it. It's best if we combine this with solution 1 since we
    might miss an error condition.
    Actually, there might be another option, which is seeking help from
    you guys since you have better understanding of JATO and iAS. Can you
    do anything to help us?
    We would be happy to hear your thoughts.
    At last, I would like to suggest modifying the moko tool so that
    these rules are enforced and the generated JSPs work with the new
    compiler. This is for the benefit of any new migration projects.
    Thanks a lot.
    Weiguo
    [email protected]
    Choose from 1000s of job listings!
    [email protected]
    [Non-text portions of this message have been removed]

    Thanks a lot Matt and Mike for your prompt replies.
    I agree completely that iMT doesn't introduce the inconsistencies.
    About the three cases I mentioned, the third one happens only in
    manually created JSPs. So it has nothing to do with iMT. The first
    two are mainly due to the existing HTML code, as you rightly pointed
    out.
    The reason I made the suggestion is since we know that case 1 and 2
    won't pass the japser compiler in sp3, we have to do something about
    it. The best place to do this, in my mind, is iMT. Of course, there
    might be some twists that make it impossible or difficult to do this
    kind of case manipulation or attribute discard.
    Weiguo
    --- In iPlanet-JATO@y..., "Mike Frisino" <Michael.Frisino@S...> wrote:
    Weiguo,
    First, Matt is correct, the regular expression tool is perfect for general text substitution situations, and as a completely independent
    tool its use is not restricted to migration situations (or file types
    for that matter).
    >
    Second, I sympathize with the unfortunate trouble you are experiencing due to Jasper's (perhaps more strict) compilation, but
    in what way did the iMT automated translation contribute to these
    inconsistencies that you cited?
    >
    1. Changed the case of the tag attribute to be the same as what's
    defined in tld.
    example: changed OnClick to onClick
    The iMT does not generate any OnClick or onClick clauses per se. In a translation situation, the only way "OnClick" would have been
    introduced was if it had been part of the pre-existing
    project's "extraHTML" (which was written by the original customer and
    just passed through unchanged by the iMT) or if it was added manually
    by the post-migration developer.
    >
    2. Removed attributes which are not defined in tld.
    example: escape attribute only defined in three tags
    but in some pages, it's used although it's not defined as an
    attribute
    of certain tags. The jasper compiler doesn't like it.Can you give soem examples? Is there a definite pattern? Again, this might be similar to the OnClick situation described above?
    >
    >
    3. In an end tag, there can't be any space.
    example: </content > doesn't work. </content> works.
    Again, the content tag would never have been generated by the iMT. There was no equivalent in the NetDynamics world, so any content tags
    in your code must have been introduced by your developers manually.
    Its a shame that jasper is so particular, but the iMT could not help
    you out here even if we wanted to. The constants that are used by the
    iMT are defined in
    com.iplanet.moko.jsp.convert.JspConversionConstants. From what I can
    see, the only situation of a closing tag with any space in it is
    public static final String CLOSE_EMPTY_ELEMENT = " />";
    But that should not cause the type of problem you are referring to.
    Mike
    ----- Original Message -----
    From: Matthew Stevens
    Sent: Thursday, September 06, 2001 10:16 AM
    Subject: RE: [iPlanet-JATO] sp3 jsp compiler problem
    Weiguo,
    Others will chime in for sure...I would highly recommend the Regex Tool from
    the iMT 1.1.1 for tackling this type of problem. Mike, Todd and myself have
    posted to the group (even recently) on directions and advantages of creating
    your own RULES (rules file) in XML for arbitary batch processing of source.
    >
    matt
    -----Original Message-----
    From: weiguo.wang@b...
    [mailto:<a href="/group/SunONE-JATO/post?protectID=125056020108194190033029175101192165174048139046">weiguo.wang@b...</a>]
    Sent: Thursday, September 06, 2001 12:25 PM
    Subject: [iPlanet-JATO] sp3 jsp compiler problem
    Matt/Mike/Todd,
    We are trying to migrate to sp3 right now, but have had a lot of
    issues with the new jasper compiler.
    The following workaround has been employed to solve the issues:
    1. Changed the case of the tag attribute to be the same as
    what's
    defined in tld.
    example: changed OnClick to onClick
    2. Removed attributes which are not defined in tld.
    example: escape attribute only defined in three tags
    but in some pages, it's used although it's not defined as an
    attribute
    of certain tags. The jasper compiler doesn't like it.
    3. In an end tag, there can't be any space.
    example: </content > doesn't work. </content> works.
    As I see it, we have two options to go about solving this problem:
    >>
    1. Write a script which will iterate through all the jsp files and
    call jspc on them. Fix the errors manually when jspc fails. Jspc will
    flag the line number where an error occurs.
    2. Write a utility which scans the jsp files and fix the errors when
    they are encountered. We should define what's an error and how to
    correct it. It's best if we combine this with solution 1 since we
    might miss an error condition.
    Actually, there might be another option, which is seeking help from
    you guys since you have better understanding of JATO and iAS. Can you
    do anything to help us?
    We would be happy to hear your thoughts.
    At last, I would like to suggest modifying the moko tool so that
    these rules are enforced and the generated JSPs work with the new
    compiler. This is for the benefit of any new migration projects.
    Thanks a lot.
    Weiguo
    [email protected]
    Choose from 1000s of job listings!
    [email protected]
    Service.
    >
    >
    >
    [Non-text portions of this message have been removed]

  • JSP Taglibs

    Hi,
    I try to use a taglib and get this Exception:
    org.apache.jasper.JasperException: Unable to compile class for JSP
    An error occurred at line: 4 in the jsp file: /Login.jsp
    Generated servlet error:
    C:\Programme\Apache Tomcat 4.0\work\localhost\testdemo\Login$jsp.java:59: Class org.apache.jsp.testTL not found.
    testTL jspxth_mytag_test_0 = new testTL();
    ^
    An error occurred at line: 4 in the jsp file: /Login.jsp
    Generated servlet error:
    C:\Programme\Apache Tomcat 4.0\work\localhost\testdemo\Login$jsp.java:59: Class org.apache.jsp.testTL not found.
    testTL jspxth_mytag_test_0 = new testTL();
    ^
    2 errors
    My taglibs looks like this:
    <?xml version="1.0"?>
    <!DOCTYPE taglib
         PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.1//EN"
         "http://java.sun.com/j2ee/dtds/web-jsptaglibrary_1_1.dtd">
    <taglib>
         <tlibversion>1.0</tlibversion>
         <jspversion>1.1</jspversion>
         <shortname>shorttest</shortname>
         <uri></uri>
         <info>abc</info>
         <tag>
              <name>test</name>
              <tagclass>testTL</tagclass>
         </tag>
    </taglib>
    And web.xml:
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN" "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">
    <web-app>
    <display-name>Tag Demo</display-name>
    <description>bla</description>
    <taglib>
    <taglib-uri>/shorttest</taglib-uri>
    <taglib-location>/WEB-INF/tld/test1.tld</taglib-location>
    </taglib>
    </web-app>
    the jsp:
    <%@ taglib uri="/shorttest" prefix="mytag" %>
    <html>
    <body>
    <mytag:test/>
    </body>
    </html>
    I can`t find the failure.
    Thanks
    Hayri

    Yes, change
    <tagclass>testTL</tagclass>
    to
    <tagclass>yourPackage.testTL</tagclass> and of course recompile class with package declaration and put into package.

  • HELP.....!!!!! Chinese jsp compilation problem.....

    Hi,
    Could someone please help on the above mentioned?
    I'm using JDeveloper 3.2.3 for my program development under Chinese windows platform. I have created a simple JSP page, which contains few static Chinese words and I have included the line
    <%@ page contentType="text/html;charset=UTF-8"%>
    at the top of the page. When I tried to compile it using encoding "UTF8" (under compiler option), the compiler gave me this error:
    C:\Program Files\Oracle\JDeveloper 3.2.3\myhtml\Chinese_html\ChineseList.jsp
    Error: (0) sun.io.MalformedInputException.
    Btw, when I have removed the line <%@ page contentType="text/html;charset=UTF-8"%> from the page and compile, I've got this error:
    C:\Program Files\Oracle\JDeveloper 3.2.3\myhtml\Chinese_html\ChineseList.jsp
    Warning: (0) ISO-8859-1 character set may not match project compiler setting.
    C:\Program Files\Oracle\JDeveloper 3.2.3\myhtml\Chinese_html\ChineseList.java
    Error: (0) malformed input character in C:\Program Files\Oracle\JDeveloper 3.2.3\myhtml\Chinese_html\ChineseList.java.
    I do appreciate your help on this. Thank you.

    Here's some info one of the JSP Developers sent me:
    1. HELP.....!!!!! Chinese jsp compilation problem.....
    The customer is trying to parse a document generated by
    Windows's notepad. When saved in UTF-8, the byte
    order mark is saved too. We have a know bug that
    JSP parser doesn't recognize Byte Order Mark. The
    bug is : 1915285.
    2. CHINESE CHARACTER ON JSP
    . SQLPLUS depends on NLS_LANG setting. If you
    check the windows registry, the default of NLS_LANG
    depends on the OS. The user environment is Traditional
    Chinese, so does NLS_LANG. If we set NLS_LANG
    to .UTF8, SQLPLUS dumps the data in UTF8, however,
    the command prompt will have problem displaying them.
    . For JSP, as mentioned in a previous mail:
    <%@ page contentType="text/html;charset=UTF-8" %> for all languages
    <%@ page contentType="text/html;charset=GB2312" %> for simplified Chinese
    <%@ page contentType="text/html;charset=Big5" %> for traditional Chinese
    . When you enter Chinese characters on a browser,
    the data is automatically converted to page encoding
    (UTF-8 in your case) before sent back to the server.
    But your receiving servlet/JSP needs to have request
    encoding set correctly.
        I'm not sure about the JDeveloper environment,
    but here is a simple JSP you may try to verify your
    OC4J environment:
    a.    To set up the schema:
    connect scott/tiger
    create table tab01(col varchar2(100));
    b. Edit the connect string in nls.jsp
    c. Run the nls.jsp in oc4j instance.
    <!-- nls.jsp -->
    <%@ page contentType="text/html; charset=UTF-8" %>
    <%@ page import="oracle.jdbc.*,java.sql.*,java.io.*"%>
    <HTML>
    <HEAD>
    <TITLE>Hello</TITLE></HEAD>
    <BODY>
    <%
    request.setCharacterEncoding("UTF-8");
    String sampledata="\u7D20";
    String paramValue = request.getParameter("myparam");
    String connStr = "jdbc:oracle:thin:@dlsun478:5521:j2ee01";
    String user = "scott";
    String passwd = "tiger";
    DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
    Connection conn = DriverManager.getConnection(connStr, user, passwd);
    if (paramValue == null || paramValue.length() == 0) { %>
       <FORM METHOD="GET">
       Please input your name: <INPUT TYPE="TEXT" NAME="myparam"
    value="<%=sampledata%>" size=20>
    <BR>
       <INPUT TYPE="SUBMIT" value="Insert Data">
       </FORM>
    <%
      selectData(conn, out);
    else
    %>
       <H1> Insert Data: <%= paramValue %> </H1>
       <br/>
    <%
      insertData(conn, paramValue);
    %>
    <a href="nls.jsp">back</a>
    <%
    %>
    </BODY>
    </HTML>
    <%!
      public void insertData(Connection aConn, String myval)
        try {
          PreparedStatement stmt = aConn.prepareStatement("insert into tab01
    values(?)");
          stmt.setString(1, myval);
          stmt.executeUpdate();
          aConn.close();
        catch (SQLException e) {
          e.printStackTrace();
      public void selectData (Connection aConn, JspWriter out)
        try {
          Statement stmt = aConn.createStatement( );
          ResultSet r = stmt.executeQuery("SELECT col FROM tab01");
          out.println("<H1>List of Data:</H1>");
          while (r.next()) {
            out.println(r.getString(1)+"<br/>");
          aConn.close();
        catch (SQLException e) {
          e.printStackTrace();
        catch (IOException e) {
          e.printStackTrace();
    %>

  • JSP taglib tags

    hello every one
    i am using JSP taglibs in my work and i am trying the example given in book - " JSP The Complete Reference" . example of database operations . In chapter 11.
    But when i compile i am getting warning that EVAL_BODY_TAG is deprecated.
    so i would like to know what can i use instead of EVAL_BODY_TAG
    Thanks
    Amol

    Use either "EVAL_BODY_BUFFERED" or "EVAL_BODY_AGAIN".

  • EL or RT expressions for JSP taglibs

    I have a simple question
    We all know that there are two ways to implement a JSP page. either RT expressions or expression language (EL). I have done plenty of research and I am comfortable at creating custom JSP taglibs that support both RT and EL. What I want to know is which if them is used more commonly?
    Its useless to right 2 seperated libs, since you can pass variables from EL to RT and vice versa, so I want to have only one tag library, but I dont know how I should implement it EL or RT.
    What is used more often and why? What is the advantages of using one over the other. Thank you!!!

    RT was the original way; it required scriptlets, which everyone hates.
    EL is the new way; it helps eliminate scriptlets, which everyone loves.
    EL is the method of choice; even moreso when JSP 2.0 is finalized, it allows them to be used more freely (not just in tags)

  • Yet more TagLibs problems

    As jato2 still doesn't know about some HTML4 tags like <label>
    ex:
    <label><input type="radio" ... />TheLabel</label>
    if you click on "TheLabel", it clicks on the radio button, like every
    other GUI
    I thought I would be able use the <label for=""> as a workaround
    <input type="radio" name="choice" id="choice1" /> <label
    for="choice1">TheLabel</label>
    BUT despite it generates several tags, <jato:radioButtons> sets the id
    attribute to the same value for every tag :< This not only defeats my
    workaround but also id main purpose to uniquely identity elements.
    We really need a generic mechanism to specify attributes when jato tags
    generate multiple HTML tags.
    I can still change the generated tags in endDisplay but it be neat if
    the 201 taglib was a little bit more XHTML compliant and savvy ;)
    Fr?d?ric
    ps: release this part of the source code and we'll do it !

    Give me until monday and I'll have what you "ask" for (WML/XHTML
    Basic/Mobile as well as ViewBean).
    Following Todd advices,
    for the former, I am having new tags to render the same components. I
    may need to write new components but I'm not sure yet.
    for the latter, 1 pagelet per "rendering" type with an inner
    ContainerView when the logic is different ; the pagelet tags being
    surrounded by a homemade tag that "activates" the pagelet based on the
    client type. A specialized tag seems better than <jato:content> as the
    logic is wired.
    Further step would be to make the tags client aware but I'm not sure
    yet it is the right thing to do. Are tags "allowed" to store data in
    the session (to avoid computing client type ever and ever) ?
    Fr?d?ric
    PS: James Baty will confirm I'm not cheap ;?)
    On mercredi, nov 13, 2002, at 21:11 Europe/Paris, Craig V. Conover
    wrote:
    Fr?d?ric
    Is there anyway that we could talk with you about your WML efforts with
    JATO?
    I would love to get a sample WML app to show the world. And then have a
    WML/HTML app to show multiple clients using the same ViewBeans.
    craig
    Fr?d?ric Miserey wrote:
    On mercredi, nov 13, 2002, at 13:34 Europe/Paris, Todd Fast wrote:
    Fr?d?ric--
    Thanks for the info; I will look into a way of doing something
    about
    this.
    However, please keep in mind that you can write your own complementary
    tags
    to render JATO components any way you like (or write JATO components
    that
    render themselves any way you like), and this is expected to be a
    normal, if
    infrequent, part of writing JATO 2.0 components.That's what I'm doing right now for the WML tags. But I was planning on
    using the standard tags for mainstream HTML ;)
    May you elaborate a little bit on complementary tags vs components ?
    (first part of the suggested thread.
    Until the 2.0 taglib is documented, you can use the 1.2.1 JATO
    source
    to
    guide this effort.? It's actually pretty easy, but you will need the
    source
    to guide you without docs to that effect.? You can download the JATO
    1.2.1
    source, free of charge, etc. here:
    ???? http://iplanet.com/downloads/developer/5102.html
    (If that doesn't work, just do a search for "JATO" on sun.com).? We
    can also
    start a tag-writing thread here if you like.
    I would love to get your perspective on any XHTML shortcomings of the
    current tag library.? Can you plase send your thoughts, list of
    issues, etc.
    to jatoteam@e...?you don't know what you've just asked ;)
    Todd
    ----- Original Message -----
    From: "Fr?d?ric Miserey" <frederic@n...>
    Sent: Tuesday, November 12, 2002 8:35 AM
    Subject: [SunONE-JATO] yet more TagLibs problems
    As jato2 still doesn't know about some HTML4 tags like <label>
    ex:
    <label><input type="radio" ... />TheLabel</label>
    if you click on "TheLabel", it clicks on the radio button, like
    every
    other GUI
    I thought I would be able use the <label for="">? as a workaround
    <input type="radio" name="choice" id="choice1" /> <label
    for="choice1">TheLabel</label>
    BUT despite it generates several tags, <jato:radioButtons> sets the id
    attribute to the same value for every tag :< This not only defeats my
    workaround but also id main purpose to uniquely identity elements.
    We really need a generic mechanism to specify attributes when jato tags
    generate multiple HTML tags.
    I can still change the generated tags in endDisplay but it be neat if
    the 201 taglib was a little bit more XHTML compliant and savvy ;)
    Fr?d?ric
    ps: release this part of the source code and we'll do it !
    [Non-text portions of this message have been removed]

  • I18n jsp taglib, hot update

    Hi
    I'm investigating use of the jsp taglib i18n that comes with Personalization
    server.
    Is there any way of updating the .properties files so that the changes come
    thru reliably without restarting the server?
    A kind of reloadCheckSecs=0 like for jsp files would be good.
    Does such a functionality exist?
    Has anyone implemented such a functionality?
    Alternatively, is the code for the taglib available?
    Regards
    Alex

    If you need more information, don't know what I mean or whatever, please ask.
    I realy need this but don't know how to do...

  • Taglib problem in JSP

    I'm using JFreeChart to display the chart and I define the following taglib in my JSP.
    <%@ taglib uri="/WEB-INF/chartlib.tld" prefix="chartlib" %>
    It works in Tomcat and WebLogic, but not webtogo, got this exception.
    java.lang.NoClassDefFoundError: Illegal name: /WEB-INF/chartlib.tld
         at java.lang.ClassLoader.defineClass(Unknown Source)
         at java.lang.ClassLoader.defineClass(Unknown Source)
         at oracle.lite.web.ServletHandler$ServletClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at oracle.jsp.parse.JspUtils.loadClassJDK(JspUtils.java:219)
         at oracle.jsp.parse.JspUtils.loadClass(JspUtils.java:209)
    I have to hardcode the app name in order to make it work. Is there any good solution?
    <%@ taglib uri="//webapp/WEB-INF/chartlib.tld" prefix="chartlib" %>
    And it just solve the exception problem, it actually cannot show the chart. Anyone use the jfreechart or has problem in using custom tag library?
    Matthew

    I put the chartlib.tld in /WEB-INF/ and here is my web.xml. The uri of the taglib directive in JSP is exactly the taglib-uri here for each case.
    <taglib>
    <taglib-uri>/WEB-INF/chartlib.tld</taglib-uri>
    <taglib-location>/WEB-INF/chartlib.tld</taglib-location>
    </taglib>
    <taglib>
    <taglib-uri>chartlib-01.tld</taglib-uri>
    <taglib-location>/chartlib.tld</taglib-location>
    </taglib>
    <taglib>
    <taglib-uri>chartlib-02.tld</taglib-uri>
    <taglib-location>/no_chartlib.tld</taglib-location>
    </taglib>
    <taglib>
    <taglib-uri>chartlib-03.tld</taglib-uri>
    <taglib-location>/WEB-INF/chartlib.tld</taglib-location>
    </taglib>
    <taglib>
    <taglib-uri>chartlib-04.tld</taglib-uri>
    <taglib-location>chartlib.tld</taglib-location>
    </taglib>
    <taglib>
    <taglib-uri>chartlib-05.tld</taglib-uri>
    <taglib-location>no_chartlib.tld</taglib-location>
    </taglib>
    <taglib>
    <taglib-uri>/WEB/chartlib.tld</taglib-uri>
    <taglib-location>/WEB-INF/chartlib.tld</taglib-location>
    </taglib>
    And I have modified the source code in JspDirectiveTaglib.java to output some debug message, where s1 is the value of uri in JSP, s3 is the value of taglib-location in web.xml. Here is the result. It tries to load s1 first. If it returns null, then it reads the tld file s2. It shows that the leading '/' represent the webapp dir. If it is relative (i.e. no '/'), it refers to the /WEB-INF as you can see the program automatically add it in the beginning. Finally, the message "loader MyChartTag" shows that it loads my tag class successfully.
    ----Case 1: this should be the normal/ideal case, but in fact it fails.
    ----It loads the tld file but it is not a class, so throws the error.
    JspDirectiveTaglib:uri(s1)=[WEB-INF/chartlib.tld]
    JspDirectiveTaglib:s3=[WEB-INF/chartlib.tld]
    JspDirectiveTaglib:loadClass(s1)=[WEB-INF/chartlib.tld]
    log1: loader: /WEB-INF/chartlib.tld
    log9: JspServlet: unable to dispatch to requested page: java.lang.NoClassDefFoundError:
    Illegal name: /WEB-INF/chartlib.tld
    ----Case 2: try to read tld in root dir.
    JspDirectiveTaglib:uri(s1)=[chartlib-01.tld]
    JspDirectiveTaglib:s3=[chartlib.tld]
    JspDirectiveTaglib:loadClass(s1)=[chartlib-01.tld]
    JspDirectiveTaglib:class1=null
    log9: JspServlet: unable to dispatch to requested page: oracle.jsp.parse.JspParseException:
    Error: java.io.FileNotFoundException:
    F:\webapp\chartlib.tld (???????????)
    ----Case 3: try to read a non-existing tld to see where is the root dir.
    JspDirectiveTaglib:uri(s1)=[chartlib-02.tld]
    JspDirectiveTaglib:s3=[no_chartlib.tld]
    JspDirectiveTaglib:loadClass(s1)=[chartlib-02.tld]
    JspDirectiveTaglib:class1=null
    log9: JspServlet: unable to dispatch to requested page: oracle.jsp.parse.JspParseException:
    Error: java.io.FileNotFoundException:
    F:\webapp\no_chartlib.tld (???????????)
    ----Case 4: try to read tld in absolute dir.
    JspDirectiveTaglib:uri(s1)=[chartlib-03.tld]
    JspDirectiveTaglib:s3=[WEB-INF/chartlib.tld]
    JspDirectiveTaglib:loadClass(s1)=[chartlib-03.tld]
    JspDirectiveTaglib:class1=null
    log1: loader: MyChartTag
    ----Case 5: try to read tld in relative dir, but the path is changed by the program.
    JspDirectiveTaglib:uri(s1)=[chartlib-04.tld]
    JspDirectiveTaglib:s3=[WEB-INF/chartlib.tld]
    JspDirectiveTaglib:loadClass(s1)=[chartlib-04.tld]
    JspDirectiveTaglib:class1=null
    log1: loader: MyChartTag
    ----Case 6: try to read a non-existing tld in relative dir, but the path is changed by the program.
    JspDirectiveTaglib:uri(s1)=[chartlib-05.tld]
    JspDirectiveTaglib:s3=[WEB-INF/no_chartlib.tld]
    JspDirectiveTaglib:loadClass(s1)=[chartlib-05.tld]
    JspDirectiveTaglib:class1=null
    log9: JspServlet: unable to dispatch to requested page: oracle.jsp.parse.JspParseException:
    Error: java.io.FileNotFoundException:
    F:\webapp\WEB-INF\no_chartlib.tld (???????????)
    ----Case 7: try to compare to case 1 if the uri specifies an invalid path.
    JspDirectiveTaglib:uri(s1)=[WEB/chartlib.tld]
    JspDirectiveTaglib:s3=[WEB-INF/chartlib.tld]
    JspDirectiveTaglib:loadClass(s1)=[WEB/chartlib.tld]
    JspDirectiveTaglib:class1=null
    log1: loader: MyChartTag

  • 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

  • Precompiled JSP Compatibility Problem

    I am a developer in the Cross Applications Unlimited group. We are experiencing a problem with precompiled jsps in a ADF web application that we have developed. Any help that you can provide with this problem would be much appreciated. Neither Oracle forums nor the internet have yielded any leads to us so far. Here are the specifics of our problem.
    In our application, we precompile our JSPs when the EAR is built. The application was initially developed in JDeveloper 10.1.3.2 and worked without problems when deployed to OAS 10.1.3.2. However, our application server MTR recently shifted to OAS 10.1.3.3. We migrated our workspace and projects to JDeveloper 10.1.3.3 and rebuilt our EAR file in JDeveloper 10.1.3.3. We are getting "500 Internal Server Errors" when this new ear file is deployed to OAS 10.1.3.3. The error does not always manifest when running the application. We can login and navigate to JSPs linked directly from our navigation menu (our first level pages). However, in these first level pages are buttons that navigate to second level pages. The error is being seen whenever we try to access one of these second level pages. Everything else about the application works fine. When we don't precompile our JSPs and deploy, the application works fine.
    This is the error we find reported in our application logs...
    EWCoreViewController: Servlet error
    javax.faces.el.PropertyNotFoundException: Error testing property 'inputValue' in bean of type null
    at com.sun.faces.el.PropertyResolverImpl.isReadOnly(PropertyResolverImpl.java:274)
    at oracle.adfinternal.view.faces.model.FacesPropertyResolver.isReadOnly(FacesPropertyResolver.java:124)
    at com.sun.faces.el.impl.ArraySuffix.isReadOnly(ArraySuffix.java:236)
    at com.sun.faces.el.impl.ComplexValue.isReadOnly(ComplexValue.java:209)
    at com.sun.faces.el.ValueBindingImpl.isReadOnly(ValueBindingImpl.java:266)
    Enabling enhanced java logging yields these logs...
    <record>
    <date>2008-04-09T11:27:25</date>
    <millis>1207762045495</millis>
    <sequence>258943</sequence>
    <logger>com.sun.faces.application.ViewHandlerImpl</logger>
    <level>FINE</level>
    <class>com.sun.faces.application.ViewHandlerImpl</class>
    <method>renderView</method>
    <thread>14</thread>
    <message>Found no URL patterns mapping to FacesServlet </message>
    </record>
    <record>
    <date>2008-04-09T11:27:25</date>
    <millis>1207762045495</millis>
    <sequence>258944</sequence>
    <logger>com.sun.faces.taglib.jsf_core.ViewTag</logger>
    <level>FINE</level>
    <class>com.sun.faces.taglib.jsf_core.ViewTag</class>
    <method>doStartTag</method>
    <thread>14</thread>
    <message>Can't leverage base class</message>
    <exception>
    <message>java.lang.IllegalStateException</message>
    <frame>
    <class>com.sun.faces.taglib.jsf_core.ViewTag</class>
    <method>getComponentType</method>
    <line>253</line>
    </frame>
    Any information anyone can provide would be greatly appreciated.
    Thanks

    Hi Ian,
    Add this jar file to classpath...use either web interface or directly edit jvm12.conf to modify classpath..
    Raj

Maybe you are looking for

  • Spry menu bar and IE

    Menu bar works fine in all other major browsers, but there is a gap in the "specialty" submenu.  Also, it is very "twitchy in IE" i have been working on this for way too long, somebody please help.  superfunecotours.com is the site. Here is the spry

  • Error during J1INCHLN report

    Dear All At the time of executing the report J1INCHLN (Create remittance challan)  with Section 194A i am getting the error message "Number group not maintained for CO code 1000 section  and business place 194A" Message no. 8I704 earliest help is app

  • How can I find components in a JTextPane

    I have created a JTextPane with Jlabels imbeded in line. How can I search the JTextPane and replace the Jlabels with text. Thank you in advance.

  • What's the Best Securirty Lock for Powerbook?

    I just got the new 17" PowerBook and am looking to buy the best security lock cable for it. I have read some posts before indicating some locks damaged their PowerBooks. I would appreciate your comments on your experiences and your recommendations. T

  • SAPEphi Fail during upg from NW7.01 to 7.02 in READ_BASE_PROFILE phase

    Hi, SAPEphi Fails with the message Error while executing PhaseTypeExecuteTask with input file ReadProfiles.xml and task READ_BASE_PROFILES. Could not determine profile parameters. Error while reading properties from /usr/sap/A57/SYS/profile/START_JC3