Hello World Exercises

Information

These are the HelloWorld exercises for the Sakai cafe workshop.

Creating HelloWorlds

  1. Install the Sakai App Builder plugin for Eclipse if it is not installed already
  2. Use the plugin to create a hello world project in your sakai source directory for each presentation technology (or whichever one or ones you would like)
    1. RSF
    2. JSF (optional)
    3. JSP (optional)
  3. Use maven to build the new projects
  4. Start up tomcat (and Sakai)
  5. Login and create a site with the hello world tools in it
  6. Try each one
    • They should look like this:

Modifying HelloWorlds templates

  1. Change each hello world to show the date in bold
    • Note: You should only need to change the templates for this exercise, use CSS if you want but <b> tags are fine
    • They should look like this:

Modifying the HelloWorlds date output

  1. Change each hello world so that the date is listed separately from the time
    • Note: You will probably need to change more than just the templates for this exercise
    • Note: You can use the java.text.DateFormat class to break up a date string (Medium is what I used)
    • They should look like this: