Logo

Navigation
  • Home
  • Services
    • ERP Solutions
    • Implementation Solutions
    • Support and Maintenance Solutions
    • Custom Solutions
    • Upgrade Solutions
    • Training and Mentoring
    • Web Solutions
    • Production Support
    • Architecture Designing
    • Independent Validation and Testing Services
    • Infrastructure Management
  • Expertise
    • Microsoft Development Expertise
    • Mobile Development
    • SQL Server Database and BI
    • SAP BI, SAP Hana, SAP BO
    • Oracle and BI
    • Oracle RAC
  • Technical Training
    • Learn Data Management
      • Business Intelligence
      • Data Mining
      • Data Modeling
      • Data Warehousing
      • Disaster Recovery
    • Learn Concepts
      • Application Development
      • Client Server
      • Cloud Computing Tutorials
      • Cluster Computing
      • CRM Tutorial
      • EDI Tutorials
      • ERP Tutorials
      • NLP
      • OOPS
      • Concepts
      • SOA Tutorial
      • Supply Chain
      • Technology Trends
      • UML
      • Virtualization
      • Web 2.0
    • Learn Java
      • JavaScript Tutorial
      • JSP Tutorials
      • J2EE
    • Learn Microsoft
      • MSAS
      • ASP.NET
      • ASP.NET 2.0
      • C Sharp
      • MS Project Training
      • Silverlight
      • SQL Server 2005
      • VB.NET 2005
    • Learn Networking
      • Networking
      • Wireless
    • Learn Oracle
      • Oracle 10g
      • PL/SQL
      • Oracle 11g Tutorials
      • Oracle 9i
      • Oracle Apps
    • Learn Programming
      • Ajax Tutorial
      • C Language
      • C++ Tutorials
      • CSS Tutorial
      • CSS3 Tutorial
      • JavaScript Tutorial
      • jQuery Tutorial
      • MainFrame
      • PHP Tutorial
      • VBScript Tutorial
      • XML Tutorial
    • Learn Software Testing
      • Software Testing Types
      • SQA
      • Testing
  • Career Training
    • Career Improvement
      • Career Articles
      • Certification Articles
      • Conflict Management
      • Core Skills
      • Decision Making
      • Entrepreneurship
      • Goal Setting
      • Life Skills
      • Performance Development
      • Personal Excellence
      • Personality Development
      • Problem Solving
      • Relationship Management
      • Self Confidence
      • Self Supervision
      • Social Networking
      • Strategic Planning
      • Time Management
    • Education Help
      • Career Tracks
      • Essay Writing
      • Internship Tips
      • Online Education
      • Scholarships
      • Student Loans
    • Managerial Skills
      • Business Communication
      • Business Networking
      • Facilitator Skills
      • Managing Change
      • Marketing Management
      • Meeting Management
      • Process Management
      • Project Management
      • Project Management Life Cycle
      • Project Management Process
      • Project Risk Management
      • Relationship Management
      • Task Management
      • Team Building
      • Virtual Team Management
    • Essential Life Skills
      • Anger Management
      • Anxiety Management
      • Attitude Development
      • Coaching and Mentoring
      • Emotional Intelligence
      • Stress Management
      • Positive Thinking
    • Communication Skills
      • Conversation Skills
      • Cross Culture Competence
      • English Vocabulary
      • Listening Skills
      • Public Speaking Skills
      • Questioning Skills
    • Soft Skills
      • Assertive Skills
      • Influence Skills
      • Leadership Skills
      • Memory Skills
      • People Skills
      • Presentation Skills
    • Finding a Job
      • Etiquette Tips
      • Group Discussions
      • HR Interviews
      • Interview Notes
      • Job Search Tips
      • Resume Tips
      • Sample Resumes
 

How To Create High Quality Tables With JavaScript

By Exforsys | on July 5, 2006 |
J2EE

How To Create High Quality Tables With JavaScript

If you are web program developer, it is likely that you are creating tables on a daily basis. In this article I will show you how to create high quality tables with Javascript within a short period of time. One feature that you will want to become familiar with is DisplayTag Library.

There are a number of things that you will want your tables to have, and some of these are various row colors, menu navigation, column sorting, Export to XML or CSV, and interactive rows.

You may be wandering why DisplayTag is so important. If you are used to using HTML or JSTL, this is a valid question. Well, while it is possible for you to create good tables with these languages, it can be a very tedious process. In fact, designing a basic table for these programs can be difficult. Using the JSF program will make things a lot easier. It features the < t:dataTable > tag, and this will allow you to work without the tags that you will need to use for HTML and JSTL. It also has a column sorting feature built in. If you don’t want to use JSF, you may want to look at the ADF component library which was released by Oracle.

The ADF component library has page navigation and column sorting, as well as row selection. I will next go over the installation process for DisplayTag. If you want to use DisplayTag with your web program, there are a number of steps you will want to follow. You will first want to copy the JARS from the DisplayTagEx/WebContent/WEB-INF/lib of the sample program. It should be copied from the directory and placed into the WEB-INF/lib directory for your program. There are a number of places online where you can download the DisplayTag libraries.

After you’ve done this, you will want to copy the DisplayTagEx/WebContent/css from the sample program and place it in the root of your web application. This will have the CSS files that you will need. The third thing you will want to do is copy the DisplayTagEx/WebContent/images from the sample program and add it to the root of your web program as well. This file will contain images that are important for things such as page navigation and sorting. Once you’ve done this, you will want to copy the DisplayTagEx/src/displaytag.properties from the sample program and add it to the top level directory of your web program.

I will now go over the properties file. You will first want to run and install the sample program on your server. For this example we will be working with Tomcat, but you can also use other programs as well. You will want to create a directory and name it DisplayTag. It should be created under the Tomcat /webapps directory. You will next want to copy the files which reside in the DisplayTagEx/WebContent/ of the sample program, and place it in the /webapps/DisplayTagEx of Tomcat. Once this have been done, you will want to start Tomcat. After Tomcat is running, you will want to go to http://localhost:8080/DisplayTagEx on your browser.

Once you have installed the correct libraries, you will want to use the DisplayTag library for three steps. You will first want to import the tag library on the top of the JSP. It should look like this when you’re done:

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

You will next want to create a link to a CSS file. This link should look like this:

< link rel="stylesheet" type="text/css" href="css/displaytagex.css" >

For the last step you will want to create a < display:table > tag. It should also feature a < display:column > tags. Once it is completed, it will look like this:

display:table name="${orderDetails}" class="dataTable" >
< display:column property="customerName" / >
< display:column property="productName" / >
< / display:table >

These are the fundamental steps you will need to go through in order to create a high quality table with JavaScript. While it is possible to create good tables with HTML or JSTL, they can be tedious. This method of creating tables is streamlined, and will make things a lot easier. If you are working with tables on daily basis, you will want to cut out as much drudge work as possible. Learning how to quickly create high quality tables will make your work a lot easier.

« « How To Fight Against Writer’s Block
Determine the Effectiveness of your Java Software » »

Author Description

Avatar

Editorial Team at Exforsys is a team of IT Consulting and Training team led by Chandra Vennapoosa.

Free Training

RSSSubscribe 0 Followers
  • Popular
  • Recent
  • How To Use Java DB as Your Client Mobile Database

    July 14, 2006 - 0 Comment
  • Future of Java Technology

    November 26, 2005 - 0 Comment
  • Antipatterns In Java Programs

    July 1, 2006 - 0 Comment
  • Java Overview

    July 17, 2006 - 0 Comment
  • Is Ejb really significant in enterprise applications?

    November 26, 2005 - 0 Comment
  • How a Profiler Can Improve Your Java Applications

    July 1, 2006 - 0 Comment
  • Java Virtual Machine

    July 13, 2006 - 0 Comment
  • Java for Stand-Alone Applications

    November 26, 2005 - 0 Comment
  • How Code Reviews and PMD Can Crush Bugs In Your Code

    July 3, 2006 - 0 Comment
  • What You Can Do To Deal With Java’s Memory Retention Problems

    July 22, 2006 - 0 Comment
  • Why It is Important To Focus On Java Exceptions For Your Programs

    July 27, 2006 - 0 Comment
  • Important Features of Java – Multithreading, AWT

    July 26, 2006 - 0 Comment
  • What You Should Know About Java XML

    July 25, 2006 - 0 Comment
  • What You Can Do To Deal With Java’s Memory Retention Problems

    July 22, 2006 - 0 Comment
  • Java Overview

    July 17, 2006 - 0 Comment
  • How To Use Java DB as Your Client Mobile Database

    July 14, 2006 - 0 Comment
  • How To Run J2ME Programs on Palm Devices

    July 14, 2006 - 0 Comment
  • Java Virtual Machine

    July 13, 2006 - 0 Comment
  • Quickly Develop Java Programs With Tapestry

    July 12, 2006 - 0 Comment
  • A Java TOC2 Class Which Can Contact Aim

    July 12, 2006 - 0 Comment

Exforsys e-Newsletter

ebook
 

Related Articles

  • Why It is Important To Focus On Java Exceptions For Your Programs
  • Important Features of Java – Multithreading, AWT
  • What You Should Know About Java XML
  • What You Can Do To Deal With Java’s Memory Retention Problems
  • Java Overview

Latest Articles

  • Project Management Techniques
  • Product Development Best Practices
  • Importance of Quality Data Management
  • How to Maximize Quality Assurance
  • Utilizing Effective Quality Assurance Strategies
  • Sitemap
  • Privacy Policy
  • DMCA
  • Trademark Information
  • Contact Us
© 2023. All Rights Reserved.IT Training and Consulting
This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish.AcceptReject Read More
Privacy & Cookies Policy

Privacy Overview

This website uses cookies to improve your experience while you navigate through the website. Out of these, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may affect your browsing experience.
Necessary
Always Enabled
Necessary cookies are absolutely essential for the website to function properly. This category only includes cookies that ensures basic functionalities and security features of the website. These cookies do not store any personal information.
Non-necessary
Any cookies that may not be particularly necessary for the website to function and is used specifically to collect user personal data via analytics, ads, other embedded contents are termed as non-necessary cookies. It is mandatory to procure user consent prior to running these cookies on your website.
SAVE & ACCEPT