Create an appropriately named servlet

Assignment Help Web Project
Reference no: EM132850291

All of your classes should exist in a webd4201.lastnamefirstinitial package (all lowercase).

Be sure that you ZIP up your lastnamefirstinitial folder that is in the Tomcat/webapps folder, with a copy of your source code (i.e. your Eclipse src folder) and SQL scripts (in a sql folder) placed inside of it.

Any other compression schemes other than *.zip will be penalized. This *.zip file should be submitted into DC Connect on or before the due date.

Be sure that your generated html conforms to XHTML 1.0 Strict compliance; you must include the clickable image when compliance is met.

Database Requirements:

You are to continue to use a PostgreSQL database that runs on port 5432 (default), named webd4201_db that is owned by a user named webd4201_admin that has a password of webd4201_password

Your database should be preloaded with tables for Users and Students

Create a new UserDA.java class that has methods for initialize(), terminate(), plus the four (4) CRUD methods. NOTE: all statements in this file should be PreparedStatements. Add methods in the User.java class to map to these new UserDA.java methods.

Modify the StudentDA.java class so that User related database functionality is removed (it is now in the UserDA.java class). Modify the existing create() method so that that the User and Student INSERT is handled as a database transaction (i.e. if the User INSERT fails do not continue with the Student INSERT attempt, if the User INSERT succeeds but the Student INSERT fails, rollback the entire transaction). NOTE: all statements are to be PreparedStatements in the StudentDA.java class

Servlet Requirements:

Create an appropriately named servlet that will retrieve data from a form, do appropriate data validation, send user back to the register.jsp if there are errors (valid data should be sent back to make the registration form "sticky".

If there are no errors, hashthe password and INSERTing a User and Student record (using today's date for enrolDate and lastAccess and type = ‘s' and enabled = true), the new Student should should be loaded on the session and re-directed to dashboard.jsp.

web.xml Requirements:

Map a servlet (class and URL pattern) to the above servlet

*.jsp Requirements:

Create a register.jsp page that has a <form> to that submits to the URL pattern mapped in web.xml. The form should have inputs for all User and Student attributes, except for user type, enabled, enrol date and last access.

NOTE: if someone is logged in (i.e. there is a Student object on the session), they should be re-directed off the page with an appropriate message.

This page should be "sticky".

Attachment:- classes Deliverable.rar

Reference no: EM132850291

Questions Cloud

Discuss what talent management is : Discuss what talent management is and why is a consideration addressed by a growing number of employers. Use at least two academically reviewed journal article.
Confidence interval for the true proportion of high school : Calculate an approximate 95% confidence interval for the true proportion of high school students in this district who have recently ridden with a drunk driver.
What sample size is needed if the executive wants : What sample size is needed if the executive wants to be 95% confident of being correct to within ±4 minutes?
What are some good rules of thumb for conducting successful : Based on research from an organizational perspective, Discuss what are some good "rules of thumb" for conducting successful performance appraisal interviews?
Create an appropriately named servlet : Create an appropriately named servlet that will retrieve data from a form, do appropriate data validation, send user back to the register.jsp
Find the population mean and population standard deviation : Find the population mean and the population standard deviation?
Find the sample size needed to ensure : Find the sample size needed to ensure a 95% confidence interval width of 5 dollars. Assume all conditions have been met.
Explain various types of project risks in capital budgeting : Explain the various types of project risks in capital budgeting with examples? And indicate how these risks can be mitigated
How social style affects listening skills : How social style affects your listening skills and how you can improve as a listener. Describe how style flexing can assist with communication effectiveness.

Reviews

Write a Review

Web Project Questions & Answers

  Evaluating an ecommerce website

Create a check list that contains key point for evaluating an ecommerce website - Write a short, reflective report about website

  Gpc and runtime magic quotes

Create a script that lets you know whether Zeus or Helios has the GPC and Runtime Magic Quotes turned on or off. The output should have appropriate labels that define what output signified and should display 'ON' or 'OFF' depending on the setting.

  Creating functions through conditional operator

Use the conditional operator and the cal_days_in_month function, determine the number of days in the current month and output to browser whether it is normal month or a leap month.

  Web development projects with database

Since the vast majority of web-development projects involve a database, do you think that computational activities should be performed there, or do you think they belong in the XML page or stylesheet?

  Comparing shelf software packages

Required assistance with comparing and contrasting two main off the shelf software packages that could be implemented in an organization.

  Web based scams

Web phishing, pharming and vishing are popular web based scams. Talk about currently used tools and recommended measures to defeat this kind of attacks efficiently?

  Explanation of contextual links

The most powerful hypertext capabilities is the the contextual link. Wikipedia . com is a great example of a site that utilizes contextual links.

  How architectural and protocol changes occur

Discuss how architectural and protocol changes happen, the administrative organization that oversees the technical development of the Internet,

  Traditional approaches for training professionals

Webinars and other web conferencing techniques have proved most beneficial for the provision of affordable quality corporate training.

  Internet for business

Discuss how can a business use the Internet and give at least three examples with web links demonstrating your answer.

  It influences the behavior of organizations

Information technology influences the behavior of organizations. Name one effect of Information technology implementation and long-term usage you suppose having a positive contribution and one having a negative consequence.

  Importance of a guided navigation system

Explain the use and importance of a guided navigation system and shopping cart for a website designed for e-commerce and business purpose.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd