Flylib.com
List of Listings
Previous page
Table of content
< Day Day Up >
Chapter 2: An Overview of the Java Servlet and JavaServer Pages Architectures
Listing 2.1: SimpleServlet.java.
Listing 2.2: ContextServlet.java.
Listing 2.3: Context.jsp.
Listing 2.4: ParameterServlet.java.
Listing 2.5: Form.html.
Listing 2.6: Creating a JSP error page: errorpage.jsp.
Listing 2.7: Using a JSP error page: testerror.jsp.
Listing 2.8: Using the out object: out.jsp.
Listing 2.9: Using the request object: request.jsp.
Listing 2.10: Using the session object: session.jsp.
Listing 2.11: Example of a Counter bean: Counter.java.
Listing 2.12: A JSP that uses the Counter bean: counter.jsp.
Listing 2.13: Example of the include action: include.jsp.
Listing 2.14: The JSP evaluated in include.jsp: header.jsp.
Listing 2.15: Example of the forward action: forward.jsp.
Listing 2.16: welcome.jsp.
Listing 2.17: management.jsp.
Chapter 3: Getting Started with Struts
Listing 3.1: index.jsp.
Listing 3.2: The LookupForm implementation LookupForm.java.
Listing 3.3: quote.jsp.
Listing 3.4: The LookupAction bean.
Listing 3.5: The complete struts-config.xml file.
Listing 3.6: The complete web.xml file.
Chapter 4: Actions and ActionServlet
Listing 4.1: WroxPlugin.java.
Listing 4.2: WroxRequestProcessor.java.
Listing 4.3: struts-config.xml.
Chapter 6: Building the Presentation Layer
Listing 6.1: LookupForm.java.
Listing 6.2: DynamicLookupAction.java.
Listing 6.3: Dynamicindex.jsp.
Chapter 8: Working with Custom ActionMappings
Listing 8.1: WroxActionMapping.java.
Listing 8.2: The modified ch03.LookupAction.java.
Chapter 9: Internationalizing Your Struts Applications
Listing 9.1: The Italian ApplicationResources_it_IT.properties file.
Listing 9.2: The English ApplicationResources_en_US.properties file.
Listing 9.3: The modified web.xml file.
Listing 9.4: The internationalized index.jsp.
Listing 9.5: The internationalized quote.jsp.
Chapter 10: Managing Errors
Listing 10.1: The modified LookupForm.java.
Listing 10.2: The modified index.jsp.
Listing 10.3: The modified LookupAction.java.
Listing 10.4: The modified ApplicationResources_en_US.properties file.
Listing 10.5: The modified ApplicationResources_it_IT.properties file.
Chapter 11: Integrating the Jakarta Commons Database Connection Pool (DBCP)
Listing 11.1: Code added to struts-config.xml to initialize the DataSource.
Listing 11.2: Modifying the getQuote() method to use a DataSource object.
Chapter 12: Working with the Validator
Listing 12.1: The input JSP that uses the Action form (input.jsp).
Listing 12.2: Rules for the inputForm.
Listing 12.3: Form that uses minlength and maxlength.
Listing 12.4: Sample code using regular expressions.
Listing 12.5: Validating a US phone number.
Listing 12.6: Step1.jsp.
Listing 12.7: Step2.jsp.
Listing 12.8: Example validation.xml using workflow.
Chapter 13: Using Tiles
Listing 13.1: siteLayout.jsp.
Listing 13.2: siteLayoutDefinition.jsp.
Listing 13.3: listTileScope.
Listing 13.4: header2.jsp.
Listing 13.5: tiles-def.xml.
Listing 13.6: siteLayout3.jsp.
Listing 13.7: index6.jsp.
Listing 13.8: linkLayout.jsp.
Listing 13.9: ch13.SimpleController.
Chapter 14: Developing a Complete Struts Application
Listing 14.1: An Empty struts-config.xml File.
Listing 14.2: Default web.xml File.
Listing 14.3: The English Resource Bundle ApplicationResources.properties.
Listing 14.4a: The web.xml File after Adding the Application Resource Bundle.
Listing 14.4b: The web.xml File after Adding the HTML, Logic, and Bean Tag Libraries.
Listing 14.5: The Employee Object.
Listing 14.6: The EmployeeData Object.
Listing 14.7: index.jsp.
Listing 14.8: The web.xml file after adding the index.jsp welcome file.
Listing 14.9: EmployeeListAction.java.
Listing 14.10: The employeelist.jsp.
Listing 14.11: The web.xml file after adding the Employee List components.
Listing 14.12: The Add Employee View.
Listing 14.13: The EmployeeForm.java.
Listing 14.14: The Add EmployeeAction.java.
Listing 14.15: The web.xml file after adding the Add Employee components.
Listing 14.16: The GetEmployeeAction.java.
Listing 14.17: The Edit Employee view.
Listing 14.18: The EditEmployeeAction.
Listing 14.19: The struts-config.xml file after adding the Edit Employee components.
Listing 14.20: The DeleteEmployeeAction.
Listing 14.21: The struts-config.xml file after adding the DeleteEmployee components.
Chapter 15: The struts-config.xml File
Listing 15.1: The struts-config.xml file.
< Day Day Up >
Previous page
Table of content
Professional Jakarta Struts (Programmer to Programmer)
ISBN: 0764544373
EAN: 2147483647
Year: 2003
Pages: 183
Authors:
James Goodwill
,
Richard Hightower
BUY ON AMAZON
Crystal Reports 9 on Oracle (Database Professionals)
PL/SQL
Optimizing: The Crystal Reports Side
Optimizing: Reducing Parses
Other Tips
Appendix B Functions
Secure Programming Cookbook for C and C++: Recipes for Cryptography, Authentication, Input Validation & More
Introduction
Wrapping Lines in a Text File
Writing a Class Template
Computing the Norm of a Vector
Writing and Reading Dates and Times
Competency-Based Human Resource Management
An Overview of Competency-Based HR Management Practices
A Need for Implementing Competency-Based HR Management
Competency-Based Employee Recruitment and Selection
Competency-Based Employee Development
Competency-Based HR Management The Next Steps
Visual Studio Tools for Office(c) Using C# with Excel, Word, Outlook, and InfoPath
The Three Basic Patterns of Office Solutions
Working with the Application Object
Conclusion
Part Three. Office Programming in VSTO
Advanced ADO.NET Data Binding: Looking Behind the Scenes
Java Concurrency in Practice
Delegating Thread Safety
Building an Efficient, Scalable Result Cache
Short-running GUI Tasks
Deadlock
Summary
Microsoft Visual Basic .NET Programmers Cookbook (Pro-Developer)
Numbers, Dates, and Other Data Types
Reflection
Windows Programming
Windows Services
Useful COM Interop
flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net
Privacy policy
This website uses cookies. Click
here
to find out more.
Accept cookies