gamelan
Search EarthWeb
CodeGuru | Gamelan | Jars | Wireless | Discussions
Navigate developer.com
Architecture & Design  
Database  
Java
Languages & Tools
Microsoft & .NET
Open Source  
Project Management  
Security  
Techniques  
Voice  
Web Services  
Wireless/Mobile
XML  
Technology Jobs  

   Developer.com Webcasts:
  The Impact of Coding Standards and Code Reviews

  Project Management for the Developer

  Defining Your Own Software Development Methodology

  more Webcasts...




See the Winners!


Developer Jobs

Be a Commerce Partner
Server Racks
Career Education
Shop
Shop Online
KVM Switches
Logo Design
Calling Cards
Computer Hardware
Corporate Awards
Auto Insurance Quote
Online Universities
Remote Online Backup
Promotional Golf
Phone Cards

 


Get the SOA Development Survival Guide
Get started understanding the benefits and tools needed for service-oriented architecture development. Includes whitepapers, Webcasts, and articles. » IBM Rational Systems Development Solution eKit
As systems increase in complexity, communication between systems and teams becomes more and more difficult. Read the "Model Driven Systems Development" whitepaper to see how to improve product quality. Also included are more whitepapers, customer examples, tutorials, informative Webcasts, and best practices for designing, building, and managing systems. » Webcast: Succeed with Asset-Based Development: Introducing Rational Asset Manager
Learn how IBM Rational Asset Manager enables organizations to identify, manage and govern the design, development and consumption of software assets, including services, as part of an SOA initiative. Learn about the key challenges of asset-based development and how IBM Rational Asset Manager can help provide the solutions. » Download: IBM Rational Rose Technical Developer
IBM Rational Rose Technical Developer is a robust Model-Driven Development (MDD) solution, expressly created to meet the challenges of complex systems development. Based on UML, Rational Rose Technical Developer provides a highly-automated and reliable solution to the unique problems of concurrency and distribution. »
Developer News -
SaaS Tool Offers Custom Database Development    May 9, 2008
Microsoft’s Automated Agent: Can We Talk?    May 7, 2008
Borland Finally Sells CodeGear    May 7, 2008
Red Hat Heads For The JON 2.0    May 7, 2008
Free Tech Newsletter -

Project Management Guide: Developing a Web Site. Best Practices, Tips and Strategies. Download Exclusive eBook Now.

Easy Development with the JSP Standard Tag Library (JSTL)
By Olexiy & Alexander Prokhorenko

Go to page: 1  2  Next  

In this article, I will introduce you to interesting and flexible technology based on JSP, called JSTL. JSTL stands for Java Server Pages Standard Tag Library. Although JSP has already become very popular, it is not widely used in the development of easy, rapidly-done front-ends with SQL databases. Once you get to know JSTL, you will understand its advantages and will see numerous ways how it can be used in your everyday programmer's life. I assume that you are familiar with HTML, the basics of SQL requests, and JSP; however, I will describe everything along the way.

JSTL is a standardized collection of tag libraries for supporting iterations and conditionals, XML documents parsing, internationalization, and database access using SQL. Originally, the JSTL specification was being developed by the JSR #52 under the Java Community Process program (JCP). "The JCP holds the responsibility for the development of Java technology."—claims the official site. As an open, inclusive organization of active members and non-member public input, JCP primarily guides the development and approval of Java technical specifications. There are four basic tag libraries: core, XML, internationalization, and SQL support. As our goal is to quickly study opportunities for JSTL to work with SQL, in this article we shall consider only the basic functions of the libraries' core and SQL.

This technology is simple and yet powerful enough to be a worthy competitor PHP and ColdFusion. It has the capability to really expand Java's area of usage, not only for large, scalable Web applications, but also for simple "homepages." This would allow you to create sites without ceremony integrating them with XML documents and linking them with databases. As I have already noted, its plus is its simplicity of use. It is necessary to remember that it is being constructed on JSP. JSTL will allow us to use the power of all Java technologies.

To begin with, let's talk about how we will be able to run JSTL. JSTL builds on JSP technology; that's why running it requires any JSP-compatible container. For this purpose, we can use the free JSP container called Tomcat (http://jakarta.apache.org/tomcat/index.html). An explanation of installing this product goes beyond this article. Needless to say, this software is very popular and there is a lot of documentation on this topic. I will assume that you have already installed and configured the container, so you will need to install an implementation of JSTL. It can be downloaded from its Web site at http://jakarta.apache.org/taglibs/doc/standard-doc/intro.html.

If you have difficulty understanding what such .JAR files are, it is possible that you are familiar with Java only superficially. I would advise you from the beginning to learn the basics of Web programming in Java; nevertheless, I shall describe the meaning of .JAR. JAR is an archive in which there are classes, all written and compiled in p-code, stored to facilitate their use and mobility. Thus, in JAR's Connector/J, you will find classes for MySQL JDBC driver, and in JSTL's you will find its branch of classes.

You do not really need to install it; you can just include the .JAR files from the JSTL package into your /WEB-INF/lib/ directory. But, hold on for a while — I will show you how to do that a bit later.

Because we will work with SQL databases, you need to have any one of them installed. There is a wide range of different databases, but in this article MySQL is used because for a few reasons. First of all, we are showing you how JSTL can be helpful for creating easy and fast applications in the area where PHP and MySQL dominate. Secondly, MySQL can be freely downloaded and has a JDBC driver for Java. In summary, to use our examples below, you need to download MySQL server (http://www.mysql.com/products/mysql/index.html), the MySQL Connector/J JDBC driver (http://www.mysql.com/products/connector-j/index.html), and MySQL Control Center (http://www.mysql.com/products/connector-j/index.html). These will let you work with your databases and administer them more easily. Once downloaded, you will need to install the server and control center. Again, your .JAR JDBC driver will need to be included into your /WEB-INF/lib/ directory.

Go to page: 1  2  Next  


Tools:
Add www.developer.com to your favorites
Add www.developer.com to your browser search box
IE 7 | Firefox 2.0 | Firefox 1.5.x
Receive news via our XML/RSS feed


Data & Java Archives

Work With InterSystems. Not Separate Systems. Rapidly develop and deploy connectable applications.
Generate Complete .NET Web Apps in Minutes . Download Iron Speed Designer today.
Data Sheet: IBM Information Server Blade
Is it time to make your move to the multi-threaded and parallel processing world? Find out!
Guide to Developing a Web Site. Best Practices, Tips and Strategies. Download Exclusive eBook Now.



JupiterOnlineMedia

internet.comearthweb.comDevx.commediabistro.comGraphics.com

Search:

Jupitermedia Corporation has two divisions: Jupiterimages and JupiterOnlineMedia

Jupitermedia Corporate Info


Legal Notices, Licensing, Reprints, & Permissions, Privacy Policy.

Advertise | Newsletters | Tech Jobs | Shopping | E-mail Offers

Solutions
Whitepapers and eBooks
Microsoft Article: HyperV-The Killer Feature in WinServer ‘08
Avaya Article: How to Feed Data into the Avaya Event Processor
Microsoft Article: Install What You Need with Win Server ‘08
HP eBook: Putting the Green into IT
Whitepaper: HP Integrated Citrix XenServer for HP ProLiant Servers
Intel Go Parallel Portal: Interview with C++ Guru Herb Sutter, Part 1
Intel Go Parallel Portal: Interview with C++ Guru Herb Sutter, Part 2--The Future of Concurrency
Avaya Article: Setting Up a SIP A/S Development Environment
IBM Article: How Cool Is Your Data Center?
Microsoft Article: Managing Virtual Machines with Microsoft System Center
HP eBook: Storage Networking , Part 1
Microsoft Article: Solving Data Center Complexity with Microsoft System Center Configuration Manager 2007
MORE WHITEPAPERS, EBOOKS, AND ARTICLES
Webcasts
Intel Video: Are Multi-core Processors Here to Stay?
On-Demand Webcast: Five Virtualization Trends to Watch
HP Video: Page Cost Calculator
Intel Video: APIs for Parallel Programming
HP Webcast: Storage Is Changing Fast - Be Ready or Be Left Behind
Microsoft Silverlight Video: Creating Fading Controls with Expression Design and Expression Blend 2
MORE WEBCASTS, PODCASTS, AND VIDEOS
Downloads and eKits
Sun Download: Solaris 8 Migration Assistant
Sybase Download: SQL Anywhere Developer Edition
Red Gate Download: SQL Backup Pro and free DBA Best Practices eBook
Red Gate Download: SQL Compare Pro 6
Iron Speed Designer Application Generator
MORE DOWNLOADS, EKITS, AND FREE TRIALS
Tutorials and Demos
How-to-Article: Preparing for Hyper-Threading Technology and Dual Core Technology
eTouch PDF: Conquering the Tyranny of E-Mail and Word Processors
IBM Article: Collaborating in the High-Performance Workplace
HP Demo: StorageWorks EVA4400
Intel Featured Algorhythm: Intel Threading Building Blocks--The Pipeline Class
Microsoft How-to Article: Get Going with Silverlight and Windows Live
MORE TUTORIALS, DEMOS AND STEP-BY-STEP GUIDES