Home - learn-struts-fast/struts-tutorials GitHub Wiki

Course files

All the course lab files, plus my struts examples, are up on GitHub. The lab files are in the resources folder.

Struts Tutorials and Lab Resources Files

Evaluation Link

https://www.webagesolutions.com/eval

Class code: 400897-2266

Please take a moment to fill out the evaluation.

It's Friday!!!

Let's prime the pump with a 5-question quiz.

Today is all about advanced topic and wrapping up with the labs. On the agenda for discussion is:

  • Annotations and zero-configuration
  • Unit testing in Struts
  • The value stack
  • Uploading files
  • Tiles
  • Business Patterns
  • JavaEE Patterns
  • Struts Patterns

For the unit testing section, take a look at this test:

Simple Struts Unit Test

For the file upload, I'd like to take a look at this tutorial on TSS:

How to upload files in Struts

After all that, we've got a couple of labs:

  • Tiles
  • File Uploads

And that wraps things up!

A Friday Morning Quiz

  1. To customize how Struts tags render HTML, which two template technologies come standard with Struts?
  • Thymeleaf
  • Velocity
  • Groovy
  • FreeMarker
  1. Which of the following is correct way to declare an i18n resource bundle?
  • ApplicationResources_en_US_TX
  • ApplicationResources_TX_US_en
  • ApplicationResources_US_TX_en
  • ApplicationResources_TX_en_US
  1. What is the preferred approach for including Ajax calls in your code?
  • jQuery template
  • Ajax template
  • Ajax plugin
  • jQuery plugin
  1. For the following tag to display the discount code,

<s: property value="discountCode"/>

the action class must have:

  • A public property named discountCode
  • A public getter named getDiscountCode()
  • A public setter named setDiscountCode()
  • A property named discountCode and corresponding setters and getters
  1. The Struts framework for helping to create page layouts is known as:
  • Faces
  • Tiles
  • MVC
  • Portal

Welcome to the Struts course!

Class officially starts at 9:30

Go to this page in your own browser. I'll be uploading examples and providing notes and guidance through this GitHub wiki:

https://github.com/learn-struts-fast/struts-tutorials/wiki/

First things first. Make sure you can log into your virtual machine.

Here is what the computer setup looks like for those logging into the virtual machines through the web:

http://toronto.webagesolutions.com/

MACHINE NAME :: Student Name

  • PC-400897-101 :: Chi
  • PC-400897-102 :: Anne
  • PC-400897-103 :: Charles
  • PC-400897-104 :: Xiujuan
  • PC-400897-105 :: Manvir
  • PC-400897-106 :: Fadi

The credentials are:

Username: LABS\wasadmin Password: wasadmin

My Phone Number

If there are problems throughout the course with connectivity or my audio goes off or something like that, please text me:

Cameron 289 314 5715

Struts Eclipse Tomcat