JSP taglib prefix issue

Placing the prefix before the URI as shown below works when deploying to Tomcat
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>
but does not work for OC4J.
For OC4J , placing the prefix after URI works , but will not work under Tomcat
<%@ taglib uri="http://www.springframework.org/tags" prefix="spring" %>
Any ideas?
Jeff
GoogleTalk : ejbengine
Skype : ejbengine
Registered Linux user number 366042

Placing the prefix before the URI as shown below
works when deploying to Tomcat
<%@ taglib prefix="spring"
uri="http://www.springframework.org/tags" %>
but does not work for OC4J.It should not matter which one is placed first. If it does not work for OC4J, it should be, as my first thought, caused by some factors other than the order of attributes. Can you confirm that once if the uri and the prefix are switched in a single jsp file, then that jsp file will be working correctly? If so, what is version of your oc4j?
As far as I have tried on oc4j 10.1.3.0.0, there is no such problem.

Similar Messages

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

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

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

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

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

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

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

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

  • Issue about jsp taglib,please help

    Hello all,
    I want to use jsp tag like following:
    <c:import url="xxx.jsp">
    <c:param name="xxxAction" value="<portlet:renderURL/>"/>
    </c:import>
    and the value of the c:param can not accept the value generated by the <portlet:renderURL/> tag.
    I can resolve the issue by writing java code in the jsp(like ...java code...<c:param name="xxxAction" value="%=...%"/> ),much java code occur in the jsp,I do not like this solution.
    anybody has good solution please help me.
    thanks and rgds.

    Ram is correct. You can't nest custom tags as attributes to other custom tags.
    In this case the <c:param> tag offers the option of specifying the value as the body of the tag though, so the following should work:
    <c:import url="xxx.jsp">
    <c:param name="xxxAction"><portlet:renderURL/></c:param>
    </c:import>

  • JSP Taglib Issues

    Hey there. I am deploying a WAR file on OC4J 9.0.4.0, and it has a taglib that I wrote as well as the "core" tld. I have made sure that my tag classes, my tld file, and my web.xml conform to JSP 1.2 as JSP 2.0 does not appear to be supported. I receive the following error:
    (See bold)
    500 Internal Server Error
    java.lang.NullPointerException
    at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].naming.ContextClassLoader.loadClass(ContextClassLoader.java:138)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].naming.ContextClassLoader.loadClass(ContextClassLoader.java:138)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].naming.ContextClassLoader.loadClass(ContextClassLoader.java:138)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at
    oracle.jsp.parse.JspUtils.loadClassJDK(JspUtils.java:255)
    at oracle.jsp.parse.JspUtils.loadClass(JspUtils.java:245)
    at oracle.jsp.parse.JspRTTag.<init>(JspRTTag.java:136)
    at oracle.jsp.parse.JspParseState.createTagParser(JspParseState.java:573)
    at oracle.jsp.parse.JspParseTag.parseNextTag(JspParseTag.java:693)
    at oracle.jsp.parse.JspParseTagFile.parse(JspParseTagFile.java:184)
    at oracle.jsp.parse.OracleJsp2Java.transform(OracleJsp2Java.java:154)
    at oracle.jsp.runtimev2.JspPageCompiler.attemptCompilePage(JspPageCompiler.java:406)
    at oracle.jsp.runtimev2.JspPageCompiler.compilePage(JspPageCompiler.java:282)
    at oracle.jsp.runtimev2.JspPageInfo.compileAndLoad(JspPageInfo.java:443)
    at oracle.jsp.runtimev2.JspPageTable.getJspClass(JspPageTable.java:210)
    at oracle.jsp.runtimev2.JspServlet.getJspClass(JspServlet.java:684)
    at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.HttpApplication.getOjspJspFileServletInst(HttpApplication.java:2155)
    at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.HttpApplication.loadServlet(HttpApplication.java:1990)
    at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.HttpApplication.findServlet(HttpApplication.java:4523)
    at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.HttpApplication.getRequestDispatcher(HttpApplication.java:2561)
    at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:640)
    at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.HttpRequestHandler.run(HttpRequestHandler.java:270)
    at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.HttpRequestHandler.run(HttpRequestHandler.java:112)
    at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:192)
    at java.lang.Thread.run(Unknown Source)
    I can verify that all the files are in the right places as well.
    I have exhausted all avenues as far as determining why this error is occurring, but I cannot solve it. Worse yet, we have a deadline fast approaching. I know this isn't much, but I was hoping the stack trace could at least help you point me in some direction. Any insights you have out there are greatly appreciated.
    Thanks and Happy New Year.

    Hello MackDe,
    If the rquired libraries are not updated in the NWDI system. Plz ask your Basis team to update the shr/ext component from the SAP Market place. After the update plz create the project of shr/ext and synch it,  then all the required libraries will be added to the classpath automatically in NWDS. Do the build and deploy and test the application. If not plz update the latest errors that you got.
    Thanks,
    Pateelu

  • 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 Custom tag issues.

    Hi all,
    When my JAVA_HOME env variable is pointing to C:\jdk1.3, the JSP below which contains some custom tags fails to compile in Weblogic 5.1. However, when i change my JAVA_HOME env variable to C:\weblogic\jre1_2\jre, the same JSP compiles and deploys with no problems. I was of the opinion that the jre in jdk 1.3 is the same as jre1_2 which is bundled with weblogic 5.1. Does anyone know of any differences btw the Jre's or why the JSP below cannot be compiled when i use JDK1.3. Thanks for the help.
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
    <%@ page import="java.util.Vector" %>
    <%@ page import="com.spcs.premiere.common.framework.errorhandling.ErrorUtility" %>
    <%@ page import="com.spcs.premiere.common.framework.errorhandling.PremiereLogger" %>
    <%@ page import="org.grnds.structural.web.GrndsServletException" %>
    <%@ taglib uri="/tlds/profiling/profile.tld" prefix="profile" %>
    <%@ page import="com.spcs.premiere.web.common.HTMLListBuilder" %>
    <%@ page import="com.spcs.premiere.web.common.ListParametersDomain" %>
    <%@ page import="com.spcs.premiere.web.common.PremiereConstants" %>
    <%@ page import="com.spcs.premiere.ejb.authentication.LoginDomain" %>
    <html>
    <head>
         <title>Premiere Business...Assign Credit Class</title>
         <LINK HREF="<%= request.getContextPath()%>/stylesheets/premiere.css" REL="stylesheet" TYPE="text/css">
         <SCRIPT LANGUAGE="javascript">
              var winHandle=window.dialogArguments;
         function userFocus()
              window.document.SupervisorLoginForm.SupervisorUserName.focus();
         </SCRIPT>
    </head>
    <body onload="userFocus();">
    <%
    try{
    %>
    <TABLE WIDTH="100%" HEIGHT="100%" CLASS="groupbox">
    <TR>
              <TABLE WIDTH="100%" HEIGHT="75%" CLASS="groupbox">
              <TR HEIGHT="15%"></TR>
              <FORM NAME="SupervisorLoginForm" ACTION="<%= request.getContextPath() %>/Premiere/AddAccountConversation/SupervisorLogin" METHOD="post" TARGET="_self">
    <TR HEIGHT="15%">
    <TD align=center><LABEL NAME="SupervisorUserNameLabel">User ID:</LABEL></TD></TD>
    <TD align=left><INPUT TYPE="text" NAME="SupervisorUserName" MAXLENGTH="20" SIZE="20" TABINDEX="1"></TD></TR>
              </TR>
              <TR>
    <TD align=center>    <LABEL NAME="SupervisorPasswordLabel">Password:</LABEL></TD></TD>
    <TD align=left><INPUT TYPE="password" NAME="SupervisorPassword" TABINDEX="2" MAXLENGTH="20" SIZE="20" ENABLED></TD>
              </TR>
              <TR>
              <TD COLSPAN="2" ALIGN="center"><BUTTON TYPE="submit" NAME="Login" TABINDEX="3" Class="button">Login</BUTTON></TD>
              <TD></TD>
              </TR></FORM>
              <FORM NAME="CreditClassForm" ACTION="<%= request.getContextPath() %>/Premiere/AddAccountConversation/AssignCreditManually" METHOD="post">
    <TR HEIGHT="60%">
    <TD align=center>        <LABEL NAME="SupervisorCreditClassLabel">Credit Class:</LABEL></TD></TD>
    <TD align=left>
              <profile:user WidgetName="CreditClass" Context="JSP" SubContext="SupervisorLogin" Evaluate="SUPERVISOR">
              <%= HTMLListBuilder.buildHTMLList((ListParametersDomain)session.getAttribute("CreditClassCodes")) %></TD>
              </profile:user>
              <TD></TD>          
              </TR>
              <TR></TR>
              </TR></TBODY></TABLE>
    </TR>
              <TR>
              <TABLE WIDTH="100%" HEIGHT="25%" CLASS="groupbox">
              <TD></TD>
              <TD align=right><BUTTON NAME="Cancel" Class="button" TABINDEX="4" ONCLICK="window.close()">Cancel</BUTTON>  
              <profile:user WidgetName="Save" Context="JSP" SubContext="SupervisorLogin" Evaluate="SUPERVISOR">
                   <BUTTON TYPE="submit" NAME="Save" TABINDEX="6" Class="button">Save</BUTTON>  
                   </profile:user>
              </TD>
              </TR></TBODY></TABLE>
              </TR></TBODY></TABLE>
              </FORM>
    <%
    catch (Exception e)
    LoginDomain loginDomain = (LoginDomain)session.getAttribute(PremiereConstants.LOGIN_DOMAIN);
    PremiereLogger.log( "ERROR", loginDomain.getUserName()+" General Exception Error: ", e );
    request.setAttribute(ErrorUtility.ERROR_CONDITION, ErrorUtility.getMessage(PremiereConstants.GENERIC_JSP_EXCEPTION_ERROR_ID) );
    throw new GrndsServletException();
    %>          
    </body>
    </html>

    UUh, interesting.
    Try to use the last Service Pack for 5.1 - i think it is sp9.
    Hope it'll work. I've had some problems with XML parsing but they resolved when I installed the last SP...

  • JSP taglib  Error

    hi
    I am using IPlanet 4.1 web Server
    Here is the error i get ..
    [02/Jul/2001:16:39:20] info (11201): JSP: JSP1x compiler threw exception
    org.apache.jasper.JasperException: Unable to open taglibrary /mylib.tld : Could not locate TLD
    META-INF/taglib.tld
    at
    org.apache.jasper.compiler.JspParseEventListener.handleDirective(JspParseEventListener.java,
    Compiled Code)
    at org.apache.jasper.compiler.DelegatingListener.(DelegatingListener.java, Compiled Code)
    at org.apache.jasper.compiler.Parser$Directive.accept(Parser.java, Compiled Code)
    at org.apache.jasper.compiler.Parser.parse(Parser.java, Compiled Code)
    at org.apache.jasper.compiler.Parser.parse(Parser.java, Compiled Code)
    at org.apache.jasper.compiler.Parser.parse(Parser.java, Compiled Code)
    at org.apache.jasper.compiler.Compiler.compile(Compiler.java, Compiled Code)
    at com.netscape.server.http.servlet.NSServletEntity.load(NSServletEntity.java, Compiled
    Code)
    at com.netscape.server.http.servlet.NSServletEntity.update(NSServletEntity.java, Compiled
    Code)
    at com.netscape.server.http.servlet.NSServletRunner.Service(NSServletRunner.java, Compiled
    Code)
    Can anyone please help me on this .
    My JSP file looks like :
    <%@ taglib uri="/mylib.tld" prefix="test" %>
    <html>
    <body>
    <test:hello name="Hans">
    </body>
    </html>
    And The mylib.tld is :
    <?xml version="1.0" encoding="ISO-8859-1" ?>
    <!DOCTYPE taglib
    PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.1//EN"
    "http://java.sun.com/j2ee/dtds/web-jsptaglibrary_1_1.dtd">
    <taglib>
    <tlibversion>1.0</tlibversion>
    <jspversion>1.1</jspversion>
    <shortname>test</shortname>
    <tag>
    <name>hello</name>
    <tagclass>classes.HelloTag</tagclass>
    <bodycontent>empty</bodycontent>
    <attribute>
    <name>name</name>
    </attribute>
    </tag>
    </taglib>
    Thanks,
    vikas

    Does your web server have an internet connection, or is it just a localhost on a development machine? If it can't see the internet, it can't find the DTD:
    <!DOCTYPE taglib
    PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.1//EN"
    "http://java.sun.com/j2ee/dtds/web-jsptaglibrary_1_1.dtd">
    ...which may be your problem. A workaround is to download the above file, put it on your webserver somewhere, and change this url to point to the new location.

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

Maybe you are looking for

  • Ipod touch 3rd gen not syncing movies

    Today after about 4 years with the same movies on my Ipod touch third gen i decided to change what i had on my device. so i started up itunes for the first time in a few years pluged my device in and it connects no problem. i move all the movies i ha

  • After restarting my Mac does not connect wifi preferred

    Hi Everyone! My Mac Air does not automatically connect to desired Wi-Fi network. I have already done: 1- I Checked my TCP/IP settings in the Network ( I did Renew DHCP lease). 2- I Removed networks from my Preferred Networks list. 3 - I Removed my st

  • Request Tranport

    HI, We want to transport few repair requests from sandbox system to development system in such a way that the objects within the requests remain original in the development system. So, whenever the objects are modified in the development system in fu

  • Invoice Block when Exceeded date limit

    Hi                I want to block pick the item in pick and manger when a customer have any payment due above 60 dates as per posting date, we are following first sale order ---->pick  ----->Delivery ---->Invoice Please give me a solution

  • W540 and Ultradock Display Port Issue with Monoprice 27" Monitor

    Hi, I have been troubleshooting an issue with my W540 and Ultradock for over a month now.  The issue is that the display port will not recognize my Monoprice 27" monitor.  This same monitor was working previously with my W520 and a different dock (Th