Skip to content

MaximBubnov/product-service-servlet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

product-service-servlet

Product Service API (There are JavaDoc in many classes)

Servlet + JSP + JDBC

Before using:

  1. create database with name product_servlet_jsp
  2. create script to create some tables and necessary data for this example
-- Create table
create table USER_ACCOUNT
(
USER_NAME VARCHAR(30) not null,
GENDER    VARCHAR(1) not null,
PASSWORD  VARCHAR(30) not null,
primary key (USER_NAME)
);
 
-- Create table
create table PRODUCT
(
CODE  VARCHAR(20) not null,
NAME  VARCHAR(128) not null,
PRICE FLOAT not null,
primary key (CODE)
) ;
 
-- Insert data: ---------------------------------------------------------------
 
insert into user_account (USER_NAME, GENDER, PASSWORD)
values ('user1', 'M', 'user001');
 
insert into user_account (USER_NAME, GENDER, PASSWORD)
values ('user2', 'M', 'user002');
 
insert into product (CODE, NAME, PRICE)
values ('P001', 'Java Core', 100);
 
insert into product (CODE, NAME, PRICE)
values ('P002', 'C# Core', 90);

Screenshots

Hello page

alt-текст


Product list page

alt-текст


Login page

alt-текст


About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages