Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
Download
Standard view
Full view
of .
Look up keyword
Like this
4Activity
0 of .
Results for:
No results containing your search query
P. 1
Struts Whitepaper

Struts Whitepaper

Ratings: (0)|Views: 366 |Likes:
Published by api-3819398

More info:

Published by: api-3819398 on Oct 17, 2008
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as DOC, PDF, TXT or read online from Scribd
See more
See less

03/18/2014

pdf

text

original

Using Struts
Author: Larry Maturo, Athens Group

Athens Group
5608 Parkcrest Drive, Ste. 200
Austin, TX 78731
512.345.0600
FAX: 512.345.4088

http://www.athensgroup.com
info@athensgroup.com
Athens Group is an Austin-based, employee-owned consulting firm
helping clients achieve business results through the practical
application of technology strategy and software solutions. Founded in
June 1998, the company has 46 employees and a diverse client list
Copyright 2002, Athens Group, Inc.
that includes corporations such as Agilent, DuPont Photomasks and
Dell, as well as start-up and mid-growth companies.
Table Of Contents

General................................................................................................................................. 4 The Important Parts of Struts............................................................................................... 4 Action Class......................................................................................................................... 4 ActionForm Class................................................................................................................4 HTML Forms....................................................................................................................... 5 Handling Input..................................................................................................................... 5

Text Input......................................................................................................................... 5

Drop-Down Combo Box Input........................................................................................6 With An ArrayList of Strings....................................................................................... 6 With An ArrayList of Beans....................................................................................... . . 7

With Hard-Coded Strings........................................................................................... . . 7
Dependent Drop-Down Combo Box Lists.......................................................................8
Drop-Down Combo Box Lists When the List Is Embedded........................................... 8
Radio Button Input........................................................................................................... 9
Check Box Input.............................................................................................................. 9
Handling Output................................................................................................................... 9
Text Output...................................................................................................................... 9
Creating a Table in Struts................................................................................................. 9
Using the Indexed Attribute in the Scope of the Iterate Tag.............................................. 10
Using Submit Buttons in a Table............................................................................... 10
Creating a Table of Radio Buttons............................................................................. 12
A Table of Checkboxes (with the checkboxes in a bean).......................................... 14
Error Messages........................................................................................................... 16
Simple Example.............................................................................................................16
Use of Constants in Error Messages.............................................................................. 17
Example with Constants............................................................................................ 17
Simple Example that Actually Uses the Constant Within the JSP File...................... 18
Comments.................................................................................................................. 18
Specifying a Header and Footer for the Error Messages............................................... 18
What\u2019s In struts-config.xml?.............................................................................................. 21
Global Forwards........................................................................................................... 21
Bean Declarations.......................................................................................................... 21
Action Mappings............................................................................................................ 21

Copyright 2002, Athens Group, Inc.
Reflection and Struts.......................................................................................................... 23
Acknowledgements............................................................................................................ 23
Copyright 2002, Athens Group, Inc.

Activity (4)

You've already reviewed this. Edit your review.
1 thousand reads
1 hundred reads
Teodorescu Dana liked this
sagar_sea liked this

You're Reading a Free Preview

Download
scribd
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->