Giter Club home page Giter Club logo

javadepartmentswebapp's Introduction

JavaDepartmentsWebApp

This is the first application for DA after learning Java at a DA Java School.

##Preparing DB

###Creating DB

Please use department.ddl.sql to create structure of DB. Please use department.dml.sql to fill in test data into DB.

You can use *nix commands: $ mysql -udbuser -pdbpassword dbname < department.ddl.sql $ mysql -udbuser -pdbpassword dbname < department.dml.sql

##Configure application

Need to configure access to DB. Please open web/WEB-INF/web.xml

At line 17 you can see this code:

<context-param>
    <param-name>dbUser</param-name>
    <param-value>dbuser</param-value>
</context-param>
<context-param>
    <param-name>dbPassword</param-name>
    <param-value>dbuser</param-value>
</context-param>
<context-param>
    <param-name>dbURL</param-name>
    <param-value>jdbc:mysql://dbhost:3306/dbname?useUnicode=true&amp;characterEncoding=UTF-8</param-value>
</context-param>

Replace dbuser, dbpassword, dbhost, dbname in tag to your correct values.

##Build application

To build application use command

ant

in application root dir.

in dist/ folder you can find firstProject.war . Deploy this file to your Tomcat server.

##Software requirements

This software is tested on Ubuntu desktop and Ubuntu server version >= 12.04. We hope it will work on any platform ;)

  • Tomcat >= 7
  • Java >= 1.7 (JEE)
  • Mysql >= 5.5

###Used java libraries

  • javax.servlet-api-3.1.0.jar
  • jstl-1.2.jar
  • mysql-connector-java-5.1.31-bin.jar

##Known issues

  • There are no validations, there is a need to input correct data in appropriate formats
  • There is no validation for salary and corresponding positions
  • There are CSRF or XSS vulnerabilities
  • There is Employee delete function, it is using GET method instead POST

javadepartmentswebapp's People

Contributors

krugvs avatar

Watchers

James Cloos avatar  avatar

Forkers

pavelfedyanin

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.