Using a tomahawk tag library.

The problem of displaying rows as columns in h:dataTable has been solved using the t:dataList tag.
I need a way to be able to rearrange components (dynamically) and display. I need some examples using the tomahawk tags. help will be appreciated.

take a look at this this

Similar Messages

  • Is It legal to use Jakarta I18N Tag Library in my projects on work?

    I'm a JSP pages developer on my work and Jakarta I18N Tag Library is very usefull for me.
    But I'm not sure about licensing. Can I use this library in commercial projects?

    I am not a lawyer, but ys, the Apache Lisence allows you to use the library for such a purpose.

  • How use the pager tag library for multi pagin

    hi,
    in fact i be new in the Jsp World so i want to use the multi pagin in my jsp can you help me.
    best regards

    So, what do you mean by "multi pagin"? Could you please explain
    it a little clearly?
    Regards
    greenidiot

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

  • Pagination using pager tag library (logical groupings)

    I'm currently trying to achieve pagination using the pager tag library provided by jsptags.com.
    Instead of the usual breaking up the records into a fix number to be displayed per page, I need to display these records by grouping per page. E.g., my records are grouped by countries, so each group varies in size.
    I would not be accessing the database directly from the JSP page, in fact, the JSP page will get a collection of the objects that I want to display per page.
    Has anyone done anything like this before? Would appreciate very much if you could share with me how you implement this.
    Thanks!

    Hi there,
    I am wondering if you found the solution for your question with paging in JSP. if so i will really appreciate if you can let me know, how you did it. I am using Pager tag lib from JSPTags as well and i used collection object to iterate through. But i have some problems. I am wondeinf if you can help me with this
    Thanks
    Vik

  • 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 to use JSP custom tag lib in PAR file?

    Hi All,
    I am trying to customize mastheaderpar file. For that I have downloaded relevant par file and making the changes accordingly.
    As part of the changes I would require to use JSP custom tag library in my par file.
    I have the TLD file and relevant classes in the jar file. I would like to know where and what kind of modifications have to be done to use the jsp custom tag library.
    I tried modifying some things in portalapp.xml but was not successful.
    Please help me on how to proceed with this? It would be great if you can provide the xml entry to use this tag library
    Thanks
    Santhosh

    Hi Johny,
    Thanks for the reply. Actually I am able to change colors etc. with out any problem.
    My requirement is to use XMLTaglib in mastheader par file. This tag lib is from apache tomcat. I have the relevant TLD and class files. I copied TLD file into taglib dir of portal-inf and class file in src api.
    And I have added the following line in portalapp.xml under component-profile section of default
    <property name="tlxtag" value="/SERVICE/Newmastheader/taglib/taglibs-xtags.tld">
    Is this the right way to use tag lib? Actually before adding this line I used to get the error saying "Error parsing taglib", but now the error does not occur and I am getting new error. This is an exception in one of the taglib classes.
    Could any one provide me some inputs on how to check this error?
    Thanks
    Santhosh

  • My app can't see the tag library

    Hi everybody,
    I am developing an application in JSP which accesses an Oracle database and display the results to the user.
    I am using the tag "exceltag.jar" taken from "http://www.servletsuite.com/servlets/exceltag.htm" to convert an html table to an excel sheet. This works fine on my computer but it fails after we installed the application to our web server, running Tomcat 4.1.12.
    The "exceltag.jar" file has been placed under 'WEB-INF\lib' and the classpath has been set to point to that location. However when I attempt to convert the html table to an excel sheet by clicking a button, I get the following error:
    java.lang.NoClassDefFoundError:
    javax/servlet/jsp/tagext/BodyTagSupport at java.lang.ClassLoader.defineClass0(Native Method) at
    java.lang.ClassLoader.defineClass(ClassLoader.java:509)
    It seems like the application can't see the "exceltag.jar" file.
    What do I need to do to overcome this problem?
    Thank you very much.

    The servlet.jar is in TOMCAT_HOME/common/lib. Since all the JARs in that directory are automatically added to the CLASSPATH and are visible to all applications running under Tomcat, you don't have to do anything for the class loader to find it.
    Your app's WEB-INF/lib directory JARs are also automatically added to to the CLASSPATH. That's the correct place to put that exceltag.jar, by the way, not the TOMCAT_HOME/common/lib.
    As a matter of fact, if you have a system CLASSPATH, be sure that Tomcat ignores it completely. You shouldn't even have one, IMO. (I don't.)
    When I open up the servlet.jar in my TOMCAT_H0ME/common/lib, I can see a class named BodyTagSupport with path javax.servlet.jsp.tagext. You should, too.
    In your exceltag.jar, you should find a TLD for the library. Open that with a text editor and make sure that the text under the <uri> tag matches that in your JSP. For example, I use the JSTL tag library. The c.tld has this <uri> tag:
      <uri>http://java.sun.com/jstl/core</uri>My JSPs that want to use the core tag library have this near the top of the page:
    <%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>Notice how the URIs match. That's what yours should do, too.
    If you don't find a TLD inside the exceltag.jar, that means they didn't package it properly. - MOD

  • Struts tag library instead of JSTL

    My developers here are not very well versed with JSTL .
    Is it advisable to use the Struts tag library instead of JSTL.

    For JSTL you need two jar files in your web-inf/lib directory.
    standard.jar
    jstl.jar
    You only mentioned standard.jar - make sure the other is there as well.
    There are also some libraries requried. I think they were included with JDK1.4, but am not entirely certain.
    Check out the requirements on this page:
    http://jakarta.apache.org/taglibs/doc/standard-1.0-doc/standard-1.0/GettingStarted.html
    Particularly those related to JAXP.
    I am think EOFException might be a trouble with parsing the c.tld file in the standard.jar
    Hope this helps,
    evnafets

  • Tag instances - same instance being used across multiple tags

    Hi
              I am using BEA WebLogic Server 6.1 SP2
              Problem:
              Tag instances - same instance being used across multiple tags
              The problem is that when I use the same jsp tag several times in a page,
              The tag is being instantiated only one time, as a result the class
              attributes
              retain their values when activating the tags.
              Example:
              A code that demonstrates the problem (not sure that it is compiled)
              public FooTag extends TagSupport {
              private boolean isValid = true;
              private String name;
              public setName(String x){
              name = x;
              public int doStartTag() throws JspException
              if (name.equals("x"){
              isValid = false;
              return SKIP_BODY;
              public int doEndTag() {
              if (isValid){
              return EVAL_PAGE;
              <table>
              <tr>
              <td><mpower:FOOTAG name="x"/>
              <!-- isValid attribute is set to false -->
              A FOOTAG implmented in FooTag </td>
              </tr>
              <tr>
              <td><mpower:FOOTAG name="y"/>
              <!-- isValid attribute still false (we expected it to be true) ! -->
              A FOOTAG implmented in FooTag </td>
              </tr>
              </table>
              P.S.
              I am using the same tags library with Tomcat and iPlanet Application severs,
              I did not get this problem there !!
              

              What should I do to reinitialize the tag? We have the same problem on custom tag.
              We have TabSet tag, which contains a set of Tab tag. In Weblogic 5.1, everything
              works ok, however when we run it in weblogic 6.1, Tab object seems like share the
              same instance, say if I have 2 Tabs in the TabSet, it ends up shows 2 same tabs with
              the apperance of the last tab added to the tabset on the web browser. We do implement
              release() method to call super.release() of TagSupport class.
              Any help is very appreciated.
              Thanks,
              Kimberly
              "Simon Spruzen" <[email protected]> wrote:
              >
              >This is allowed. You must implement public void release() on your tag, and
              >WLS will
              >call it before this method if WLS elects to reuse the tag instance. Your
              >release
              >method just reinitialises the tag as required.
              >
              >simon.
              >
              >"Eyal H" <[email protected]> wrote:
              >>Hi
              >>
              >>I am using BEA WebLogic Server 6.1 SP2
              >>
              >>Problem:
              >>
              >>Tag instances - same instance being used across multiple tags
              >>
              >>The problem is that when I use the same jsp tag several times in a page,
              >>
              >>The tag is being instantiated only one time, as a result the class
              >>
              >>attributes
              >>
              >>retain their values when activating the tags.
              >>
              >>Example:
              >>
              >>A code that demonstrates the problem (not sure that it is compiled)
              >>
              >>public FooTag extends TagSupport {
              >>
              >>private boolean isValid = true;
              >>
              >>private String name;
              >>
              >>public setName(String x){
              >>
              >>name = x;
              >>
              >>}
              >>
              >>public int doStartTag() throws JspException
              >>
              >>if (name.equals("x"){
              >>
              >>isValid = false;
              >>
              >>}
              >>
              >>return SKIP_BODY;
              >>
              >>}
              >>
              >>public int doEndTag() {
              >>
              >>if (isValid){
              >>
              >>......
              >>
              >>}
              >>
              >>return EVAL_PAGE;
              >>
              >>}
              >>
              >>}
              >>
              >>
              >>
              >>
              >>
              >><table>
              >>
              >><tr>
              >>
              >><td><mpower:FOOTAG name="x"/>
              >>
              >><!-- isValid attribute is set to false -->
              >>
              >>A FOOTAG implmented in FooTag </td>
              >>
              >></tr>
              >>
              >><tr>
              >>
              >><td><mpower:FOOTAG name="y"/>
              >>
              >><!-- isValid attribute still false (we expected it to be true) ! -->
              >>
              >>A FOOTAG implmented in FooTag </td>
              >>
              >></tr>
              >>
              >></table>
              >>
              >>
              >>
              >>P.S.
              >>
              >>I am using the same tags library with Tomcat and iPlanet Application severs,
              >>
              >>I did not get this problem there !!
              >>
              >>
              >>
              >
              

  • Navigation Tag Library in Consumer Portal of Federated Portal Network

    In a FPN scenario, is it possible to use the Navigation Tag Library in the consumer portal for the top level navigation? I have developed a custom top level navigation based on the navigation tag library, but when navigating to the role of the producer and back again I can no longer view the roles in the consumer portal.

    Hi,
    I know this was posted a long time ago, but I'm currently experiencing a similar issue in the TLN between a federated CE and EP portal. Did you manage to resolve your problem? In my case it looks like when you access the CE content from EP it cannot find its way back to EP when clicking on another link on the EP side. Looking at the logs it seems as if it's looking for the content on the CE system even though it's obviously not there.
    Cheers,
    Dion

  • Ajax Tag Library Maintining Session Pesistence

    Hi,
    I am new to Ajax Tag Library so I'm sorry about the novice question.
    Basically, I am interested in how to maintain state with url rewriting by using the Ajax Tag Library.
    I tried to wrap around my *<a href="<c:url value=${contextPath/test.jsp"/>">Test* tag with *<ajax:anchors>* tag elements, however, that didn't work.
    Any advice much appreciated! Thank you!

    Any advice much appreciated! Post your question in an appropriate forum. This has nothing to do with Java.

  • 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

Maybe you are looking for

  • What is the equivalent for 'On Change of' Event in ABAP OBJECTS?

    What is the equivalent for 'On Change of' Event in ABAP OBJECTS?  and how to use it in LOOP control?

  • Accessing data in a MS Access DATETIME field

    Can anybody please tell me how to retrieve and update data in a DATETIME field from a table in MS Access Database? (I have a JDBC connection and can query/update other fields, but not this one) thx

  • Screen resolution changed upon awake; old resolution no longer available

    My new MSI Z97 i7 mobo based Windows TP woke from sleep this morning, with the resolution changed to 1024x768. When I went to change it back to 1920x1200, that resolution is not available; only 1920x1024, and the screen looks odd. Unless advised othe

  • Song not syncing correctly to device

    I downloaded a song from itunes to my laptop and synced to my iPhone. Originally, it only downloaded the first minute or so of the song on both.I re-downloadedthesong to my laptop and it downloaded correctly and in full. However, when I sync myiPhone

  • Macbook Pro (2011) has rattling audio?

    The other night, my Macbook Pro had the back left corner of the lid dented in slightly because it fell off my bed. Besides that, I didn't notice anything else wrong with it. However, just last night, I noticed that my audio starts to rattle a bit whe