Exercise 2: Improving your first Struts Application : Struts « J2EE « Java

Java
1. 2D Graphics GUI
2. 3D
3. Advanced Graphics
4. Ant
5. Apache Common
6. Chart
7. Collections Data Structure
8. Database SQL JDBC
9. Design Pattern
10. Development Class
11. Email
12. Event
13. File Input Output
14. Game
15. Hibernate
16. J2EE
17. J2ME
18. JDK 6
19. JSP
20. JSTL
21. Language Basics
22. Network Protocol
23. PDF RTF
24. Regular Expressions
25. Security
26. Servlets
27. Spring
28. Swing Components
29. Swing JFC
30. SWT JFace Eclipse
31. Threads
32. Tiny Application
33. Velocity
34. Web Services SOA
35. XML
Microsoft Office Word 2007 Tutorial
Java Tutorial
Java Source Code / Java Documentation
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
C# / C Sharp
C# / CSharp Tutorial
ASP.Net
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
PHP
Python
SQL Server / T-SQL
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Java » J2EE » StrutsScreenshots 
Exercise 2: Improving your first Struts Application
Exercise 2: Improving your first Struts Application

/*
First edition copyright 2004 ObjectSource LLC. All rights reserved.
This training material and the accompanying lab exercises were prepared 
by Srikanth Shenoy for ObjectSource LLC.

GRANT OF LICENSE: ObjecSource LLC grants you a non-exclusive license to 
use the material. No part of this publication may be reproduced, stored 
in a retrieval system or transmitted in any form or by any means 
electronic, mechanical, photocopying, recording or otherwise, without 
the prior written permission of ObjectSource LLC. At its discretion, 
ObjectSource LLC may provide limited support through email or discussion 
forums at ObjectSource web site. ObjectSource incurs no obligation 
to provide any support under this Agreement.
*/

/*
Business Objectives: 
1. Do not expose JSP URLs directly 
2. Allow change of images without changing JSPs 
3. Allow global change of error messages for a given type of error. 
4. Add fields to capture customer address in the form using relevant form elements 
5. Use Images instead of grey buttons for submitting data 
Technical Objectives for this exercise: 
The technical objectives of this exercise is to learn ?how to?: 
1. Use MVC compliant html:link Tag 
2. Use Img Tags (html:img) instead of <img src=..>. Externalize its src and alt to Resource Bundle. 
3. Reuse error messages by value replacement 
4. Modify the ActionForm and JSP Struts Tags to handle nested objects 
5. Modify the ActionForm, Struts Tags in JSP & Action for image button form submission (using 
ImageButtonBean) 
6. Use Checkbox & Radio tags for individual items 
7. Initialize the ActionForm to pre-populate the html form 
8. Use Select & Option Tag 
9. Use Options to display collections in the Select Tag 
10. Use Multiple Message Resource Bundles 


*/

           
       
struts-training.zip( 26,264 k)
Related examples in the same category
1. Exercise 1: Building your first Struts ApplicationExercise 1: Building your first Struts Application
2. Exercise 3: Using JSTL, Struts-EL etcExercise 3: Using JSTL, Struts-EL etc
3. Struts Recipes: Build Struts with Ant
4. Using bean:resource to expose the struts.config.xml to your view
5. Create a pluggable validator for cross-form validation 2Create a pluggable validator for cross-form validation 2
6. Struts: Generate a response with XSL
7.  Hibernate and Struts  Hibernate and Struts
8.  In-container testing with StrutsTestCase and Cactus
9. Exercise 4: Applying Gof and J2EE Patterns:Deploy to WebLogic and Test
10. Exercise 5: Search, List, Action Chaining, Editable List Form
11. Exercise 6: Paging
12. Exercise 7: Better Form and Action Handling
13. Exercise 8: Creating Struts Modules
14. Exercise 9: Using Commons Validator with Struts
15. Exercise 10: Using Struts and Tiles
16. Essential Struts ActionEssential Struts Action
17. A Full Struts ApplicationA Full Struts Application
18. Struts Creating the ViewStruts Creating the View
19. Struts: Creating the ModelStruts: Creating the Model
20. Struts: Creating the ControllerStruts: Creating the Controller
21. Creating Custom TagsCreating Custom Tags
22. The Struts TagsThe Struts Tags
23. The Struts and TagsThe Struts and Tags
24. Web Services and the Validator and Tile PackagesWeb Services and the Validator and Tile Packages
25. Struts Framework: A Sample Struts ApplicationStruts Framework: A Sample Struts Application
26. Struts Framework Validator
27. Struts Framework: TilesStruts Framework: Tiles
28. Struts Framework: Declarative Exception Handling
29. Struts: Internationalizing Struts Applications
30. Securing Struts Applications
31. Testing Struts Applications
32. Struts exampleStruts example
33. Blank Struts templateBlank Struts template
34. Struts Framework
35. Struts: bank application
36. Struts applicationStruts application
37. Struts application 2Struts application 2
w___w___w_.j___a__va__2s._com__ | Contact Us
Copyright 2003 - 08 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.