Tag library 'div' hook

Well, 'div' is not corrupt, but the application programming related to customization of Tag libraries is corrupt.
What is happening:
When Dreamweaver CC is installed, and when it opens fresh html files, it makes a mess of line breaks and indents in the text layout of the code. Using the menu item Commands / Apply source formatting also makes a mess, This menu command mess is a slight improvement over the horrendous mess that Dreamweaver CC makes of code when it opens and when it periodically 'refreshes' the files that it trashes. However, the code is not usable, as with more advanced css and html technique, the code becomes unreadable for Chrome, Internet Explorer, Safari, and presumably all browsers.
DW's mess described:
All indents are as spaces, making manual clean-up repetitive, necessary and extremely tedious.
The head and body tags are indented far inside their content, and that content is also erratically indented.
The use of Tag library editor would seem the expected user path, in seeking a user resolution, and perhaps in defining a programmatic intervention.
All tags are trashed, put going to the heart of the html cascade, we start with the p tag: e.g., p tag in Tag libraries defaults as
Line breaks: before and after tag
Contents: formatted and indented
Case: default
We try numerous combinations of p tag settings in the noted dialog interface.
The p tag settings do not appear to effect the mess. Dreamweaver, ignores default and manual settings, sometimes shuffling the mess a little, but minor shuffling only occurring twice, and without any tag block line break changes.
Perhaps, for a given instance of Dreamweaver installation, within a given simple document's system interface, Dreamweaver settings may reveal something called a 'performance hook' by application programmers. Perhaps we can isolate a hook that is useful for the Adobe support; support that lacking professional attention has maintained Dreamweaver as a failed application for over a year (since October 2012) on my Windows desktop. We move next to the div tag.
Manual intervention 'exposes bad behavior of div tag' hook:
Our simple document layout is... simple. Deploying doctypes for both html5 and xhtml transitional and deploying internal and external style methods, with the same code trashing result, we correctly layout tags as HEAD, BODY, DIV and P. Beginning with the p tag, various tag library settings are applied to determine effect on Apply source formatting command. Various p tag settings have no effect, and p is returned to its DW default setting, as noted above. The following div tag settings disable Apply source formatting command's code trashing specifically of line indents.
Line breaks: before and after tag
Contents: formatted but not indented
Case: default
Unfortunately, with this setting, line breaks between only some tags are maintained during Dreamweaver's auto code trashing (e.g., between closing head and opening body tag): sometimes when Dreamweaver does it's auto (or manual) trashing, these specific line breaks, between block tags, are not preserved. However, with this Tag library setting for the div tag using the noted basic cascade, all tag indents are ignored. But only when code is manually kept against left margin, without any indentation. And, ONLY WITH DIV TAG HOLDING THESE PARTICULAR SETTINGS, FOR THIS PARTICULAR DOCUMENT!
FLAT CODE is preferable to the bigger mess that Dreamweaver routinely imposes as it auto trashes code. Also, allowing any left margin indentation worsens Dreamweaver's code trashing... so, given Dreamweaver's chaotic destructiveness, I don't know if it is correct to imply any significance to my manual Tag library settings management, but it is clear that Dreamweaver is unable to correct the mess it makes, using the manual Apply source formatting command. And this is the first 'performance hook' that has been defined for my desktop in over 400 days. But setting div tag in this way is the only way to stop Dreamweaver trashing code layout line indents (trashing that occurs both during Dreamweaver automatic actions and with user menu action, for the specific noted html layout - a layout that is far too basic to be useful for 99.9% of design work). But only for a given instance of Dreamweaver installation for a given OS installation, and not across OS installations, or with any other file than the file (or files, in relational assessment) targeted for our 'hook' presentation analysis.
Conclusion:
Dreamweaver trashes code layout every time the application applies code formatting (e.g., opening new documents from other sources, applying menu commands, etc.). That is, all user code layout will be trashed by Dreamweaver. However, a specific div tag setting in Tag library editor may maintain a single instance for manual correction of Dreamweaver code trashing, when basic page layout is used with div in the noted cascade, and with div settings manually corrected as noted. This is a hopelessly unacceptable condition that the Dreamweaver application imposes on design work for my Windows 8.1 operating system. Professional designers of global significance and stature using many variants of Mac and PC systems have warned me not to use Dreamweaver, recommending numerous alternatives. I am taking the position that Adobe retains a shred of marketplace survivability, and therefore will promptly fix minor problems when I bring them to Adobe's attention.
IMPORTANT:
Obviously, this is not acceptable application performance. Is support available to Adobe that will now, immediately repair the Dreamweaver application that I use as a paid subscription to eliminate systematic code trashing?

I figured it out. Under the Configuration/TagLibraries,
create a CrossTagAttr folder and stick a .vtm file in it. In the
.vtm file, use the <crosstag_attributes> tag and its
children. See Configuration/TagLibraries/CrossTagAttr/Spry/Spry.vtm
for an example.

Similar Messages

  • Navigation Tag library : lyt:container

    hi,
      From my basic research, I found that                                               <lyt:container id="navPanelContainer" /> uses the default iview tray for displaying its iviews in the container using Navigation Tag Library.
    It is mentioned that this one calls the default iview tray.. if so..could you please let me know where can i find the code for the default iview Tray..
    So that I can create a "containerwithtraydesign"..and use that default code and add a line at the bottom of iview tray.
    Please help me in this regard.
    Thank you

    Hi Daniel,
      Thanks for the reply.. I found a workaround...luckily the code was in light_Waandnavpanel.jsp.
    1. I downloaded com.sap.portal.layouts.framework.par
    2. Just took out the following code from light_WAandNavPanel.jsp and put that in WAandNavPanel.jsp
                                                       <table cols="1" cellspacing="0" cellpadding="0" border="0" style="width:100%" class="urTrcWhlHdr" id="DTNTray">
                                                       <tbody>
                                                            <tr>
                                                                 <td class="urTrcHdNotchTrn"><img width="1" src='<%=op%>'></td>
                                                                 <td class="urTrcSpcVertLftMidTrn"><img width="1" src='<%=op%>'></td>
                                                                 <td style="width:100%"><table cellspacing="0" cellpadding="0" border="0" class="urTrcHdTrn" id="Tray-hd"><tbody><tr>
                                                                 <td nowrap><div class="urTrcTitHdr"><lyt:IViewTitle/></div></td>
                                                                 <td style="width:100%"></td>
                                                                 <td nowrap width="100%" oncontextmenu="return false" class="urTrcHdIco">
                                                                      <lyt:IViewToggleOpen><img style="border: medium none" src='<%=top%>'></lyt:IViewToggleOpen>
                                                                      <lyt:IViewToggleClose><img style="border: medium none" src='<%=tcl%>'></lyt:IViewToggleClose>
                                                                 </td>
                                                                 </tbody>
                                                                 </table></td>
                                                                 <td class="urTrcSpcVertMidRghtTrn"><img width="1" src='<%=op%>'></td>
                                                                 <td class="urTrcHdRightTrn"><img width="1" src='<%=op%>'></td>
                                                            </tr>
                                                       </tbody>
                                                       <tbody>
                                                            <tr class="urTrcSpcRowHdContTrn">
                                                                 <td class="urTrcSpcHorLftTrn"><img width="1" src='<%=op%>'></td>
                                                                 <td class="urTrcSpcHorLftMidTrn"><img width="1" src='<%=op%>'></td>
                                                                 <td class="urTrcSpcHorMidTrn"><img width="1" src='<%=op%>'></td>
                                                                 <td class="urTrcSpcHorMidRghtTrn"><img width="1" src='<%=op%>'></td>
                                                                 <td class="urTrcSpcHorRghtTrn"><img width="1" src='<%=op%>'></td>
                                                            </tr>
                                                            <tr>
                                                                 <td class="urTrcBdyNotchTrn"><img width="1" src='<%=op%>'></td>
                                                                 <td class="urTrcSpcVertLftMidTrn"><img width="1" src='<%=op%>'></td>
                                                                 <td class="urTrcBodyHdr urTrcBodyBdrHdr"><div class="urTrcBodyHdr urTrcBodyBdrHdr urTrcBodyHdrPd"><lyt:IViewContent/></div></td>
                                                                 <td class="urTrcSpcVertMidRghtTrn"><img width="1" src='<%=op%>'></td>
                                                                 <td class="urTrcBdyRightTrn"><img width="1" src='<%=op%>'></td>
                                                            </tr>
                                                       </tbody>
                                                       <tbody>
                                                            <tr class="urTrcSpcRowContFtTrn">
                                                                 <td class="urTrcSpcHorLftTrn"><img width="1" src='<%=op%>'></td>
                                                                 <td class="urTrcSpcHorLftMidTrn"><img width="1" src='<%=op%>'></td>
                                                                 <td class="urTrcSpcHorMidTrn"><img width="1" src='<%=op%>'></td>
                                                                 <td class="urTrcSpcHorMidRghtTrn"><img width="1" src='<%=op%>'></td>
                                                                 <td class="urTrcSpcHorRghtTrn"><img width="1" src='<%=op%>'></td>                                                        
                                                            </tr>
                                                       </tbody>
                                                       </table>
    so the tray looks fine now without collapse icon(as i commented it in the above code)..
    but i have a small problem..I hope that you can help me in this regard. The problem is
    I am not able to see the "options" icon that is on the left of "collapse"  icon..could you please let me know how can i get that options menu... would be great if you could include in the above snippet of code..
    Thank you

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

  • No tag "output_text" defined in tag library imported

    Dear All,
    I have the following jsp file.
    <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
    <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
    <html>
    <head>
    <title>Welcome to PizzaRia!!!</title>
    <link rel="stylesheet" type="text/css"
    href="<%= request.getContextPath() + "/Styles.css" %>">
    </head>
    <body>
    <f:view>
    <h:form id="myForm">
    <table border="0" cellspacing="4" cellpadding="0"
    width="<h:output_text value="#{initParam.pageWidth}"/>">
    <tr>
    <td colspan="2">
    <%-- The header --%>
    <%@ include file="header.jsp"%>
    </td>
    </tr>
    <tr>
    <td valign="top">
    <%-- The menu --%>
    <%@ include file="menu.jsp"%>
    </td>
    <td valign="top">
    <!--------------- the beginning of the Welcome page ------------->
    <br>
    <div class="NormalLarge">Welcome to PizzaRia!!!</div>
    <br>
    <div class="NormalSmall">Try our tasty pizzas today!</div>
    <!--------------------- the end of the Welcome page ------------->
    </td>
    </tr>
    <tr>
    <td colspan="2">
    <%-- The footer --%>
    <%@ include file="footer.jsp"%>
    </td>
    </tr>
    </table>
    </h:form>
    </f:view>
    </body>
    </html>
    When it comes to deployment, tomcat gives the following error saying that the tag is not defined.
    Any suggestions. highly appreciated.
    org.apache.jasper.JasperException: /index.jsp(14,9) No tag "output_text" defined in tag library imported with prefix "h"
         org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:510)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:375)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    Jaliya

    thnx BalusC,
    I'm new to this stuff. That was the problem.
    Thanks again,
    Jaliya

  • 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

  • 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

  • How to add a new tag library into ALBPM 5.7?

    I want to use a tag library but I don't know ho to configure ALBPM to use it.
    Anyone knows how to do it?
    Thanks
    Regards

    Hello,
    I think u need to import all resources used by your TagLib as .TLD .JAR to inside process.

  • Purpose of TAG Library?

    What is the purpose of TAG library?
    I feel so hard while using Tag library in my JSP pages?

    Which taglibrary are you talking about? JSTL?
    If so, its purpose is just to control the flow of code logic and the data output in JSP. It is less or more a replacement of scriptlets, which are been discouraged since a decade. Scriptlets are considered a bad practice. Taglibs (and EL) forces you to write clean and well-MVC-formed JSP code. The JSTL core, format and functions taglibs are extremtly useful. The JSTL sql and xml taglibs are intented for quick prototyping only, in real you should be using Java classes for this to avoid tight coupling of database/business/model/view logic.

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

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

  • "No tag library could be found with this URI" error while compiling jsp

    I am using WebLogic Server 9.2 MP1, JDK 1.5.0_09, Struts 1.3.5
              I am pre-compiling jsp pages with wlappc ant task. However, I got following errors when a jsp page contains ant taglib:
              No tag library could be found with this URI. Possible causes could be that the URI is incorrect, or that there were errors during parsing of the .tld file.
              The jsp page looks like:
              <%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %>
              wlappc complains taglib could not be retrieved from this uri. Actually, since Struts 1.3.5, those ".tld" files are contained in strust-taglib-1.3.5.jar, folder META-INF/tld/. And I don't need to set anything in web.xml <tag-lib> tab anymore.
              All the jsp pages can be successfully compiled while being deployed to Server. So what am I missing? My build.xml file looks like:
                   <target name="compile-jsp">
                        <wlappc source="${src.dir}" output="${out.dir}"
                             keepgenerated="true" optimize="true" classpathref="wl_classpath"/>
                   </target>
              where "wl_classpath" contains all the struts related jar files, e.g. struts-core-1.3.5.jar, struts-taglib-1.3.5.jar, ...., and weblogic related jars, e.g. weblogic.jar.....
              I checked "beehive" samples coming with weblogic92, and found it pretty much did the same thing regarding build script and jsp files. So I am totally lost!
              Please help me out. Many thanks.
              Edited by jqian at 02/02/2007 10:24 AM

    Yes sorry, you're correct. The uri I mentioned is just 1.0.
    Do you have the "Oracle WebLogic Web App Extension" Facet for your web project? If not, try adding that and making sure that there is a weblogic.xml file created in the WEB-INF dir. The weblogic.xml file allows you to deploy usig a shared lib for JSTL. It should contain a library-ref element something like the following, with a version of 1.1.
    <wls:library-ref>
    <wls:library-name>jstl</wls:library-name>
    <wls:specification-version>1.1</wls:specification-version>
    <wls:exact-match>true</wls:exact-match>
    </wls:library-ref>

  • The tag handler gridcolumn does not have a setter for the attribute autoExpand specified in the Tag Library Descriptor.

    I recently moved from coldfusion 8 to coldfusion 9 but all the pages with cfgrid: is throwing the following error. Any suggestion would be of great help
    coldfusion.jsp.JRunTagLibraryInfo$NoSuchAttributeException: The tag handler gridcolumn does not have a setter for the attribute autoExpand specified in the Tag Library Descriptor.
    at coldfusion.jsp.JRunTagLibraryInfo.getPropertyType(JRunTagLibraryInfo.java:627)
    at coldfusion.jsp.JRunTagLibraryInfo.buildTagInfo(JRunTagLibraryInfo.java:585)
    at coldfusion.jsp.JRunTagLibraryInfo.getTag(JRunTagLibraryInfo.java:267)
    at coldfusion.compiler.NeoTranslationContext.findTagName(NeoTranslationContext.java:346)
    at coldfusion.compiler.NeoTranslationContext.isKnownTag(NeoTranslationContext.java:222)
    at coldfusion.compiler.CFMLParserBase.isKnownTagName(CFMLParserBase.java:589)
    at coldfusion.compiler.cfml40TokenManager.TokenLexicalActions(cfml40TokenManager.java:6704)
    at coldfusion.compiler.cfml40TokenManager.getNextToken(cfml40TokenManager.java:6586)
    at coldfusion.compiler.cfml40.getToken(cfml40.java:11879)
    at coldfusion.compiler.CFMLParserBase.isTrivialAngleBracket(CFMLParserBase.java:707)
    at coldfusion.compiler.cfml40.jj_3_1(cfml40.java:9392)
    at coldfusion.compiler.cfml40.jj_3_2(cfml40.java:9460)
    at coldfusion.compiler.cfml40.jj_3R_67(cfml40.java:9500)
    at coldfusion.compiler.cfml40.jj_3_86(cfml40.java:8147)
    at coldfusion.compiler.cfml40.jj_3R_92(cfml40.java:8584)
    at coldfusion.compiler.cfml40.jj_3_85(cfml40.java:8641)
    at coldfusion.compiler.cfml40.jj_2_85(cfml40.java:7619)
    at coldfusion.compiler.cfml40.cfml(cfml40.java:4215)
    at coldfusion.compiler.cfml40.cfif(cfml40.java:311)
    at coldfusion.compiler.cfml40.cfml(cfml40.java:4224)
    at coldfusion.compiler.cfml40.cfif(cfml40.java:311)
    at coldfusion.compiler.cfml40.cfml(cfml40.java:4224)
    at coldfusion.compiler.cfml40.cfelse(cfml40.java:442)
    at coldfusion.compiler.cfml40.cfelseif(cfml40.java:374)
    at coldfusion.compiler.cfml40.cfif(cfml40.java:314)
    at coldfusion.compiler.cfml40.cfml(cfml40.java:4224)
    at coldfusion.compiler.cfml40.start(cfml40.java:4664)
    at coldfusion.compiler.NeoTranslator.parsePage(NeoTranslator.java:667)
    at coldfusion.compiler.NeoTranslator.parsePage(NeoTranslator.java:648)
    at coldfusion.compiler.NeoTranslator.parseAndTransform(NeoTranslator.java:401)
    at coldfusion.compiler.NeoTranslator.translateJava(NeoTranslator.java:343)
    at coldfusion.compiler.NeoTranslator.translateJava(NeoTranslator.java:144)
    at coldfusion.runtime.TemplateClassLoader$TemplateCache$1.fetch(TemplateClassLoader.java:418 )
    at coldfusion.util.LruCache.get(LruCache.java:180)
    at coldfusion.runtime.TemplateClassLoader$TemplateCache.fetchSerial(TemplateClassLoader.java :362)
    at coldfusion.util.AbstractCache.fetch(AbstractCache.java:58)
    at coldfusion.util.SoftCache.get_statsOff(SoftCache.java:133)
    at coldfusion.util.SoftCache.get(SoftCache.java:81)
    at coldfusion.runtime.TemplateClassLoader.findClass(TemplateClassLoader.java:591)
    at coldfusion.filter.PathFilter.invoke(PathFilter.java:80)
    at coldfusion.filter.ExceptionFilter.invoke(ExceptionFilter.java:70)
    at coldfusion.filter.ClientScopePersistenceFilter.invoke(ClientScopePersistenceFilter.java:2 8)
    at coldfusion.filter.BrowserFilter.invoke(BrowserFilter.java:38)
    at coldfusion.filter.NoCacheFilter.invoke(NoCacheFilter.java:46)
    at coldfusion.filter.GlobalsFilter.invoke(GlobalsFilter.java:38)
    at coldfusion.filter.DatasourceFilter.invoke(DatasourceFilter.java:22)
    at coldfusion.filter.CachingFilter.invoke(CachingFilter.java:53)
    at coldfusion.CfmServlet.service(CfmServlet.java:201)
    at coldfusion.bootstrap.BootstrapServlet.service(BootstrapServlet.java:89)
    at jrun.servlet.FilterChain.doFilter(FilterChain.java:86)
    at coldfusion.monitor.event.MonitoringServletFilter.doFilter(MonitoringServletFilter.java:42 )
    at coldfusion.bootstrap.BootstrapFilter.doFilter(BootstrapFilter.java:46)
    at jrun.servlet.FilterChain.doFilter(FilterChain.java:94)
    at jrun.servlet.FilterChain.service(FilterChain.java:101)
    at jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:106)
    at jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42)
    at jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:286)
    at jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:543)
    at jrun.servlet.jrpp.JRunProxyService.invokeRunnable(JRunProxyService.java:203)
    at jrunx.scheduler.ThreadPool$DownstreamMetrics.invokeRunnable(ThreadPool.java:320)
    at jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java:428)
    at jrunx.scheduler.ThreadPool$UpstreamMetrics.invokeRunnable(ThreadPool.java:266)
    at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)

    Thanks Vishu,
    We are running Coldfusion 9 and attach is the sample code and error message.:
    The tag handler gridcolumn does not have a setter for the attribute autoExpand specified in the Tag Library Descriptor.
    The CFML compiler was processing:
      A cfgrid tag beginning on line 39, column 18.
    The error occurred in E:/Websites/DreData/sobrietytesting/main/Sobrietytesting/Admin/view_users.cfm: line 54
    52 :                     hrefkey="member_id"
    53 :                     bind="cfc:tabledisplay.browseAccessAcountRequests(,,,)"
    54 :                     >
    55 :                    

Maybe you are looking for

  • How do we save three 1D arrays in while loop as an excel file? I used build array, waveform. I could not make it work.

    I have three separate 1 dimensional arrays in a while loop. I need to combine these arrays and save as a excel file outside the loop. My second question is that is there any emergency STOP button in Labview so that when I press that button, it cuts a

  • Rca cable - no video on tv

    Hi everyone! I've just bought a apple rca video cable to connect my ipod touch (2nd gen) to TV. The problem is after all connections made, the sound works fine, but no video! The ipod is OS updated. Some solution? All the best. Thanks in advace! R. C

  • Interactive ALV list Problem

    Hi All I have developed ALV report which is working fine while i double click on one record i need to call another transaction code i.e "COHV" which is also working fine and the value is not population to that transaction code. I have written code li

  • Can't read some HTML email

    I receive daily files in HTML from PCs. I open them with no mistakes on Windows Explorer in the PC. Using my Mac the same files appear with mistakes. The tables are all mixed up like plain text on the bottom of the file, and the header is blank. Can

  • Exporting footage as an .FLV - FCP not giving me the option

    I have Flash Pro 8 and the video encoder (which came with it) installed on my iMac. Now I'm trying to export my footage from FCP as an .FLV On my last computer I just went: Export / Quicktime Compression / and there was an option for .FLV export. How