Question

display tag -source forge (taglib)

Asked by: EdwardPeter

Hi,

Please kindly assist what changes needs to be on the code below to incorporate the new tablib

I'm not sure how to join the new tag lib code

http://displaytag.sourceforge.net/tut_sources.html  (bottom part)

--------------------------------------------------------------new tag lib (integrate with the old jsp page)
<%
      Connection con = ...; // just open a connection

      Statement stmt = con.createStatement();
      ResultSet rs = stmt.executeQuery("SELECT * from table");
      RowSetDynaClass resultSet = new RowSetDynaClass(rs, false);
      stmt.close();
      con.close();
      request.setAttribute("results", resultSet);
%>



--------------------------------------------------------------old jsp page

<code>
<%@ page import="java.sql.*, com.my.beans.*" %>
<jsp:useBean id="beanconnection" class="com.my.beans.ConnectionBean" scope="request"/>
<html>
<body>
<%
String sql = "Select ID,Name from employees" ;
ResultSet rs = beanconnection.executeQuery(sql) ;
%>
<%
while ( rs.next() ){
%>
A line of db stuff <%= rs.getString("Name") %>
<%
}
%>
</body>
</html>
</code>



Thanks

This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.

Subscribe now for full access to Experts Exchange and get

Instant Access to this Solution

  • Plus...
  • 30 Day FREE access, no risk, no obligation
  • Collaborate with the world's top tech experts
  • Unlimited access to our exclusive solution database
  • Never be left without tech help again

Subscribe Now

Asked On
2005-10-14 at 08:59:11ID21595309
Topics

Java Programming Language

,

Java Standard Tag Library (JSTL) & Server Tags

Participating Experts
1
Points
500
Comments
40

Trusted by hundreds of thousands everyday for fast, accurate and reliable tech support.

  • "The time we save is the biggest benefit of Experts Exchange to Warner Bros. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange." Mike Kapnisakis, Warner Bros.
  • "Our team likes having a resource that is more secure than just using Google and most experts using this service really know their stuff. It's nice to look here first versus using Google." Dayna Sellner, Lockheed Martin
  • "Anytime that I've been stumped with a problem, 9 out of 10 times Experts Exchange has either the accepted solution or an open discussion of the potential solution to the problem." Kenny Red, eBay Inc.

See what Experts Exchange can do for you.

Got a question?

We've got the answer.

Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.

Screenshot of Experts Exchange Knowledgebase

Need individual assistance?

Our experts are ready to help.

If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.

Screenshot of Experts Exchange Knowledgebase

Want to learn from the best?

Read articles from industry experts.

Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.

Screenshot of an Article

Working on a long term project?

Store your work and research.

Save solutions to your questions, answers you’ve discovered through searching plus helpful articles in your personal knowledgebase for easy future access.

Screenshot of Experts Exchange Knowledgebase

Access the answers to your technology questions today.

Subscribe Now

30-day free trial. Register in 60 seconds.

What Makes Experts Exchange Unique?

Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Trusted by the world's most respected brands.

image of each brand's logo

Faithfully serving IT professionals since 1996.

Experts Exchange Logo

Try it out and discover for yourself.

Subscribe Now

30-day free trial. Register in 60 seconds.

Related Solutions

  1. ResultSet
    I have the following code: try { con = DriverManager.getConnection("Jdbc:Odbc:eStarsDB"); } catch(SQLException ex){} try { Statement st = con.createStatement(); ResultSet rs = st.executeQuery("select Name FROM Customer"); companyName = rs...
  2. can I use rs.getString("name") directly instead of strN…
    hi everybody, I met a problem when I want to access database using Java,the code like the following: ....... public void display(Connection con) { try{ String strSQL="select name, age from worker"; Statement st=con.createStat...
  3. compering  2 dates and get the resultset in sql
    the following code does not work to compare two days in access database and the date instantiated from date class please help me to solve this problem with this code or your own simple code. thanks. import java.text.*; import java.sql.*; import java.sql.SQLException.*; ...
  4. Moving ResultSet to a JTable
    Hi This is a snip of a Addressbook program I have written.. Which modifications do I need to make if I would like a record to be displayed in a JTable ? /Fred class FindRecord implements ActionListener { private DataPanel scnvar; private JTextArea msgout...
  5. ResultSet
    Why doesn't this work: stmt = con.prepareStatement( "SELECT e.eksid, f.fagnavn, MAX(e.eksid) antall " + "FROM eksamen e, fag f " + "WHERE f.fagid = e.fagid " + "GROUP BY e.eksid, f.fagnavn"); rs = stmt.execu...

Free Tech Articles

  1. WARNING: 5 Reasons why you should NEVER fix a computer for free.
    It is in our nature to love the puzzle. We are obsessed. The lot of us. We love puzzles. We love the challenge. We thrive on finding the answer. We hate disarray. It bothers us deep in our soul. W...
  2. SCCM OSD Basic troubleshooting
    SCCM 2007 OSD is a fantastic way to deploy operating systems, however, like most things SCCM issues can sometimes be difficult to resolve due to the sheer volume of logs to sift through and the dispe...
  3. Migrate Small Business Server 2003 to Exchange 2010 and Windows 2008 R2
    This guide is intended to provide step by step instructions on how to migrate from Small Business Server 2003 to Windows 2008 R2 with Exchange 2010. For this migration to work you will need the fo...
  4. Create a Win7 Gadget
    This article shows you how to create a simple "Gadget" -- a sort of mini-application supported by Windows 7 and Vista. Gadgets can be dropped anywhere on the desktop to provide instant information, ...
  5. Outlook continually prompting for username and password
    There have been a lot of questions recently regarding Outlook prompting for a username and password whilst using Exchange 2007. There are a few reasons why this would happen and I will try to cover t...
  6. Backup Exchange 2010 Information Store using Windows Backup
    There seems to be quite a lot of confusion around the ability to backup Exchange 2010 using the built in Windows Backup feature. This stems from the omission of this feature prior to Exchange 2007 s...

Cloud Class Webinars

  1. Avoiding Bugs in Microsoft Access
    Alison Balter takes and in-depth look at avoiding bugs in Access. In this webinar you will learn about using the immediate window to debug your applications, invoking the debugger, using breakpoints to troubleshoot, stepping through code, setting the next statement to execute, ...
  2. Top 10 Best New Features in Visio 2010
    Scott Helmers gives live demonstrations of the top 10 new features in Visio 2010. This webinar will teach you how to create compelling diagrams by adding shapes to the page with a single click, linking the shapes in a diagram to data in Excel (or SQL Server, or SharePoint), ...
  3. IT Consultant Business Secrets Revealed
    Michael Munger, Experts Exchange tech pro and IT consultant, pulls back the curtain on his very successful businesses and answers question on every IT consultant and business owner should know about. He shares secrets on what he did to solve the 5 most common problems in IT, ...
  4. Disaster Recovery and Business Continuity
    Quest CTO, Mike Billon, gives an overview of the steps involved in building a dunamic disaster recovery plan. Through case studies and an examination of software/hardware tooles for monitoring and testing, you'll gain a better understandin of where you are, where you want ...
  5. Organize Your Visio Diagrams with Containers and Lists
    Scott Helmers uses cross functional flowcharts, wireframe diagrams, data graphic legends and seating charts to teach you: how to ustilize all three new structured diagram components in Visio 2010, the best practices for organizeing shapes in previous version of Visio, how to organize ...
  6. How to Us Objects, Properties, Events and Methods in Microsoft Access
    Alison Dalter gives an in-depbth look at objects, properties, events and methods in Microsoft Access. In this webinar you will learn about using the object browser, referring to objects, working with properties and methods, working with object variables, understanding the ...

Join the Community

Give a Little. Get a Lot.

Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.

Join the Community

Answers

 

by: kawasPosted on 2005-10-14 at 09:07:32ID: 15086623

what are you trying to do exactly? query a database?

It looks to me that one you download the library and place it in your webapps/serviceName/WEB-INF/lib directory you can replace:

<%
String sql = "Select ID,Name from employees" ;
ResultSet rs = beanconnection.executeQuery(sql) ;
%>
<%
while ( rs.next() ){
%>
A line of db stuff <%= rs.getString("Name") %>
<%
}
%>

with the new code

 

by: kawasPosted on 2005-10-14 at 09:09:16ID: 15086639

 

by: EdwardPeterPosted on 2005-10-14 at 09:10:25ID: 15086645

kawas,

the old code is displaying

A line of db stuff ...
A line of db stuff ...
A line of db stuff ...

how can we display a grid using the new tablib?

I'm not sure which path to choose from. (on the site)

Thanks.

 

by: EdwardPeterPosted on 2005-10-14 at 09:12:34ID: 15086661

kawas,

Should we go with RowSetDynaClass ?

or there's an easier way on the link?

Thanks.

 

by: kawasPosted on 2005-10-14 at 09:14:53ID: 15086676

download
http://apache.sunsite.ualberta.ca/jakarta/commons/beanutils/binaries/commons-beanutils-1.7.0.zip

that code will automatically display the table

so

<code>
<%@ page import="java.sql.*, com.my.beans.*" %>
<jsp:useBean id="beanconnection" class="com.my.beans.ConnectionBean" scope="request"/>
<html>
<body>
<%
String sql = "Select ID,Name from employees" ;
ResultSet rs = beanconnection.executeQuery(sql) ;
%>
<%
while ( rs.next() ){
%>
A line of db stuff <%= rs.getString("Name") %>
<%
}
%>
</body>
</html>
</code>


becomes

<code>
<%@ page import="java.sql.*, com.my.beans.*" %>
<jsp:useBean id="beanconnection" class="com.my.beans.ConnectionBean" scope="request"/>
<html>
<body>
<%
      Connection con = ...; // just open a connection

      Statement stmt = con.createStatement();
      ResultSet rs = stmt.executeQuery("SELECT * from table");
      RowSetDynaClass resultSet = new RowSetDynaClass(rs, false);
      stmt.close();
      con.close();
      request.setAttribute("results", resultSet);
%>

      <display:table name="requestScope.results.rows" />
</body>
</html>
</code>

 

by: EdwardPeterPosted on 2005-10-14 at 09:34:43ID: 15086829

kawas,

This is great, one question, can you kindly create a sample

Connection con = ...; // just open a connection

I'm not sure what syntax is missing in side.

a u/p, ip, database, connection type?

Thanks.

 

by: kawasPosted on 2005-10-14 at 09:47:46ID: 15086937

Connection con= null;
  Class.forName("com.mysql.jdbc.Driver").newInstance();
  /* this specifies the MySQL host, the database to use, and the MySQL
     username and password */
  con=
    DriverManager.getConnection("jdbc:mysql://url:3306/database",
                                "user","pass");

 

by: kawasPosted on 2005-10-14 at 09:56:11ID: 15087014

i got the code to work.

you need to download the following libraries:

http://prdownloads.sourceforge.net/displaytag/displaytag-1.0.zip

http://apache.mirror.cygnal.ca/jakarta/commons/lang/binaries/commons-lang-2.1.zip

and the one i mentioned earlier.

you need the following at the top of your page:
<%@ taglib uri="http://displaytag.sf.net" prefix="display" %>

and you need to follow these install instructions

http://displaytag.sourceforge.net/install.html

 

by: EdwardPeterPosted on 2005-10-14 at 10:24:39ID: 15087256

kawas,

I'm using Tomcat 5.5 and mysql 4.1 as server

on my desktop, nitrox is displaying couple of errors..



<code>
<%@ page import="java.sql.*, com.my.beans.*" %>
<%@ taglib uri="http://displaytag.sf.net" prefix="display" %>
<jsp:useBean id="beanconnection" class="com.my.beans.ConnectionBean" scope="request"/>
<html>
<body>

<%
Connection con= null;
  Class.forName("com.mysql.jdbc.Driver").newInstance();
  con = DriverManager.getConnection("jdbc:mysql://localhost/test","root","pass");

      Statement stmt = con.createStatement();
      ResultSet rs = stmt.executeQuery("SELECT * from table");
      RowSetDynaClass resultSet = new RowSetDynaClass(rs, false); <--red underline error (cannot be resolve to a type)
      stmt.close();
      con.close();
      request.setAttribute("results", resultSet);
%>
      <display:table name="requestScope.results.rows" />         <-------yellow underline error(the tei class org.displaytag.tag.TableTagExtraInfo.is not in the applciation class path.)


</body>
</html>
</code>


 

by: kawasPosted on 2005-10-14 at 10:31:34ID: 15087305

have you installed all of the libraries?

in the WEB_INF/lib directory, i added the following libs:
commons-beanutils.jar
commons-beanutils-bean-collections.jar
commons-beanutils-core.jar
commons-lang-2.1.jar
displaytag-1.0.jar

in the WEB-INF/ directory I added (came from display tag):
displaytag-11.tld
displaytag-12.tld
displaytag-el-12.tld

added the following import

<%@ taglib uri="http://displaytag.sf.net" prefix="display" %>

restart your server

and try again. My editor didnt like that statement either.

Make sure that you start up mysql and that you also have the sql connector in you WEB-INF/lib directory


 

by: kawasPosted on 2005-10-14 at 10:33:45ID: 15087315

one last thing, i removed the <code> tag  as well as the </code> tag

 

by: kawasPosted on 2005-10-14 at 10:35:47ID: 15087332

another last thing,

make sure that database is a valid database name and that table is a table in the database and you might want to add the port 3306 to localhost in the url (localhost:3306) ("jdbc:mysql://localhost/test","root","pass")

 

by: EdwardPeterPosted on 2005-10-14 at 10:50:48ID: 15087461

kawas,

Do you have a .java file created? can you please post the code inside?



Thanks.

 

by: kawasPosted on 2005-10-14 at 10:53:52ID: 15087489

why would there be a java file? it should be .jsp

<html>
<head><title>Query Results</title></head>
<body>
<!-- import needed for the SQL-database access things -->
<%@ page import="java.sql.*" %>
<%@ page import="org.apache.commons.beanutils.*" %>
<%@ taglib uri="http://displaytag.sf.net" prefix="display" %>
 
 <%
      Connectionconnection = DriverManager.getConnection("jdbc:mysql://localhost:3306/myDB","root","root");

      Statement stmt = connection.createStatement();
      ResultSet rs = stmt.executeQuery("SELECT * from object");
      RowSetDynaClass resultSe2 = new RowSetDynaClass(rs, false);
      stmt.close();
      connection.close();
      request.setAttribute("results", resultSet);
%>

      <display:table name="requestScope.results.rows" />
</body>
</html>

 

by: kawasPosted on 2005-10-14 at 10:55:28ID: 15087512



<html>
<head><title>Query Results</title></head>
<body>
<!-- import needed for the SQL-database access things -->
<%@ page import="java.sql.*" %>
<%@ page import="org.apache.commons.beanutils.*" %>
<%@ taglib uri="http://displaytag.sf.net" prefix="display" %>
 
 <%

   Connection connection = null;
   Class.forName("com.mysql.jdbc.Driver").newInstance();
   connection = DriverManager.getConnection("jdbc:mysql://localhost:3306/myDB","root","root");

      Statement stmt = connection.createStatement();
      ResultSet rs = stmt.executeQuery("SELECT * from object");
      RowSetDynaClass resultSe2 = new RowSetDynaClass(rs, false);
      stmt.close();
      connection.close();
      request.setAttribute("results", resultSet);
%>

      <display:table name="requestScope.results.rows" />
</body>
</html>

 

by: kawasPosted on 2005-10-14 at 10:58:10ID: 15087539

i really am mucking it up. sorry, i was trying to remove other code from the file and kept pasting code from the wrong section

<%@ page import="java.sql.*" %>
<%@ page import="org.apache.commons.beanutils.*" %>
<%@ taglib uri="http://displaytag.sf.net" prefix="display" %>
<html>
<head><title>Query Results</title></head>
<body>
 
 <%

   Connection connection = null;
   Class.forName("com.mysql.jdbc.Driver").newInstance();
   connection = DriverManager.getConnection("jdbc:mysql://localhost:3306/myDB","root","root");

      Statement stmt = connection.createStatement();
      ResultSet rs = stmt.executeQuery("SELECT * from object");
      RowSetDynaClass resultSe2 = new RowSetDynaClass(rs, false);
      stmt.close();
      connection.close();
      request.setAttribute("results", resultSet);
%>

      <display:table name="requestScope.results.rows" />
</body>
</html>

 

by: kawasPosted on 2005-10-14 at 10:59:45ID: 15087551

oh boy, one last time

<%@ page import="java.sql.*" %>
<%@ page import="org.apache.commons.beanutils.*" %>
<%@ taglib uri="http://displaytag.sf.net" prefix="display" %>
<html>
<head><title>Query Results</title></head>
<body>
 
 <%

   Connection connection = null;
   Class.forName("com.mysql.jdbc.Driver").newInstance();
   connection = DriverManager.getConnection("jdbc:mysql://localhost:3306/myDB","root","root");

      Statement stmt = connection.createStatement();
      ResultSet rs = stmt.executeQuery("SELECT * from object");
      RowSetDynaClass resultSet = new RowSetDynaClass(rs, false);
      stmt.close();
      connection.close();
      request.setAttribute("results", resultSet);
%>

      <display:table name="requestScope.results.rows" />
</body>
</html>

 

by: kawasPosted on 2005-10-14 at 11:00:39ID: 15087558

that one works. no spelling mistakes or mis spelled variables ;-)

 

by: EdwardPeterPosted on 2005-10-14 at 11:13:54ID: 15087674

kawas,

few error meesage:

Error message:The import org.apache.commons cannot be resolved

>>
<%@ page import="org.apache.commons.beanutils.*" %>
<<

 

by: kawasPosted on 2005-10-14 at 11:17:52ID: 15087709

did you download the libraries i named above?

 

by: EdwardPeterPosted on 2005-10-14 at 11:28:51ID: 15087816

kawas,

yup, I followed your advice,
Error message:The import org.apache.commons cannot be resolved

still persist <%@ page import="org.apache.commons.beanutils.*" %>

Thanks.


in the WEB_INF/lib directory,
commons-beanutils.jar
commons-beanutils-bean-collections.jar
commons-beanutils-core.jar
commons-lang-2.1.jar   <-------------------------i have 2.0.jar (this is the only version i saw)
displaytag-1.0.jar

in the WEB-INF/ directory
displaytag-11.tld
displaytag-12.tld
displaytag-el-12.tld

in the WEB-INF/lib
mysql connector 3.1.11-bin.jar

 

by: EdwardPeterPosted on 2005-10-14 at 11:50:05ID: 15087994

kawas,

when I run the project, error message:

exception
javax.servlet.ServletException: org/apache/commons/collections/IteratorUtils
org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:848)
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:781)
      org.apache.jsp.index_jsp._jspService(org.apache.jsp.index_jsp:88)
      org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
      javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
      org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:322)
      org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:291)
      org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
      javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
root cause
java.lang.NoClassDefFoundError: org/apache/commons/collections/IteratorUtils
      org.displaytag.tags.TableTag.initParameters(TableTag.java:841)
      org.displaytag.tags.TableTag.doStartTag(TableTag.java:623)
      org.apache.jsp.index_jsp._jspx_meth_display_table_0(org.apache.jsp.index_jsp:104)
      org.apache.jsp.index_jsp._jspService(org.apache.jsp.index_jsp:78)
      org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
      javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
      org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:322)
      org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:291)
      org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
      javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

 

by: kawasPosted on 2005-10-14 at 11:51:31ID: 15088009

http://apache.mirror.cygnal.ca/jakarta/commons/lang/binaries/commons-lang-2.1.zip is for 2.1

apparently you may need the commons-collections as well
http://apache.mirror.rafal.ca/jakarta/commons/collections/collections-current.zip

other than that, it looks good. if the error persists, look into the /tomcat/logs/localhost***.txt log file to see what is really wrong

 

by: kawasPosted on 2005-10-14 at 11:52:34ID: 15088020

ah, definitely need the commons-collection library. then you will be on your way!

 

by: EdwardPeterPosted on 2005-10-14 at 11:54:22ID: 15088036

kawas,

Finish downloading, would you happen to know where we need to place the collections-current files?

is it /WEB-INF/   ?

Thanks.

 

by: kawasPosted on 2005-10-14 at 11:56:29ID: 15088057

in the lib directoy add the commons-collections3.1.jar

Ed

 

by: EdwardPeterPosted on 2005-10-14 at 12:13:36ID: 15088217

kawas,

sad to say still same error as posted above.

please kindly see link for files in lib http://geocities.com/eeforupload/lib.bmp

maybe you have added something in web.xml ?

web server is on tomcat 5.5 and mysql 4.1

Thanks.

 

by: kawasPosted on 2005-10-14 at 12:18:25ID: 15088264

i didnt add anything to my web.xml file. i also have the same version of tomcat as you.

you should remove all non jar files from your /lib/ directory.

can you post your code again so i can try it

 

by: EdwardPeterPosted on 2005-10-14 at 12:18:47ID: 15088268

kawas,

Please kindly see below for the last 100 line in catalino.out file

http://pastebin.com/393740

 

by: EdwardPeterPosted on 2005-10-14 at 12:21:52ID: 15088292

<%@ page import="java.sql.*" %>
<%@ page import="org.apache.commons.beanutils.*" %>
<%@ taglib uri="http://displaytag.sf.net" prefix="display" %>
<html>
<head><title>Query Results</title></head>
<body>
 
 <%

   Connection connection = null;
   Class.forName("org.gjt.mm.mysql.Driver").newInstance();
   connection = DriverManager.getConnection("jdbc:mysql://localhost:3306/test","root","pass");

      Statement stmt = connection.createStatement();
      ResultSet rs = stmt.executeQuery("SELECT * from employees");
      RowSetDynaClass resultSet = new RowSetDynaClass(rs, false);
      stmt.close();
      connection.close();
      request.setAttribute("results", resultSet);
%>

      <display:table name="requestScope.results.rows" />
</body>
</html>

 

by: kawasPosted on 2005-10-14 at 12:32:19ID: 15088375

change "org.gjt.mm.mysql.Driver" to "com.mysql.jdbc.Driver" and try again.

if that doesnt work, can you show me your trace again?

 

by: kawasPosted on 2005-10-14 at 12:37:20ID: 15088407

your code works fine. can i see your web.xml?

 

by: EdwardPeterPosted on 2005-10-14 at 12:42:26ID: 15088443

<?xml version="1.0" encoding="ISO-8859-1"?>

<web-app xmlns="http://java.sun.com/xml/ns/j2ee"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
      version="2.4">
      
      <display-name>Web Application</display-name>

      <context-param>
            <param-name>javax.servlet.jsp.jstl.fmt.localizationContext</param-name>
            <param-value>resources.application</param-value>
      </context-param>
      <welcome-file-list>
            <welcome-file>index.jsp</welcome-file>
      </welcome-file-list>

      <jsp-config>
            <taglib>
                  <taglib-uri>http://java.sun.com/jsp/jstl/core</taglib-uri>
                  <taglib-location>/WEB-INF/tld/c.tld</taglib-location>
            </taglib>
            <taglib>
                  <taglib-uri>http://java.sun.com/jsp/jstl/fmt</taglib-uri>
                  <taglib-location>/WEB-INF/tld/fmt.tld</taglib-location>
            </taglib>
            <taglib>
                  <taglib-uri>http://java.sun.com/jsp/jstl/sql</taglib-uri>
                  <taglib-location>/WEB-INF/tld/sql.tld</taglib-location>
            </taglib>
            <taglib>
                  <taglib-uri>http://java.sun.com/jsp/jstl/xml</taglib-uri>
                  <taglib-location>/WEB-INF/tld/x.tld</taglib-location>
            </taglib>
            <taglib>
                  <taglib-uri>http://java.sun.com/jsp/jstl/functions</taglib-uri>
                  <taglib-location>/WEB-INF/tld/fn.tld</taglib-location>
            </taglib>
      </jsp-config>
      </web-app>

 

by: EdwardPeterPosted on 2005-10-14 at 12:47:10ID: 15088476

kawas,

I can feel were getting closer, That means, i'm missing some files ?

here are the problems listed in Nitrox: (paste then in notepad)


Severity      Description      Resource      In Folder      Location      Creation Time      Id
2      RowSetDynaClass cannot be resolved to a type      index.jsp      datagrid/web            October 14, 2005 3:40:07 PM      74
2      The import org.apache.commons cannot be resolved      index.jsp      datagrid/web            October 14, 2005 2:33:50 PM      61
1      The tei class org.displaytag.tags.TableTagExtraInfo is not in the application class path.      index.jsp      datagrid/web            October 14, 2005 2:33:50 PM      60



Thanks.

 

by: kawasPosted on 2005-10-14 at 12:52:11ID: 15088524

add

<taglib>
    <taglib-uri>http://displaytag.sf.net</taglib-uri>
    <taglib-location>/WEB-INF/displaytag-12.tld</taglib-location>
</taglib>

to your jsp-config section of the web.xml

 

by: kawasPosted on 2005-10-14 at 12:53:13ID: 15088531

also, it seems that yuo  are using eclipse. did you add the libs that you downloaded to your projects buildpath?

 

by: EdwardPeterPosted on 2005-10-14 at 12:53:50ID: 15088538

kawas,

Amazing!!!

you're simply the best, one question though, how come i dont see any colors on the grid?

alternating colors...

Thanks.

 

by: kawasPosted on 2005-10-14 at 12:59:47ID: 15088580

i think that you will need to associate a css style sheet with the table.
http://displaytag.sourceforge.net/tut_style.html

in the displaytag.zip that contained the jar file that you added to your WEB-INF/lib/ directory, there were some examples. Look at how they use css or create tables.

 

by: EdwardPeterPosted on 2005-10-14 at 13:00:58ID: 15088587

kawas,

Thanks so much for your time and patience.

 

by: kawasPosted on 2005-10-14 at 13:02:01ID: 15088593

no problem.

good luck

20120131-EE-VQP-002

3 Ways to Join

30-Day Free Trial

The Experts

98% positive feedback on 31,087 answers since March 2000. angeliii is a Microsoft Most Valuable Professional for his work with MS SQL Server & Develoment.

He has also proven his knowledge of Visual Basic Programming, PHP Scripting and Oracle Databases.

The Experts

97% positive feedback on 10,752 answers since July 2000. lrmoore has more than 18 years experience in the networking industry.

The six-time Mircosoft MVPs specialties include firewalls, virtual private networking, and network management.

Testimonials

"...and excellent source for support... Kind of like having your very own IT dept." Electriciansnet

Testimonials

"I was apprehensive at signing up at first. However... it has already made my life as an IT administrator much easier." JaCrews

Testimonials

"WOW! You guys have great, active, and knowledgeable people on here." moore50

Business Clients

Business Clients

In the Press

"If you’ve got a question... Experts Exchange can supply an answer.”

In the Press

"...an invaluable aid for both IT professionals and those who require tech support."

In the Press

"where IT professionals provide quick answers on just about any topic"

Business Account Plans

Loading Advertisement...