-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Shop.jsp can now communicate with the dataabase! Yay!
Submitting the form does not do everything it needs to do with tables yet. There is a good deal of polishing and refactoring to now too.
- Loading branch information
Showing
8 changed files
with
701 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<%@ page import = "database.MySQLAccess" %> | ||
<%@ page import = "entities.User" %> | ||
<%@ page language="java" contentType="text/html; charset=ISO-8859-1" | ||
pageEncoding="ISO-8859-1"%> | ||
|
||
<!-- The purpose of this file is to capture order form submissions and forward them to MySQLAccess --> | ||
|
||
<!DOCTYPE html> | ||
<html> | ||
<body> | ||
<% | ||
//First update employee | ||
String userName = request.getParameter("name"); | ||
int phone = Integer.valueOf(request.getParameter("phone")); | ||
int location = Integer.valueOf(request.getParameter("location")); | ||
MySQLAccess access = new MySQLAccess(); | ||
access.updateEmployee(1, userName, phone, location); //TODO get ID somehow | ||
// And now for the ticket | ||
// TODO | ||
%> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.