Git Product home page Git Product logo

swethabikkasani / java-jsp-jdbc-mysql-template Goto Github PK

View Code? Open in Web Editor NEW

This project forked from anychart-integrations/java-jsp-jdbc-mysql-template

0.0 0.0 0.0 14 KB

This example shows how to run Anychart library with Java programming language using Maven, Servlets, JDBC, JSP and MySQL.

Home Page: https://www.anychart.com

License: Apache License 2.0

SQLPL 21.19% Java 76.92% CSS 1.88%

java-jsp-jdbc-mysql-template's Introduction

AnyChart - Robust JavaScript/HTML5 Chart library for any project

Java basic template

This example shows how to run Anychart library with Java programming language using Maven, Servlets, JDBC, JSP and MySQL.

Running

To use this sample you must have:

MySQL installed and running, if not please check out MySQL download page and follow these instructions. To check your MySQL installation, run following command in command line:

$ mysql --version
mysql  Ver 14.14 Distrib 5.5.52, for debian-linux-gnu (x86_64) using readline 6. # sample output

Maven build tool, if not please checkout maven installation page. To check your Maven installation, run following command in command line:

$ mvn --version
Apache Maven 2.2.1 (rdebian-14) # sample output
Java version: 1.8.0_101
Java home: /usr/lib/jvm/java-8-oracle/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "linux" version: "3.16.0-38-generic" arch: "amd64" Family: "unix"

To start this example run commands listed below.

Clone the repository from github.com to your workspace folder:

$ git clone [email protected]:anychart-integrations/java-jsp-jdbc-mysql-template.git

Navigate to the repository folder:

$ cd java-jsp-jdbc-mysql-template

Set up MySQL database, use -u -p flags to provide your user name and password:

$  mysql < database_backup.sql

Run app

 mvn clean install tomcat7:run

open browser at http://localhost:8080/

Workspace

Your workspace should look like:

java-jsp-jdbc-mysql-template/
    src/
        main/
            java/
                com.anychart/
                    listeners/
                        DatabaseContextListener.java    # Listener for database
                    models/
                        Fruit.java      # Data model
                    servlets/
                        MainServlet.java    # Servlet
                resources
                webapp/
                    resources/
                        css/
                            style.css   # css styles
                    WEB-INF/
                        views/
                            index.jsp   # html template
                    web.xml             # Main web settings
    .gitignore
    database_backup.sql     # MySQL database dump
    LICENSE
    pom.xml     # project dependencies
    README.md

Technologies

Language - Java
Database - MySQL
Database driver - JDBC
Template - JSP
Build tool - Maven

Further Learning

License

AnyChart JSP/MySQL integration sample includes two parts:

  • Code of the integration sample that allows to use Javascript library (in this case, AnyChart) with JSP technology, Java language and MySQL database with JDBC driver. You can use, edit, modify it, use it with other Javascript libraries without any restrictions. It is released under Apache 2.0 License.
  • AnyChart JavaScript library. It is released under Commercial license. You can test this plugin with the trial version of AnyChart. Our trial version is not limited by time and doesn't contain any feature limitations. Check details here.

If you have any questions regarding licensing - please contact us. [email protected]

Analytics

java-jsp-jdbc-mysql-template's People

Contributors

ilevd avatar grasshoppergn avatar

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.