<%-- Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to You under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. --%> <%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %> Struts Examples

Struts Examples

Each of these links lead to a separate "module" within this application.

These modules follow the "learn by example" school. Be sure to "look under the hood" to see how it's done.

Taglib Test Pages

These pages are designed to test the operation of the various taglibs that come bundled with Struts. If you examine the JSP templates, you'll see that these pages use a lot of scriptlets. We use scriptlets here in order to test the tags. Most production pages will not need to use scriplets. In fact many Struts developers never use scriplets in a production page.

Upload example

Struts uses the Commons Upload package to provide support for uploading files. This example shows you how to upload a page for processing or how to just display it.

Validator examples

The Struts Validator uses the same resource bundles as the rest of your Struts application, making localization easy to do. These examples show you how to use the validator with and without JavaScript, as well as how to localize your validations.

But, wait, there's more ...

In addion to this application, there are three other applications available for you to install:

Struts Blank is an application template. Explode this WAR under your own application's name, and you can start coding! Struts Mailreader is a starter business application, much like the one most of you need to develop. Struts Cookbook is a collection of examples which demonstrate some of the more frequently used Struts Tags.