Assignment 1


The Assignment

Referring to the following diagram, by next Tuesday at Noon, in your webapp directory j-<your name>:
You should:
  1. Build the yellow directory tree.
  2. Copy and insert the white files from Overview
  3. Build the blue files
  4. Test and, if running, alert me by email.

The Diagram:

The Tree

mariadb-java-client-1.5.5.jar jstl-1.2.jartheJars.zip

The Browser Request and Return:

request

 

 


hoare.cs.umsl.edu Setup Notes

-------------------------------------------
MariaDB and Java are available after the account was created.

To test access to MariaDB, from the command line execute:
 mysql --user=cs4010 --password=cs4010 --database=cs4010

With respect to Java, so that I could work with Tomcat. 
I created a directory myjars under my home directory and put the various Web jars in it from 

theJars.zip 

(recall "others" go in the same directory not a sub directory).

I also added two files to my account home directory.

.bash_profile and .bashrc

.bash_profile
---------------------------------
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
    . ~/.bashrc
fi
-------------------------------
and

.bashrc
-----------------------------------------
#!/bin/sh
# Source global definitions
if [ -f /etc/bashrc ]; then
    . /etc/bashrc
fi

# My aliases and functions       
export CLASSPATH=.:/usr/share/java/*:/home/j-siegel/tomcat/WEB-INF/lib/*:/home/j-siegel/myjars/*;
alias h='history';
alias gotoTom='cd /var/lib/tomcat/webapps/j-siegel';

------------------------------------------------------------

Your files would have your account name. Also, you have to reboot to execute. 
The CLASSPATH is a bit of overkill
and there are different ways to do this but when I just execute  the command

gotoTom from wherever I am, I get to my webapp.