Use of  nav:navNodeAnchor tag library

Hi folks,
I am trying to display the breadcrumb feature of portal navigation using navigation tag library <nav:navNodeAnchor> in my custom header iview.
The code goes something like this.
                              <nav:iterateNavNodesInSelectedPath>
                              <nav:navNodeAnchor navigationMethod="byURL"
                                        anchorAttributes="class='textstyle2'"/>
                                                            <nav:ifHasMoreIterations>></nav:ifHasMoreIterations>
                              </nav:iterateNavNodesInSelectedPath>
But here, when I try to apply the css class as part of anchor attributes, it is not getting reflected in the output. Basically, it always displays the breadcrumbs in the standard colors defined.
Can somebody please help me on this.
Regards
Srinidhi

Hi Srinidhi,
As the expected behaviour is what is also documented (for example under http://help.sap.com/saphelp_nw04s/helpdata/en/43/0029d0e7371aa2e10000000a422035/frameset.htm ), it <i>should</i> work. Check the HTML code which is generated on the created page; if the "textstyle2" string is also missing or at the wrong place, check if you are able to correct the entry maually (in the latter case), otherwise open an OSS message...
Hope it helps
Detlev
PS: @Prem - See the linke above, it's not really a CSS attribute but a generic possibility to inject anything (for example: CSS class references) into the generated html anchor. Anyhow, I also expect that the text gets rendered in the created HTML page but the resolution does not work, for example as the CSS itself is not referenced or something like that...

Similar Messages

  • Using Weblogic Console Extension tag library...

    Now i am working with weblogic 8.1
    I am using Weblogic Console Extension Example...downloaded from dev2dev.bea.com...
    at that example console Jsp program is as below for
    the development of node...
    <br>
    <b><wl:node
    label='<%="My Console Extension"%>'
    icon='/images/folder.gif'
    expanded='true'>
    </wl:node></b>
    <br><br>
    <i><b>But i want two folder icons...for open folder...and closed folder...</b></i>
    <br>
    i have gifs...but how i modify this
    jsp...or tag library...any one can help me...
    <br>
    raju

    "Otherwise let me know tools that can tell me threads, memory, cpu, etc and provide notification, etc." -- Hi, I'm familiar with a third-party tool that is suitable for larger deployments, it collects the data you mention for Weblogic instances and also does performance monitoring at the cluster level. Here is a description of their WebLogic integration pack -- http://www.evidentsoftware.com/products/clearstone-for-weblogic/. Hope this helps.

  • How to use the JRun Custom tag library wiith Weblogic 5.1?

    Hello,
    is it possible to use the JRUN Tag Library with Bea Weblogic 5.1? We
    got an error message like:
    weblogic.servlet.jsp.JspException: (line -1): Error in tag library at:
    'jrun': T
    here is no setter method for property 'code', for Tag class
    'allaire.taglib.Serv
    letTag'
    Thank you for any info!
    Stefan

    Hi Joe,
    I don't know, however someone that follows the JSP newsgroup [1] may be
    able to help. Could you try your post there.
    Thanks,
    Bruce
    [1]
    http://newsgroups.bea.com/cgi-bin/dnewsweb?cmd=xover&group=weblogic.developer.interest.jsp
    Joe Kamenar wrote:
    >
    I have a question. I need to do a sort on news articles in our database, sorting
    by the date they were posted. I then want to take only the top 6 articles. We
    are using Weblogic 5.1. When I use the following statement, 6 articles are taken
    from the database, then sorted, which ends up leaving out the most recent articles:
    <cm:select contentHome="com.beasys.commerce.axiom.document.Document" query="<%=contentQuery%>"
    sortby = "creationDate DESC, headlineDate DESC" max="6" id="contentList" />
    I need to get ALL the articles for the sort, then just take the most recent 6.
    So, I know that I can use the following code and monitor the counter variable,
    "i". But, how do i do this to only display the top 6 items?
    <es:foreachinarray id="content" array="contentList" type="com.beasys.commerce.axiom.content.Content"
    counterId="i">
    <% myStr=content.getIdentifier(); %>
    <% if (i<6) {
    %>
    <div class="marginText">
    <cm:printproperty id="content" name="title" encode="html" />  
    <a href="<%=new String(news_display.jsp?id="+myStr)%">">more</a>
    </div>
    <% } %>
    </es:foreachinarray>
    However, when I run this, no results show up. What is the correct way to do this?
    - Joe</a>

  • How to use the JRun Custom tag library with Weblogic 5.1?

    Hello,
              is it possible to use the JRUN Tag Library with Bea Weblogic 5.1? We
              got an error message like:
              weblogic.servlet.jsp.JspException: (line -1): Error in tag library at:
              'jrun': T
              here is no setter method for property 'code', for Tag class
              'allaire.taglib.Serv
              letTag'
              Thank you for any info!
              Stefan
              

    Hi Joe,
    I don't know, however someone that follows the JSP newsgroup [1] may be
    able to help. Could you try your post there.
    Thanks,
    Bruce
    [1]
    http://newsgroups.bea.com/cgi-bin/dnewsweb?cmd=xover&group=weblogic.developer.interest.jsp
    Joe Kamenar wrote:
    >
    I have a question. I need to do a sort on news articles in our database, sorting
    by the date they were posted. I then want to take only the top 6 articles. We
    are using Weblogic 5.1. When I use the following statement, 6 articles are taken
    from the database, then sorted, which ends up leaving out the most recent articles:
    <cm:select contentHome="com.beasys.commerce.axiom.document.Document" query="<%=contentQuery%>"
    sortby = "creationDate DESC, headlineDate DESC" max="6" id="contentList" />
    I need to get ALL the articles for the sort, then just take the most recent 6.
    So, I know that I can use the following code and monitor the counter variable,
    "i". But, how do i do this to only display the top 6 items?
    <es:foreachinarray id="content" array="contentList" type="com.beasys.commerce.axiom.content.Content"
    counterId="i">
    <% myStr=content.getIdentifier(); %>
    <% if (i<6) {
    %>
    <div class="marginText">
    <cm:printproperty id="content" name="title" encode="html" />  
    <a href="<%=new String(news_display.jsp?id="+myStr)%">">more</a>
    </div>
    <% } %>
    </es:foreachinarray>
    However, when I run this, no results show up. What is the correct way to do this?
    - Joe</a>

  • Error in using struts tag library

    Platform information:
    Windows XP
    BEA Weblogic Server 8.1 (Developer)
    Struts 1.1
    I am unable to compile the following JSP in weblogic because it says there is
    an error using the struts-html tag library. (Details about the error are mentioned
    after the JSP)
    My JSP file is:
    ===================================================================
    <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
    <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
    <%@ taglib uri='/WEB-INF/struts-template.tld' prefix='template' %>
    <%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
    <%@ page import="com.hipaaccelerator.runtime.HARuntime" %>
    <jsp:useBean id='logonForm' scope='request' class='com.hipaaccelerator.hipaax.form.LogonForm'/>
    <html:html>
    <head>
    <title>Logon</title>
    <link rel='stylesheet' href="<html:rewrite page='/styles/default.css'/>" type='text/css'
    >
    <script language='javascript' src="<html:rewrite page='/scripts/default.js'/>"
    type='text/javascript'></script>
    </head>
    <body>
    <html:form action='/logon.do' >     
         <table border='0' align='center' >
              <tr><td height='10'></td></tr>
              <tr>
    <td align='center'>
    <html:img src='/images/Logo.gif' height='70'
    width='449'/>
    </td>
    </tr>
              <tr><td height='10'></td></tr>
         </table>
         <table align='center' width='100%' >
         <tr><td height='10'></td></tr>
         <tr>
         <td height='20' width='10%'> </td>
         <td height='20' colspan='3' align='center' style="font-size: 18pt; color:
    blue;
    background-color: white; text-align:center">PAC
    </td>
         <td height='20' width='10%'> </td>
         </tr>
         <tr><td height='10'></td></tr>
         <tr>
         <td height='20' width='10%'> </td>
         <td height='20' width='8%'> </td>
         <td height='20' align='center' style="border-style:solid; border-width:2pt;
    font-
    size: 10pt; color: red; background-color: white; text-align:center">
    <%= HARuntime.instance().getConfig().getProperty("logonAnnouncement")
    %>
    </td>
         <td height='20' width='8%'> </td>
         <td height='20' width='10%'> </td>
         </tr>
         <tr><td height='10'></td></tr>
         </table>
         <table border='0' align='center' >               
         <tr>
    <td class='formfieldname' ><b>User Name: </td>
         <td class='formfield'>
         <html:text property='username' maxlength='20' size='20'/>
         </td>
         </tr>
         <tr><td class='formfieldspacer'></td></tr>
         <td class='formfieldname' ><b>Password:</b> </td>
         <td class='formfield'>
         <html:password property="password" size="20" maxlength="20"
    redisplay="false"/>
         </td>
         </tr>
         <tr><td class='formfieldspacer'></td></tr>
         <tr>
    <td colspan='2' align='middle'>
         <html:image src='/images/login.gif' onclick='document.forms[0].submit();
    return false;' />     
         </td>
    </tr>
    </table>
    <br><br>
    </html:form>     
    </body>
    </html:html>
    ===================================================================
    The translation of this page fails with the following error:
    <Dec 16, 2003 5:06:13 PM MST> <Error> <HTTP> <BEA-101045> <[ServletContext(id=4595,name=hipaax,context-path=/hipaax)]
    translation of /logon.jsp failed:
    weblogic.servlet.jsp.JspException: (line 1): Error in using tag library uri='/WEB-INF/struts-html.tld'
    prefix='html': The Tag class 'org.apache.struts.taglib.html.BaseTag' has no setter
    method corresponding to TLD declared attribute 'server', (JSP 1.1 spec, 5.4.1)>
    ===================================================================
    I have struts.jar in /web-inf/lib. I have taglib (uri and location) definitions
    in web.xml.I have all the struts tld files under /web-inf. Is there anything
    else I have to do?
    Any help would be greatly appreciated.
    Thank you.
    Sharmila

    Update: I just looked up the WL version and it's 8.1 sp3
              So, I guess, JSTL 1.1 (which includes jstl fn tags) is not supported by WL.... Someone correct me if I am wrong.
              Thanks,
              pal :)

  • Connection Pooling and JSP Custom Tag Library - is code (inside) the best way/correc?

    Hi, can anyone advise as to whether my tag library code (based
    on Apache Jakarta Project) will actually achieve connection
    pooling functionality across my entire JSP based application? I
    am slightly concerned that my OracleConnectionCacheImpl object
    may exist multiple times, hence rendering my conection pooling
    attempt useless.
    package com.solved.tag.dbtags.connection;
    import java.io.IOException;
    import java.sql.Connection;
    import java.sql.SQLException;
    import javax.servlet.jsp.tagext.TagSupport;
    import javax.servlet.jsp.JspTagException;
    import javax.sql.DataSource;
    import javax.naming.InitialContext;
    import javax.naming.NamingException;
    import oracle.jdbc.pool.OracleConnectionCacheImpl;
    * <p>JSP tag connection, used to get a
    * java.sql.Connection object.</p>
    * <p>JSP Tag Lib Descriptor
    * <pre>
    * &lt;name>connection&lt;/name>
    &lt;tagclass>com.solved.tag.dbtags.connection.ConnectionTag&lt;/t
    agclass>
    * &lt;bodycontent>JSP&lt;/bodycontent>
    &lt;teiclass>com.solved.tag.dbtags.connection.ConnectionTEI&lt;/t
    eiclass>
    * &lt;info>Opens a connection based on a jndiName.&lt;/info>
    * &lt;attribute>
    * &lt;name>id&lt;/name>
    * &lt;required>true&lt;/required>
    * &lt;rtexprvalue>false&lt;/rtexprvalue>
    * &lt;/attribute>
    * </pre>
    * @author Matt Shannon
    public class ConnectionTag extends TagSupport {
    static private OracleConnectionCacheImpl cache = null;
    public int doStartTag() throws JspTagException {
    try {
    Connection conn = null;
    if (cache == null) {
    try {
    InitialContext ic = new InitialContext();
    DataSource ds = (DataSource) ic.lookup
    ("jdbc/pool/OracleCache");
    cache = (OracleConnectionCacheImpl)ds;
    catch (NamingException ne) {
    throw new JspTagException(ne.toString());
    conn = cache.getConnection();
    pageContext.setAttribute(getId(),conn);
    catch (SQLException e) {
    throw new JspTagException(e.toString());
    return EVAL_BODY_INCLUDE;
    package com.solved.tag.dbtags.connection;
    import java.sql.Connection;
    import java.sql.SQLException;
    import javax.servlet.jsp.tagext.TagSupport;
    * <p>JSP tag closeconnection, used to close the
    * specified java.sql.Connection.<p>
    * <p>JSP Tag Lib Descriptor
    * <pre>
    * &lt;name>closeConnection&lt;/name>
    &lt;tagclass>com.solved.tag.dbtags.connection.CloseConnectionTag&
    lt;/tagclass>
    * &lt;bodycontent>empty&lt;/bodycontent>
    * &lt;info>Close the specified connection. The "conn"
    attribute is the name of a
    * connection object in the page context.&lt;/info>
    * &lt;attribute>
    * &lt;name>conn&lt;/name>
    * &lt;required>true&lt;/required>
    * &lt;rtexprvalue>false&lt;/rtexprvalue>
    * &lt;/attribute>
    * </pre>
    * @author Matt Shannon
    * @see ConnectionTag
    public class CloseConnectionTag extends TagSupport {
    private String _connId = null;
    * The "conn" attribute is the name of a
    * page context object containing a
    * java.sql.Connection.
    * @param connectionId
    * attribute name of the java.sql.Connection to
    close.
    * @see ConnectionTag
    public void setConn(String connectionId) {
    _connId = connectionId;
    public int doStartTag() {
    try {
    Connection conn = (Connection)pageContext.getAttribute
    (_connId);
    conn.close();
    } catch (SQLException e) {
    // failing to close a connection is not fatal
    e.printStackTrace();
    return EVAL_BODY_INCLUDE;
    public void release() {
    _connId = null;
    package com.solved.tag.dbtags.connection;
    import javax.servlet.jsp.tagext.TagData;
    import javax.servlet.jsp.tagext.TagExtraInfo;
    import javax.servlet.jsp.tagext.VariableInfo;
    * TagExtraInfo for the connection tag. This
    * TagExtraInfo specifies that the ConnectionTag
    * assigns a java.sql.Connection object to the
    * "id" attribute at the end tag.
    * @author Matt Shannon
    * @see ConnectionTag
    public class ConnectionTEI extends TagExtraInfo {
    public final VariableInfo[] getVariableInfo(TagData data)
    return new VariableInfo[]
    new VariableInfo(
    data.getAttributeString("id"),
    "java.sql.Connection",
    true,
    VariableInfo.AT_END
    data-sources.xml:
    <?xml version="1.0"?>
    <!DOCTYPE data-sources PUBLIC "Orion data-
    sources" "http://xmlns.oracle.com/ias/dtds/data-sources.dtd">
    <data-sources>
    <data-source
    class="oracle.jdbc.pool.OracleConnectionCacheImpl"
    name="jdbc/pool/OracleCache"
    location="jdbc/pool/OracleCache"
    url="jdbc:oracle:thin:@oracle1:1521:pdev"
    >
    <property name="maxLimit" value="15" />
    <property name="cacheScheme" value="2" />
    <property name="user" value="console" />
    <property name="password" value="console" />
    <description>
    This DataSource is using an Oracle-native DataSource Class so as
    to allow Oracle Specific extensions.
    A getConnection() call on this DataSource will return
    oracle.jdbc.driver.OracleConnection.
    The connection returned is a logical connection.
    The caching scheme in place is Fixed Wait. Refer below to
    possible values.
    Dynamic 1
    Fixed Wait 2
    Fixed Return Null 3
    </description>
    </data-source>
    </data-sources>
    many thanks,
    Matt.

    Hi. Show me your pool definition.
    Joe
    Ramamurthy wrote:
    I am using the jsp custom tag library from BEA called sqltags.tld which came with Weblogic 5.1. Currently I am using Weblogic6.1 sp2 on Solaris.
    I have created a Connection Pool for Sybase database using the driver com.sybase.jdbc.SybDriver.
    When I created jsp page to connect to the connection pool using sqltags custom tag library, I am getting the error
    "javax.servlet.jsp.JspException: Failed to write body content
    at weblogic.taglib.sql.ConnectionTag.doAfterBody(ConnectionTag.java:43)
    at jsp_servlet.__hubwcdata._jspService(__sampletest.java:1014)"
    After this message, whenever I try to access the same jsp page I am getting the message
    "javax.servlet.jsp.JspException: Failed to load JDBC driver: weblogic.jdbc.pool.D
    river
    at weblogic.taglib.sql.ConnectionTag.doStartTag(ConnectionTag.java:34)
    at jsp_servlet.__hubwcdata._jspService(__sampletest.java:205)".
    Can you please help me the reason why this problem is happening and how to fix this ?
    This problem doexn't happen consistently. This occurs once in a while.
    I tried to increase Login delay Seconds parameter in the Connection Pool to 15 sec. It didn't help me much.
    Thanks for your help !!!
    Ram

  • Logging issue with rssutils.tld Tag Library

    I'm using the rssutils.tld tag library to display three RSS feeds on my application's JSP homepage. It works very very well and I'm quite happy with the results (I'm running on a Tomcat 5.5.7 server). I implemented the solution following the examples in the tutorial at http://java.sun.com/developer/technicalArticles/javaserverpages/rss_utilities
    The only problem I'm having though is in my Tomcat logs. Whenever a user loads my home page, a ton of tags are written to my tomcat stdout log:
    <rss>
    <channel>
    <title>
    </title>
    <link>
    </link>
    <description>
    </description>
    <language>
    </language>
    <copyright>
    </copyright>
    and so on for several hundred lines. This not only fills up my logs very very quickly, I'm worried about performance. Has anyone run into this problem and, if so, have a suggestion on how to have the tag library only log errors instead of every tag it processes? Thanks in advance.

    There are 2 System.out's in com/sun/cnpi/rss/handlers/DocumentHandler.class For test purposes I commented these out and it resolved the issue. I think the license allows modifications and redistribution as long as the copyright notice is included but I am no expert on legal stuff. If someone can assist me with this I would be happy to provide the modified package.

  • Apache's Session Tag Library

    Hi
              Has anyone had any success in using apache's session tag library
              (http://jakarta.apache.org/taglibs/doc/session-doc/intro.html) on WLS 5.1
              SP7. I have just set up the example as a web app and the server starts up
              with no problems. However, when I run it I get the following error:
              Tue Mar 06 13:29:29 GMT+00:00 2001:<I> <WebAppServletContext-test> resolving
              tag
              lib uri 'http://jakarta.apache.org/taglibs/session-1.0' to taglib-location
              /WEB-
              INF/session.tld:
              Tue Mar 06 13:29:30 GMT+00:00 2001:<E> <WebAppServletContext-test> Servlet
              faile
              d with Exception
              weblogic.servlet.jsp.JspException: (line 22): ss is not defined as bean
              at weblogic.servlet.jsp.JspLexer.jspException(JspLexer.java:665)
              at
              weblogic.servlet.jsp.JspLexer.mXML_GET_PROPERTY(JspLexer.java:2932)
              at weblogic.servlet.jsp.JspLexer.mXML_THING(JspLexer.java:1650)
              at weblogic.servlet.jsp.JspLexer.mTOKEN(JspLexer.java:1555)
              at weblogic.servlet.jsp.JspLexer.nextToken(JspLexer.java:1491)
              at weblogic.servlet.jsp.JspLexer.parse(JspLexer.java:880)
              at weblogic.servlet.jsp.JspParser.doit(JspParser.java:69)
              at weblogic.servlet.jsp.JspParser.parse(JspParser.java:116)
              at weblogic.servlet.jsp.Jsp2Java.outputs(Jsp2Java.java:97)
              at
              weblogic.utils.compiler.CodeGenerator.generate(CodeGenerator.java:242
              at weblogic.servlet.jsp.JspStub.compilePage(JspStub.java:302)
              at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:217)
              at
              weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.
              java:164)
              at
              weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
              pl.java:101)
              at
              weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
              pl.java:124)
              at
              weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletCon
              textImpl.java:907)
              at
              weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletCon
              textImpl.java:851)
              at
              weblogic.servlet.internal.ServletContextManager.invokeServlet(Servlet
              ContextManager.java:252)
              at
              weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.jav
              a:364)
              at
              weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:252)
              at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:129)
              I am not sure if this is an error in their taglib implementation or whether
              it is a weblogic issue. Just thought I would ask if anyone else has had
              similar problems ???
              Cheers
              Lee
              Lee Turner
              Systems Developer
              Watt Gilchrist Ltd
              Ring Road, West Park
              Leeds, LS16 6RA
              Tel: 0113 288 3200
              Fax: 0113 275 1690
              http://www.wattgilchrist.co.uk
              

    I think you should make sure you have put the Session bean object/remote interface into the session using setAttribute and have binded it with a key, if not you certainly cannot get it from session using getAttribute. right?

  • EP 6 SP2 and Domino JSP Tag library

    I have been able to establish DIIOP connection between EP6 and Domino based on the workaround posted in this form. Calling the lotus.domino.* classes work just fine.
    However I haven't been able to get EP6 to work consistently with the Domino JSP tag library.
    Has anyone been successful in using the Domino JSP tag library?
    Thanks for sharing any insights/workarounds.

    Hello Luc,
    yes. Pls. perform the following steps:
    (1) add a reference to the taglib in portalapp.xml component profile
                   <component name="default">
                        <component-config>
                             <property name="ClassName" value="com.test.LotusJSPTest">
                             </property>
                             <property name="SecurityZone" value="com.test/high_safety">
                             </property>
                        </component-config>
                        <component-profile>
                             <property name="lotusTagLibary" value="domtags.tld">
                             </property>
                             <property name="tagLib" value="/SERVICE/htmlb/taglib/htmlb.tld">
                             </property>
                        </component-profile>
                   </component>
    (2) add a reference in the JSP
    <%@ taglib uri="lotusTagLibary" prefix="domino" %>
    (3) then use the taglib as documented, e.g.:
                 <domino:session id="session1" host ="p70448.wdf.sap.corp:8000" user="*webuser">
                        <domino:db id="db1" dbname="portalchallenge.nsf" >
                             <domino:view id="view1" viewname="view103">
                                  <domino:viewloop id="loop">
         <tr>
         <td style="border: 1px solid #000000; padding: 2px; text-align:right"><%=loop.getPosition('.')%></td>
                                            <td style="border: 1px solid #000000; padding: 2px"><domino:item name="txt_KeywordCode"/></td>
                                            <td style="border: 1px solid #000000; padding: 2px"><domino:item name="txt_Description"/></td>
                                            <td style="border: 1px solid #000000; padding: 2px"><domino:item name="txt_List"/></td>
         </tr>
         </domino:viewloop>
                               </domino:view>
                          </domino:db>
                     </domino:session>
    The easiest way to start is to make domtags.jar, domtags.tld, domutils.tld and NCSO.jar part of your portal application.
    Regards
    Michael

  • How can i use tag library in the mvc?

    hello
    in some tag libraris such as jakarta tag library and jrun tag library,there is database
    access tag, it provide convenient function to access database from jsp page,but i wonder how can i use such a tag within MVC architecture.
    as we know,in MVC architecture,all requests from the jsp pages are submit to the controller servlet,then the controller manipulate ejb to access database,it don't allow the database access from the jsp page.
    who can tell me how can i combine the tag library with mvc architecture appropriately?
    thank you!

    You can't! If you decide to limit the JSP to be part of the View component, obviously you should not include tags that directly access the database. If the strict MVC architecture is less important to you, then the tags can save coding time. It's your choice.

  • How to use a tag library in multiple web applications?

    Morning all,
    Environment: Tomcat 5 on Apache2 using Mod_JK connector on Windows XP
    I have developed a custom tag library and tested it out and its working great.
    Now, How do I use in my other web applications? Do I need to copy the JAR file to webapps\app1\WEB-INF\lib, webapps\app2\WEB-INF\lib etc directories?
    The problem with this approach is, if I happen to change the tag library code, I will have to make sure that I remember to copy the new JAR file to the above mentioned directories. Ofcourse I can write a simple ant script that would do it for me, but I was wondering if there was an efficient and yet simple way of achieving the same.
    Thanks in advance,
    Joe

    Thanks Vidyut! You've answered my question.
    I placed the jar file in the $CATALINA_HOME/shared/lib directory. But where should I place the taglib TLD file? And how should I reference it in web.xml?
    Currently, my web.xml is as follows and it doesn't work.
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <!DOCTYPE web-app
    PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
    "http://java.sun.com/dtd/web-app_2_3.dtd">
    <web-app>
    <taglib>
    <taglib-uri>http://abc.com</taglib-uri>
    <taglib-location>c:\Tomcat\shared\lib\mytags-taglib.tld</taglib-location>
    </taglib>
    </web-app>
    Thanks again!
    Joe

  • Error in using tag library

              I am using Weblogic server 8.1 and have a struts app. I am using the random taglib
              from jarkarta and recieving this error while using weblogic. With the same setup
              in tomcat everything works fine. What do I need to do special for weblogic?
              ERROR FROM WEBLOGIC
              /control/register/newMember.jsp(1): Error in using tag library uri='http://jakarta.apache.org/taglibs/random-1.0'
              prefix='randME': For tag 'string', cannot load extra info class 'org.apache.taglibs.random.RandomStrgTEI'
              probably occurred due to an error in /control/register/newMember.jsp line 1:
              <%@ taglib uri="http://jakarta.apache.org/taglibs/random-1.0" prefix="randME"
              %>
              taglibs-random.jar is in WEB-INF/lib
              random.tld is in WEB-INF
              the taglib include in my jsp looks like this:
              <%@ taglib uri="http://jakarta.apache.org/taglibs/random-1.0" prefix="randME"
              %>
              the call in my jsp looks like this:
              <randME:number id="random1" range="10000000-99999999"/>
              my web.xml looks like this:
              <taglib>
              <taglib-uri>http://jakarta.apache.org/taglibs/random-1.0</taglib-uri>
              <taglib-location>/WEB-INF/random.tld</taglib-location>
              </taglib>
              any help would be appreciated
              

    This may not solve your problem, but WL8.1 SP1 seems to have a problem with
              closing tags.
              Where you are using:
              <randME:number id="random1" range="10000000-99999999"/>
              ...try this instead:
              <randME:number id="random1" range="10000000-99999999"></randME:number>
              This problem is fixed in SP2.
              -- Craig
              "ssandy" <[email protected]> wrote in message news:[email protected]...
              >
              > I am using Weblogic server 8.1 and have a struts app. I am using the
              random taglib
              > from jarkarta and recieving this error while using weblogic. With the
              same setup
              > in tomcat everything works fine. What do I need to do special for
              weblogic?
              >
              > ERROR FROM WEBLOGIC
              >
              > /control/register/newMember.jsp(1): Error in using tag library
              uri='http://jakarta.apache.org/taglibs/random-1.0'
              > prefix='randME': For tag 'string', cannot load extra info class
              'org.apache.taglibs.random.RandomStrgTEI'
              > probably occurred due to an error in /control/register/newMember.jsp line
              1:
              > <%@ taglib uri="http://jakarta.apache.org/taglibs/random-1.0"
              prefix="randME"
              > %>
              >
              > taglibs-random.jar is in WEB-INF/lib
              > random.tld is in WEB-INF
              >
              > the taglib include in my jsp looks like this:
              > <%@ taglib uri="http://jakarta.apache.org/taglibs/random-1.0"
              prefix="randME"
              > %>
              >
              > the call in my jsp looks like this:
              > <randME:number id="random1" range="10000000-99999999"/>
              >
              > my web.xml looks like this:
              > <taglib>
              > <taglib-uri>http://jakarta.apache.org/taglibs/random-1.0</taglib-uri>
              > <taglib-location>/WEB-INF/random.tld</taglib-location>
              > </taglib>
              >
              > any help would be appreciated
              

  • Error in using tag library uri='weblogic.tld'

    Hmmm...
    I'm trying to config my userprofile by creating it in the tools application (myserver/tools/index.jsp),
    but when I try to access the Unified Profile Types I get an Error 500 Internal
    Server Error in my webbrowser. The weblogic.log prints out an errormessage that
    sounds something like this:
    ####<30-Aug-01 16:30:14 CEST> <Error> <HTTP> <Ast-WT01> <server01> <ExecuteThread:
    '14' for queue: 'default'> <system> <> <101020> <[WebAppServletContext(3530676,tools)]
    Servlet failed with Exception>
    weblogic.servlet.jsp.JspException: (line 24): Error in using tag library uri='weblogic.tld'
    prefix='wl': For tag 'repeat', cannot load extra info class 'weblogicx.jsp.tags.RepeatTagInfo'
    I'm running weblogic 6.0 and wlcs 3.5. I'm sure of that the tag libraries are
    correct and they are located under tools/web-inf.

    Hmmm...
    I'm trying to config my userprofile by creating it in the tools application (myserver/tools/index.jsp),
    but when I try to access the Unified Profile Types I get an Error 500 Internal
    Server Error in my webbrowser. The weblogic.log prints out an errormessage that
    sounds something like this:
    ####<30-Aug-01 16:30:14 CEST> <Error> <HTTP> <Ast-WT01> <server01> <ExecuteThread:
    '14' for queue: 'default'> <system> <> <101020> <[WebAppServletContext(3530676,tools)]
    Servlet failed with Exception>
    weblogic.servlet.jsp.JspException: (line 24): Error in using tag library uri='weblogic.tld'
    prefix='wl': For tag 'repeat', cannot load extra info class 'weblogicx.jsp.tags.RepeatTagInfo'
    I'm running weblogic 6.0 and wlcs 3.5. I'm sure of that the tag libraries are
    correct and they are located under tools/web-inf.

  • SQL in JSP - do I use JAVA code in % ... % or SQL Tag Library ??

    I have a small web app that makes needs to make about 12 SQL queries in a JSP and am trying to figure out what is the best way to do this
    I had initially coded this using plain JAVA code in the JSP as follows :-
    <%
    Connection conn = null;
    Statement st = null;
    ResultSet rs = null;
    try {
    st = conn.createStatement();
    rs = st.executeQuery("select .........");
    %>
    But then I came across the SQL Tag Library in an article and wonder if this is more efficient code?
    If so does anyone have a pointer to a good intro to these tags as they look complicated (I only am doing queries on the SQL database, no inserts or updates)

    Sometimes you've gotta do what you've gotta do.
    My rule is "no scriptlets".
    If you MUST access a database from a JSP, the only right way to do it is to use JSTL <sql> tags.
    %

  • Problem in using jsp 1.1 custom tag library in websphere

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

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

Maybe you are looking for

  • Good Receipt Indicator in PO

    Hello; I wanted to know if someone experienced something about the good receipt indicator (GRI) in the PO, when the PO line item has an account assignment the good receipt indicator in the delivery tab becomes active but if the PO line item does not

  • Problems resizing JSplitPane

    I have a JSplitPane with a Canvas3D on one side. It won't allow the split pane to be resized to make the canvas smaller. It will allow the splitpane to be resized to make the canvas larger, though. Is there a way to fix this? Thanks, Brian.

  • Opening exported XML, new error!

    Please choose a translation document file! This is what comes up when I try to import the XML file. What is this and where is it located? Help please. I had a file that was created in a newer version of FCP. I wasn't able to open it. So with the help

  • CS6 Cannot Convert PM Files but CS5.5 Can

    Hello, I have just purchased CS6 (I need this version since I have to convert many PageMaker files). I was able to convert some PM files which do not have many graphics, but for those which has several graphics, CS6 cannot convert them. The "Processi

  • Performance issue between WL 5.1 and WL 6.0

    Hello all and thank you in advance, We're in the process of evaluating Weblogic 6.0 and have noticed a considerable difference in server response times from Weblogic 5.1(sp9). Testing with a light load, 5 to 20 threads, our average response time has