Lab  #1  Solution

$35.00

Description

This  quarter  we  will  explore  Web  Programming  through  the  use  of  Java,  Apache  Tomcat,  and  MySQL.    Before  we  dive  into  the  subject  matter  I  would  like  to  get  to  know  you  better.    To  do  so,  you  will  create  and  deploy  a  Servlet  to  a  live  Web  Server  (CS3).  

Servlet  

You  are  to  create  a  Servlet  that  serves  HTML5  content.    The  output  of  the  Servlet  will  answer  a  few  questions  that  will  help  me  get  to  know  you  as  a  student,  and  to  understand  your  educational  goals  and  background.  

Your  Servlet  should  be  accessible  via  the  following  URL  pattern:  

http://cs3.calstatela.edu:8080/cs320stuXX/Lab1/AboutMeServlet  

Note:  you  should  replace  XX  with  your  account  number.  

Be  sure  to  include  your  Full  Name  and  CIN  at  the  top  of  the  page.  

Requirements:    

o Your  name  should  be  contained  within  a  SPAN  with  an  id  of  “students-­‐name”.  

o Your  CIN  should  be  contained  within  a  SPAN  with  an  id  of  “students-­‐cin”.  

In  this  document  you  will  also  respond  to  the  following  5  questions:  

 

1. Many  of  you  are  new  transfers,  some  are  graduate  students,  and  others  are  4th  year  seniors  finishing  up  your  undergraduate  studies.    Please  provide  your  current  year  in  school.  For  example,  a  1st  year  graduate  student  should  

respond  with  “1st  Year  -­‐  Graduate”.    A  4th  year  undergrad  should  respond  with  “4th  Year  -­‐  Undergraduate”.  

a. Requirements:    Your  response  to  this  question  should  be  placed  

within  a  DIV  with  an  id  of  “q1-­‐response”.    

2. What  is/are  your  Major(s)?    

a. Requirements:  Your  response  to  this  question  should  be  placed  

within  a  DIV  with  an  id  of  “q2-­‐response”.  

3. Through  your  educational  endeavors  you  have  undoubtedly  learned  one  or  

more  programming  languages.    Some  of  you  may  have  HTML/Javascript  

experience,  where  others  may  have  experience  programming  your  Texas  Instruments  (TI)  89  Calculators.  Whatever  the  languages  may  be,  I  would  like  you  to  list  all  programming  languages  that  you  have  experience  with,  and  the  number  of  lines  of  code  that  you  have  written  in  each  language.    If  you’re  not  sure  that  a  language  is  relevant  report  it  anyways.  

For  example,  someone  may  write:  

C/C++: 10,000+ lines of code ActionScript: ~500 lines of code etc…  

 

a. Requirements:  Your  response  should  be  contained  in  an  UNORDERED  LIST  with  an  id  of    “q3-­‐response”.  

4. All  of  you  have  decided  to  sacrifice  you  evenings  for  11  weeks  to  participate  in  

CS320  Web  &  Internet  Programming.    This  is  quite  the  commitment,  and  is  

surely  accompanied  by  some  expectation  from  the  course.    Please  respond  with:  

a. Why  you  enrolled  in  the  course.  

i. Requirements:  Your  response  to  this  question  should  be  

contained  in  a  PARAGRAPH  with  an  id  of  “q4-­‐why”.  

b. What  you  hope  to  learn  while  taking  the  course.  (Do  not  respond  with,  “I  

hope  to  learn  how  to  make  Webpages  and/or  Websites”)  

i. Requirements:  Your  response  to  this  question  should  be  

contained  in  a  PARAGRAPH  with  an  id  of  “q4-­‐what”.  

c. What  do  you  intend  to  do  with  the  knowledge  that  you  learn  in  the  

course?  

i. Requirements:  Your  response  to  this  question  should  be  

contained  in  a  PARAGRAPH  with  an  id  of  “q4-­‐do”.  

5. Finally,  I  would  like  to  know  more  about  you.  Please  respond  with  something  

interesting  about  you.    (Do  not  reply  with,  “I  am  a  CS  Major”)  

a. Requirements:  Your  response  should  be  contained  within  a  DIV  with  

an  id  of  “q5-­‐response”.  

   

Grading  

AboutMeServlet  

Name  

o 10pts  –  SPAN#students-­‐name  

o 10pts  –  SPAN#students-­‐cin  

 

Q1  

Q2  

Q3  

Q4  

Q5  

o 10pts  -­‐  DIV#q1-­‐response    o 10pts  –  DIV#q2-­‐response  o 10pts  –  UL#q3-­‐response  

o 10pts  –  P#q4-­‐why  o 10pts  –  P#q4-­‐what  o 10pts  –  P#q4-­‐do  

o 20  –  DIV#q5-­‐response  

Important  Notes  

 

 

All  ID’s  are  case  sensitive.  

o If  you  do  not  use  the  exact  ID  specified,  you  will  lose  points.  

Do  not  copy+paste  the  quotation  marks  from  the  document.      

o Instead,  manually  type  the  quotations  into  your  Servlet.      

o Otherwise,  the  auto-­‐grader  will  mark  your  file  as  incorrect.  

Total:  100pts