├── .gitignore ├── README.md ├── build.xml ├── nbproject ├── ant-deploy.xml ├── build-impl.xml ├── genfiles.properties ├── project.properties └── project.xml ├── src ├── conf │ └── MANIFEST.MF └── java │ ├── AddEvent.java │ ├── LoginDao.java │ ├── Register.java │ ├── StoreP.java │ ├── TraH.java │ ├── VaPa.java │ ├── ValidateAd.java │ └── ViewEvent1.java └── web ├── AdminEvent.html ├── Alogin.html ├── CreateE.html ├── EventDetails.html ├── META-INF └── context.xml ├── Parlogin.html ├── ParticipantEvent.html ├── Payment.html ├── Plogin.html ├── Psignup.html ├── Registration.html ├── TransactionDetails.html ├── WEB-INF └── web.xml ├── admin.png ├── index.html ├── part.png ├── screenshot.jpeg └── total.css /.gitignore: -------------------------------------------------------------------------------- 1 | # NetBeans specific # 2 | 3 | nbproject/private/ 4 | build/ 5 | nbbuild/ 6 | dist/ 7 | nbdist/ 8 | nbactions.xml 9 | nb-configuration.xml 10 | 11 | # Class Files # 12 | *.class 13 | 14 | # Package Files # 15 | *.jar 16 | *.war 17 | *.ear 18 | 19 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Evently ... An Event Management Portal! 2 | 3 | ## 1. Project description: 4 | 5 | Evently is an Event Management System. It is a Web Application for registering events. 6 | 7 | It allows access to two types of users, with the following functions: 8 | 9 | 1. Administrator -> Log in, Create Events, View Participant Events, View Participant Payments, Log Out. 10 | 2. Participant -> Register As New User, Log In As Existing User, Create Events, Pay For Events, View Events, Log Out. 11 | 12 | ## 2. Tech Stack: 13 | 14 | HTML/CSS/JavaScript, Java 11, Java Servlet, JDBC, MySQL/MySQL Workbench/MySQL Server, Apache Tomcat Server, Git/GitHub. 15 | 16 | ## 3. Installing: 17 | 18 | Prerequisite: Apache NetBeans 13.0, Apache Tomcat Server 10.0, MySQL Server, MySQL Workbench (Optional ... I prefer to perform MySql operations at the command line "mysql -u root -p") 19 | 20 | 1. Clone the repo. 21 | 22 | ``` 23 | https://github.com/AAdewunmi/Event-Management-System-Java.git 24 | ``` 25 | 26 | 2. How to use: 27 | 28 | a. Open project in NetBeans 29 | 30 | b. Start SQL Server 31 | 32 | c. Start Apache Tomcat Server 33 | 34 | d. Run the application in the IDE (NetBeans) 35 | 36 | e. You have two choices at the "Evently" landing page: 37 | 38 | (i) Login as an admin 39 | List of Admin usernames and password 40 | 41 | "A101"; "Admin101"; 42 | 43 | "A202"; "Admin202"; 44 | 45 | "A303"; "Admin303"; 46 | 47 | "A404"; "Admin404"; 48 | 49 | (ii) Login as a participant: 50 | - Register as new participant or 51 | - Login as existing participant 52 | 53 | ## 4. Nice to have: 54 | 55 | Payment gateway i.e. PayPal, Apple Pay, Google Pay etc. 56 | 57 | Email / Text message notification. 58 | 59 | ## 5. Screenshot of the landing page: 60 | 61 | ![Image description](web/screenshot.jpeg) 62 | 63 | ## 6. Source: 64 | 65 | - Adapted from: 66 | 67 | UDEMY: Java Programming Bootcamp, Develop 20 Real World Projects, Java Web Application Development Course, 68 | 69 | Learn To Build Projects Using JSP, JDBC, Servlets, Swing, Spring Boot, Hibernate 70 | 71 | - Project Name: 72 | Project 2: Event Management System 73 | 74 | - Created by: 75 | Engineering.Org.In 76 | 77 | - Date Created: 78 | Last updated 11/2021 79 | 80 | - URL: 81 | https://www.udemy.com/course/build-real-world-java-projects-jsp-servlets-springboot/ 82 | -------------------------------------------------------------------------------- /build.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | Builds, tests, and runs the project Event-Management-System-Java. 12 | 13 | 71 | 72 | -------------------------------------------------------------------------------- /nbproject/ant-deploy.xml: -------------------------------------------------------------------------------- 1 | 2 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 45 | 48 | 49 | 50 | 51 | 52 | 54 | 56 | 57 | 58 | -------------------------------------------------------------------------------- /nbproject/build-impl.xml: -------------------------------------------------------------------------------- 1 | 2 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | 110 | 111 | 112 | 113 | 114 | 115 | 116 | 117 | 118 | 119 | 120 | 121 | 122 | 123 | 124 | 125 | 126 | 127 | 128 | 129 | 130 | 131 | 132 | 133 | 134 | 135 | 136 | 137 | 138 | 139 | 140 | 141 | 142 | 143 | 144 | 145 | 146 | 147 | 148 | 149 | 150 | 151 | 152 | 153 | 154 | 155 | 156 | 157 | 158 | 159 | 160 | 161 | 162 | 163 | 164 | 165 | 166 | 167 | 168 | 169 | 170 | 171 | 172 | 173 | 174 | 175 | 176 | 177 | 178 | 179 | 180 | 181 | 182 | 183 | 184 | 185 | 186 | 187 | 188 | 189 | 190 | 191 | 192 | 193 | 194 | 195 | 196 | 197 | 198 | 199 | 200 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 208 | 209 | 210 | 211 | 212 | 213 | 214 | 215 | 216 | 217 | 218 | 219 | 220 | 221 | 222 | 223 | 224 | 225 | 226 | 227 | 228 | 229 | 230 | 231 | 232 | 233 | 234 | 235 | 236 | 237 | Must set src.dir 238 | Must set test.src.dir 239 | Must set build.dir 240 | Must set build.web.dir 241 | Must set build.generated.dir 242 | Must set dist.dir 243 | Must set build.classes.dir 244 | Must set dist.javadoc.dir 245 | Must set build.test.classes.dir 246 | Must set build.test.results.dir 247 | Must set build.classes.excludes 248 | Must set dist.war 249 | 250 | 251 | 252 | 253 | 254 | 255 | 256 | 257 | 258 | The Java EE server classpath is not correctly set up - server home directory is missing. 259 | Either open the project in the IDE and assign the server or setup the server classpath manually. 260 | For example like this: 261 | ant -Dj2ee.server.home=<app_server_installation_directory> 262 | 263 | 264 | The Java EE server classpath is not correctly set up. Your active server type is ${j2ee.server.type}. 265 | Either open the project in the IDE and assign the server or setup the server classpath manually. 266 | For example like this: 267 | ant -Duser.properties.file=<path_to_property_file> (where you put the property "j2ee.platform.classpath" in a .properties file) 268 | or ant -Dj2ee.platform.classpath=<server_classpath> (where no properties file is used) 269 | 270 | 271 | 272 | 273 | 274 | 275 | 276 | 277 | 278 | 279 | 280 | 281 | 282 | 283 | 284 | 285 | 286 | 287 | 288 | 289 | 290 | 291 | 292 | 293 | 294 | 295 | 296 | 297 | 298 | 299 | 300 | 301 | 302 | 303 | 304 | 305 | 306 | 307 | 308 | 309 | 310 | 311 | 312 | 313 | 314 | 315 | 316 | 317 | 318 | 319 | 320 | 321 | 322 | 323 | 324 | 325 | 326 | 327 | 328 | 329 | 330 | 331 | 332 | 333 | 334 | 335 | 336 | 337 | 338 | 339 | 340 | 341 | 342 | 343 | 344 | 345 | 346 | 347 | 348 | 349 | 350 | 351 | 352 | 353 | 354 | 355 | 356 | 357 | 358 | 359 | 360 | 361 | 362 | 363 | 364 | 365 | Must set javac.includes 366 | 367 | 368 | 369 | 370 | 371 | 372 | 373 | 374 | 375 | 376 | 377 | 378 | 379 | 380 | 381 | 382 | 383 | 384 | 385 | 386 | 387 | 388 | 389 | 390 | 391 | 392 | 393 | 394 | 395 | 396 | 397 | 398 | 399 | 400 | 401 | 402 | 403 | 404 | 405 | 406 | 407 | 408 | 409 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 418 | 419 | 420 | 421 | 422 | 423 | 424 | 425 | 426 | 427 | 428 | 429 | 430 | 431 | 432 | 433 | 434 | 435 | 436 | 437 | 438 | 439 | 440 | 441 | 442 | 443 | 444 | 445 | 446 | 447 | 448 | 449 | 450 | 451 | 452 | 453 | 454 | 455 | 456 | 457 | 458 | 459 | 460 | 461 | 462 | 463 | 464 | 465 | 466 | 467 | 468 | 469 | 470 | 471 | 472 | 473 | 474 | 475 | 476 | 477 | 478 | 479 | 480 | 481 | 482 | 483 | 484 | 485 | 486 | 487 | 488 | 489 | 490 | 491 | 492 | No tests executed. 493 | 494 | 495 | 496 | 497 | 498 | 499 | 500 | 501 | 502 | 503 | 504 | 505 | 506 | 507 | 508 | 509 | 510 | 511 | 512 | 513 | 514 | 515 | 516 | 517 | 518 | 519 | 520 | 521 | 522 | 523 | 524 | 525 | 526 | 527 | 528 | 529 | 530 | 531 | 532 | 533 | 534 | 535 | 536 | 537 | 538 | 539 | 540 | 541 | 542 | 543 | 544 | 545 | 546 | 547 | 548 | 549 | 550 | 551 | 552 | 553 | 554 | 555 | 556 | 557 | 558 | 559 | 560 | 561 | 562 | 563 | 564 | 565 | 566 | 567 | 568 | 569 | 570 | 571 | 572 | 573 | 574 | 575 | 576 | 577 | 578 | 579 | 580 | 581 | 582 | 583 | 584 | 585 | 586 | 587 | 588 | 589 | 590 | 591 | 592 | 593 | 594 | 595 | 596 | 597 | 598 | 599 | 600 | 601 | 602 | 603 | 604 | 605 | 606 | 607 | 608 | 609 | 610 | 611 | 612 | 613 | 614 | 615 | 616 | 617 | 618 | 619 | 620 | 621 | 622 | 623 | 624 | 625 | 626 | 627 | 628 | 629 | 630 | 631 | 632 | 633 | 634 | 635 | 636 | 637 | 638 | 639 | 640 | 641 | 642 | 643 | 644 | 645 | 646 | 647 | 648 | 649 | 650 | 651 | 652 | 653 | 654 | 655 | 656 | 657 | 658 | 659 | 660 | 661 | 662 | 663 | 664 | 665 | 666 | 667 | 668 | 669 | 670 | 671 | 672 | 673 | 674 | 675 | 676 | 677 | 678 | 679 | 680 | 681 | 682 | 683 | 684 | 685 | 686 | 687 | 688 | 689 | 690 | 691 | 692 | 693 | 694 | 695 | 696 | 697 | 698 | 699 | 700 | 701 | 702 | 703 | 704 | 705 | 706 | 707 | 708 | 709 | 710 | 711 | 712 | 713 | 714 | 715 | 716 | 717 | 718 | 719 | 720 | 721 | 722 | 723 | 724 | 725 | 726 | 727 | 728 | 729 | 730 | 731 | 732 | 733 | 734 | 735 | 736 | 737 | 738 | 739 | 740 | 741 | 742 | 743 | 744 | 745 | 746 | 747 | 748 | 749 | 750 | 751 | 752 | 753 | 754 | 755 | 756 | 757 | 758 | 759 | 760 | 761 | 762 | 763 | 764 | 765 | 766 | 767 | 768 | 769 | 770 | 771 | 772 | 773 | 774 | 775 | 776 | 777 | 778 | 779 | 780 | 781 | 782 | 783 | The libs.CopyLibs.classpath property is not set up. 784 | This property must point to 785 | org-netbeans-modules-java-j2seproject-copylibstask.jar file which is part 786 | of NetBeans IDE installation and is usually located at 787 | <netbeans_installation>/java<version>/ant/extra folder. 788 | Either open the project in the IDE and make sure CopyLibs library 789 | exists or setup the property manually. For example like this: 790 | ant -Dlibs.CopyLibs.classpath=a/path/to/org-netbeans-modules-java-j2seproject-copylibstask.jar 791 | 792 | 793 | 794 | 795 | 796 | 797 | 798 | 799 | 800 | 801 | 802 | 803 | 804 | 805 | 806 | 807 | 808 | 809 | 810 | 811 | 812 | 813 | 814 | 815 | 816 | 817 | 820 | 821 | 822 | 823 | 824 | 825 | 826 | 827 | 828 | 829 | 830 | Must set JVM to use for profiling in profiler.info.jvm 831 | Must set profiler agent JVM arguments in profiler.info.jvmargs.agent 832 | 833 | 836 | 837 | 840 | 841 | 842 | 843 | 844 | 845 | 846 | 847 | 848 | 849 | 850 | 851 | 852 | 853 | 854 | 855 | 856 | 857 | 858 | 859 | 860 | 861 | 862 | 863 | 864 | 865 | 866 | 867 | 868 | 869 | 870 | 871 | 872 | 873 | 874 | 875 | 876 | 877 | 878 | 879 | 880 | 881 | 882 | 883 | 884 | 885 | 886 | Must select some files in the IDE or set javac.includes 887 | 888 | 889 | 890 | 891 | 892 | 893 | 894 | 895 | 896 | 897 | 898 | 899 | 900 | 901 | 902 | 903 | 904 | 905 | 906 | 907 | 908 | 909 | 910 | 911 | 912 | 913 | 914 | 915 | 916 | 917 | 918 | 919 | Must select some files in the IDE or set javac.jsp.includes 920 | 921 | 922 | 923 | 924 | 925 | 926 | 927 | 928 | 929 | 930 | 931 | 932 | 933 | 934 | 935 | 936 | 937 | 938 | 939 | 940 | 941 | 942 | 943 | 944 | 945 | Must select a file in the IDE or set jsp.includes 946 | 947 | 948 | 951 | 952 | 953 | 954 | 955 | 956 | 957 | 958 | 959 | 960 | 961 | 962 | 963 | 964 | 965 | 966 | 967 | 968 | 969 | 970 | 971 | 972 | 973 | 974 | 975 | 976 | 977 | 978 | 979 | 980 | 981 | 982 | 983 | 984 | 985 | 986 | 987 | 988 | 989 | 990 | 991 | 992 | 993 | 994 | 995 | 996 | 997 | 998 | 999 | 1000 | 1001 | 1002 | 1003 | 1004 | 1005 | 1006 | 1007 | 1008 | 1011 | 1012 | 1013 | 1014 | 1015 | 1016 | 1017 | 1018 | 1019 | 1020 | 1021 | 1022 | 1023 | 1024 | 1025 | 1026 | 1027 | 1028 | 1029 | 1030 | 1031 | 1032 | 1033 | 1034 | 1035 | 1036 | 1037 | 1038 | 1039 | 1040 | 1041 | 1042 | 1043 | 1044 | 1045 | 1046 | 1047 | 1048 | 1049 | 1050 | 1051 | 1052 | 1053 | 1054 | 1055 | 1056 | 1057 | 1058 | 1059 | 1060 | 1061 | 1062 | 1063 | 1064 | 1065 | 1066 | 1067 | 1068 | 1069 | 1070 | 1071 | 1072 | 1073 | 1074 | 1075 | 1076 | 1077 | 1078 | 1079 | 1080 | 1081 | 1082 | 1083 | 1084 | 1085 | 1086 | 1087 | 1088 | 1089 | 1090 | 1091 | 1092 | 1093 | 1094 | 1095 | 1096 | 1097 | 1098 | 1099 | 1100 | 1101 | 1102 | 1103 | 1104 | 1105 | 1106 | 1107 | 1108 | 1109 | 1110 | 1111 | 1112 | 1113 | 1114 | 1115 | Browser not found, cannot launch the deployed application. Try to set the BROWSER environment variable. 1116 | 1117 | 1118 | Launching ${browse.url} 1119 | 1120 | 1121 | 1122 | 1123 | 1124 | Must select one file in the IDE or set run.class 1125 | 1126 | 1127 | 1128 | Must select one file in the IDE or set run.class 1129 | 1130 | 1131 | 1132 | 1133 | 1134 | 1137 | 1138 | 1139 | 1140 | 1141 | 1142 | 1143 | 1144 | 1145 | 1146 | 1147 | 1148 | 1149 | 1150 | 1151 | 1152 | 1153 | 1154 | 1155 | 1156 | 1157 | 1158 | 1159 | 1160 | 1161 | 1162 | 1163 | 1164 | 1165 | 1166 | 1167 | 1168 | Must select one file in the IDE or set debug.class 1169 | 1170 | 1171 | 1172 | 1173 | 1174 | 1175 | 1176 | 1177 | 1178 | 1179 | 1180 | Must select one file in the IDE or set debug.class 1181 | 1182 | 1183 | 1184 | 1185 | Must set fix.includes 1186 | 1187 | 1188 | 1189 | 1190 | 1191 | 1192 | 1197 | 1200 | 1201 | 1202 | 1203 | 1204 | 1205 | 1206 | 1207 | 1208 | 1209 | 1210 | 1211 | 1212 | 1213 | 1214 | 1215 | 1216 | 1217 | 1218 | 1219 | 1220 | 1221 | 1222 | This target only works when run from inside the NetBeans IDE. 1223 | 1224 | 1225 | 1226 | 1227 | 1228 | 1229 | 1230 | 1231 | 1232 | 1233 | 1234 | 1235 | 1236 | 1237 | 1238 | 1239 | 1240 | 1241 | 1242 | 1243 | 1244 | 1245 | 1246 | 1247 | 1248 | 1249 | 1250 | 1251 | 1252 | 1253 | 1254 | 1255 | 1256 | 1257 | 1258 | 1259 | 1260 | 1261 | 1262 | 1263 | 1264 | 1265 | 1266 | 1267 | 1268 | 1269 | 1270 | 1271 | 1272 | 1273 | 1276 | 1277 | 1278 | 1279 | 1280 | 1281 | 1282 | 1283 | 1284 | 1285 | 1286 | 1287 | 1288 | 1289 | 1290 | 1291 | 1292 | 1293 | 1294 | 1295 | 1296 | 1297 | 1298 | 1299 | 1300 | 1301 | 1302 | 1306 | 1307 | 1308 | 1309 | 1310 | 1311 | 1312 | 1313 | 1314 | 1315 | 1316 | 1317 | 1318 | 1319 | 1320 | 1321 | 1322 | 1323 | 1324 | 1325 | 1326 | 1327 | 1328 | 1329 | 1330 | Must select some files in the IDE or set javac.includes 1331 | 1332 | 1333 | 1334 | 1335 | 1336 | 1337 | 1338 | 1339 | 1340 | 1341 | 1345 | 1346 | 1347 | 1348 | 1349 | 1350 | 1351 | 1352 | Some tests failed; see details above. 1353 | 1354 | 1355 | 1356 | 1357 | 1358 | 1359 | 1360 | 1361 | Must select some files in the IDE or set test.includes 1362 | 1363 | 1364 | 1365 | Some tests failed; see details above. 1366 | 1367 | 1368 | 1369 | Must select some files in the IDE or set test.class 1370 | Must select some method in the IDE or set test.method 1371 | 1372 | 1373 | 1374 | Some tests failed; see details above. 1375 | 1376 | 1377 | 1381 | 1382 | Must select one file in the IDE or set test.class 1383 | 1384 | 1385 | 1386 | Must select one file in the IDE or set test.class 1387 | Must select some method in the IDE or set test.method 1388 | 1389 | 1390 | 1391 | 1392 | 1393 | 1394 | 1395 | 1396 | 1397 | 1398 | 1399 | 1400 | 1404 | 1405 | 1406 | 1407 | 1408 | 1409 | 1410 | 1411 | 1412 | 1413 | 1414 | 1415 | 1416 | 1417 | 1418 | 1419 | 1420 | 1421 | 1422 | 1423 | 1424 | 1425 | 1426 | 1427 | 1428 | 1429 | 1430 | 1431 | -------------------------------------------------------------------------------- /nbproject/genfiles.properties: -------------------------------------------------------------------------------- 1 | build.xml.data.CRC32=00fa9208 2 | build.xml.script.CRC32=4f296ed6 3 | build.xml.stylesheet.CRC32=1707db4f@1.89.0.1 4 | # This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml. 5 | # Do not edit this file. You may delete it but then the IDE will never regenerate such files for you. 6 | nbproject/build-impl.xml.data.CRC32=00fa9208 7 | nbproject/build-impl.xml.script.CRC32=b4a56510 8 | nbproject/build-impl.xml.stylesheet.CRC32=334708a0@1.89.0.1 9 | -------------------------------------------------------------------------------- /nbproject/project.properties: -------------------------------------------------------------------------------- 1 | annotation.processing.enabled=true 2 | annotation.processing.enabled.in.editor=true 3 | annotation.processing.processors.list= 4 | annotation.processing.run.all.processors=true 5 | annotation.processing.source.output=${build.generated.sources.dir}/ap-source-output 6 | build.classes.dir=${build.web.dir}/WEB-INF/classes 7 | build.classes.excludes=**/*.java,**/*.form 8 | build.dir=build 9 | build.generated.dir=${build.dir}/generated 10 | build.generated.sources.dir=${build.dir}/generated-sources 11 | build.test.classes.dir=${build.dir}/test/classes 12 | build.test.results.dir=${build.dir}/test/results 13 | build.web.dir=${build.dir}/web 14 | build.web.excludes=${build.classes.excludes} 15 | client.urlPart= 16 | compile.jsps=false 17 | conf.dir=${source.root}/conf 18 | debug.classpath=${build.classes.dir}:${javac.classpath} 19 | debug.test.classpath=\ 20 | ${run.test.classpath} 21 | display.browser=true 22 | # Files to be excluded from distribution war 23 | dist.archive.excludes= 24 | dist.dir=dist 25 | dist.ear.war=${dist.dir}/${war.ear.name} 26 | dist.javadoc.dir=${dist.dir}/javadoc 27 | dist.war=${dist.dir}/${war.name} 28 | endorsed.classpath=\ 29 | ${libs.javaee-endorsed-api-7.0.classpath} 30 | excludes= 31 | file.reference.mysql-connector-java-8.0.17.jar=/Users/adrianadewunmi/Downloads/jar_files/mysql-connector-java-8.0.17.jar 32 | includes=** 33 | j2ee.compile.on.save=true 34 | j2ee.copy.static.files.on.save=true 35 | j2ee.deploy.on.save=true 36 | j2ee.platform=1.7-web 37 | j2ee.platform.classpath=${j2ee.server.home}/lib/annotations-api.jar:${j2ee.server.home}/lib/catalina-ant.jar:${j2ee.server.home}/lib/catalina-ha.jar:${j2ee.server.home}/lib/catalina-ssi.jar:${j2ee.server.home}/lib/catalina-storeconfig.jar:${j2ee.server.home}/lib/catalina-tribes.jar:${j2ee.server.home}/lib/catalina.jar:${j2ee.server.home}/lib/ecj-4.20.jar:${j2ee.server.home}/lib/el-api.jar:${j2ee.server.home}/lib/jakartaee-migration-1.0.0-shaded.jar:${j2ee.server.home}/lib/jasper-el.jar:${j2ee.server.home}/lib/jasper.jar:${j2ee.server.home}/lib/jaspic-api.jar:${j2ee.server.home}/lib/jsp-api.jar:${j2ee.server.home}/lib/servlet-api.jar:${j2ee.server.home}/lib/tomcat-api.jar:${j2ee.server.home}/lib/tomcat-coyote.jar:${j2ee.server.home}/lib/tomcat-dbcp.jar:${j2ee.server.home}/lib/tomcat-i18n-cs.jar:${j2ee.server.home}/lib/tomcat-i18n-de.jar:${j2ee.server.home}/lib/tomcat-i18n-es.jar:${j2ee.server.home}/lib/tomcat-i18n-fr.jar:${j2ee.server.home}/lib/tomcat-i18n-ja.jar:${j2ee.server.home}/lib/tomcat-i18n-ko.jar:${j2ee.server.home}/lib/tomcat-i18n-pt-BR.jar:${j2ee.server.home}/lib/tomcat-i18n-ru.jar:${j2ee.server.home}/lib/tomcat-i18n-zh-CN.jar:${j2ee.server.home}/lib/tomcat-jdbc.jar:${j2ee.server.home}/lib/tomcat-jni.jar:${j2ee.server.home}/lib/tomcat-util-scan.jar:${j2ee.server.home}/lib/tomcat-util.jar:${j2ee.server.home}/lib/tomcat-websocket.jar:${j2ee.server.home}/lib/websocket-api.jar 38 | j2ee.server.type=Tomcat 39 | jar.compress=false 40 | javac.classpath=\ 41 | ${file.reference.mysql-connector-java-8.0.17.jar} 42 | # Space-separated list of extra javac options 43 | javac.compilerargs= 44 | javac.debug=true 45 | javac.deprecation=false 46 | javac.processorpath=\ 47 | ${javac.classpath} 48 | javac.source=1.7 49 | javac.target=1.7 50 | javac.test.classpath=\ 51 | ${javac.classpath}:\ 52 | ${build.classes.dir} 53 | javac.test.processorpath=\ 54 | ${javac.test.classpath} 55 | javadoc.additionalparam= 56 | javadoc.author=false 57 | javadoc.encoding=${source.encoding} 58 | javadoc.noindex=false 59 | javadoc.nonavbar=false 60 | javadoc.notree=false 61 | javadoc.preview=true 62 | javadoc.private=false 63 | javadoc.splitindex=true 64 | javadoc.use=true 65 | javadoc.version=false 66 | javadoc.windowtitle= 67 | lib.dir=${web.docbase.dir}/WEB-INF/lib 68 | persistence.xml.dir=${conf.dir} 69 | platform.active=default_platform 70 | resource.dir=setup 71 | run.test.classpath=\ 72 | ${javac.test.classpath}:\ 73 | ${build.test.classes.dir} 74 | # Space-separated list of JVM arguments used when running a class with a main method or a unit test 75 | # (you may also define separate properties like run-sys-prop.name=value instead of -Dname=value): 76 | runmain.jvmargs= 77 | source.encoding=UTF-8 78 | source.root=src 79 | src.dir=${source.root}/java 80 | test.src.dir=test 81 | war.content.additional= 82 | war.ear.name=${war.name} 83 | war.name=Event-Management-System-Java.war 84 | web.docbase.dir=web 85 | webinf.dir=web/WEB-INF 86 | -------------------------------------------------------------------------------- /nbproject/project.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | org.netbeans.modules.web.project 4 | 5 | 6 | Event-Management-System-Java 7 | 1.6.5 8 | 9 | 10 | ${file.reference.mysql-connector-java-8.0.17.jar} 11 | WEB-INF/lib 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | -------------------------------------------------------------------------------- /src/conf/MANIFEST.MF: -------------------------------------------------------------------------------- 1 | Manifest-Version: 1.0 2 | 3 | -------------------------------------------------------------------------------- /src/java/AddEvent.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license 3 | * Click nbfs://nbhost/SystemFileSystem/Templates/JSP_Servlet/Servlet.java to edit this template 4 | */ 5 | 6 | import java.io.*; 7 | import jakarta.servlet.*; 8 | import jakarta.servlet.http.*; 9 | import java.sql.Connection; 10 | import java.sql.DriverManager; 11 | import java.sql.SQLException; 12 | import java.sql.Statement; 13 | 14 | /* 15 | * @author adrianadewunmi 16 | * Servlet for adding events to the database 17 | */ 18 | 19 | public class AddEvent extends HttpServlet { 20 | 21 | /** 22 | * Handles the HTTP POST method. 23 | * 24 | * @param request servlet request 25 | * @param response servlet response 26 | * @throws ServletException if a servlet-specific error occurs 27 | * @throws IOException if an I/O error occurs 28 | */ 29 | @Override 30 | protected void doPost(HttpServletRequest request, HttpServletResponse response) 31 | throws ServletException, IOException { 32 | response.setContentType("text/html"); 33 | PrintWriter out = response.getWriter(); 34 | 35 | String a1 = request.getParameter("EventNo"); 36 | String a2 = request.getParameter("EventName"); 37 | String a3 = request.getParameter("coordinatorName"); 38 | String a4 = request.getParameter("CoordinatorNo"); 39 | String a5 = request.getParameter("fee"); 40 | String a6 = request.getParameter("venue"); 41 | String a7 = request.getParameter("date"); 42 | 43 | if(a1.isBlank() && a2.isBlank() && a3.isBlank() && a4.isBlank() && a5.isBlank() && a6.isBlank() && a7.isBlank()){ 44 | response.setContentType("text/html"); 45 | out.println(""); 48 | RequestDispatcher requestDispatcher = request.getRequestDispatcher("CreateE.html"); 49 | requestDispatcher.include(request, response); 50 | }else{ 51 | try{ 52 | Class.forName("com.mysql.cj.jdbc.Driver"); 53 | String conURL = "jdbc:mysql://localhost:3306/EventlyDB"; 54 | String userName = "root"; 55 | String userPassword = "abc"; 56 | Connection con = DriverManager.getConnection(conURL, userName, userPassword); 57 | con.setAutoCommit(false); 58 | 59 | Statement statement = con.createStatement(); 60 | String queryStatement = "insert into Event values('"+a1+"','"+a2+"','"+a3+"','"+a4+"','"+a5+"','"+a6+"','"+a7+"')"; 61 | statement.executeUpdate(queryStatement); 62 | RequestDispatcher requestDispatcher = request.getRequestDispatcher("CreateE.html"); 63 | requestDispatcher.include(request, response); 64 | 65 | // out.println("

Event Added

"); 66 | // System.out.println("Added to the database!!!"); 67 | response.setContentType("text/html"); 68 | out.println(""); 71 | con.commit(); 72 | con.close(); 73 | }catch(ServletException | IOException | ClassNotFoundException | SQLException e){ 74 | System.out.println("Exception caught: " + e); 75 | } 76 | 77 | } 78 | 79 | } 80 | 81 | } 82 | -------------------------------------------------------------------------------- /src/java/LoginDao.java: -------------------------------------------------------------------------------- 1 | 2 | import java.util.logging.Level; 3 | import java.util.logging.Logger; 4 | import java.sql.Connection; 5 | import java.sql.DriverManager; 6 | import java.sql.PreparedStatement; 7 | import java.sql.ResultSet; 8 | import java.sql.SQLException; 9 | 10 | /* 11 | * @author adrianadewunmi 12 | * 13 | */ 14 | 15 | /* 16 | * Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license 17 | * Click nbfs://nbhost/SystemFileSystem/Templates/Classes/Class.java to edit this template 18 | */ 19 | 20 | /** 21 | * 22 | * @author adrianadewunmi 23 | */ 24 | public class LoginDao { 25 | 26 | public static boolean validate(String User_Name, String User_Password) throws SQLException{ 27 | boolean status = false; 28 | try { 29 | Class.forName("com.mysql.cj.jdbc.Driver"); 30 | try (Connection conURL = DriverManager.getConnection("jdbc:mysql://localhost:3306/EventlyDB", "root", "abc")) { 31 | PreparedStatement preparedStatement = 32 | conURL.prepareStatement("select * from plogindetails where User_Name=? and User_Password=?"); 33 | preparedStatement.setString(1, User_Name); 34 | preparedStatement.setString(2, User_Password); 35 | ResultSet resultSet = preparedStatement.executeQuery(); 36 | status = resultSet.next(); 37 | } 38 | } catch (ClassNotFoundException ex) { 39 | Logger.getLogger(LoginDao.class.getName()).log(Level.SEVERE, null, ex); 40 | } 41 | return status; 42 | } 43 | 44 | } 45 | -------------------------------------------------------------------------------- /src/java/Register.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license 3 | * Click nbfs://nbhost/SystemFileSystem/Templates/JSP_Servlet/Servlet.java to edit this template 4 | */ 5 | 6 | import java.io.*; 7 | import jakarta.servlet.*; 8 | import jakarta.servlet.http.*; 9 | import java.sql.Connection; 10 | import java.sql.DriverManager; 11 | import java.sql.SQLException; 12 | import java.sql.Statement; 13 | 14 | /** 15 | * 16 | * @author adrianadewunmi 17 | */ 18 | public class Register extends HttpServlet { 19 | 20 | /** 21 | * Handles the HTTP POST method. 22 | * 23 | * @param request servlet request 24 | * @param response servlet response 25 | * @throws ServletException if a servlet-specific error occurs 26 | * @throws IOException if an I/O error occurs 27 | */ 28 | @Override 29 | protected void doPost(HttpServletRequest request, HttpServletResponse response) 30 | throws ServletException, IOException { 31 | response.setContentType("text/html"); 32 | PrintWriter out = response.getWriter(); 33 | 34 | String a1 = request.getParameter("ename"); 35 | String a2 = request.getParameter("enum"); 36 | String a3 = request.getParameter("cardno"); 37 | String a4 = request.getParameter("edate"); 38 | String a5 = request.getParameter("cvv"); 39 | String a6 = request.getParameter("cname"); 40 | 41 | if(a1.isBlank() && a2.isBlank() && a3.isBlank() && a4.isBlank() && a5.isBlank() && a6.isBlank()){ 42 | response.setContentType("text/html"); 43 | out.println(""); 46 | RequestDispatcher requestDispatcher = request.getRequestDispatcher("Registration.html"); 47 | requestDispatcher.include(request, response); 48 | }else{ 49 | try{ 50 | Class.forName("com.mysql.cj.jdbc.Driver"); 51 | String conURL = "jdbc:mysql://localhost:3306/EventlyDB"; 52 | String dbusername = "root"; 53 | String dbuserpassword = "abc"; 54 | Connection con; 55 | con = DriverManager.getConnection(conURL , dbusername, dbuserpassword); 56 | con.setAutoCommit(false); 57 | Statement statement = con.createStatement(); 58 | String mysqlQuery = "insert into card values('"+a1+"','"+a2+"','"+a3+"','"+a4+"','"+a5+"','"+a6+"') "; 59 | statement.executeUpdate(mysqlQuery); 60 | RequestDispatcher requestDispatcher = request.getRequestDispatcher("Payment.html"); 61 | requestDispatcher.forward(request, response); 62 | con.commit(); 63 | con.close(); 64 | }catch(ServletException | IOException | ClassNotFoundException | SQLException e){ 65 | System.out.println("Exception Caught: " + e); 66 | } 67 | } 68 | 69 | } 70 | 71 | } 72 | -------------------------------------------------------------------------------- /src/java/StoreP.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license 3 | * Click nbfs://nbhost/SystemFileSystem/Templates/JSP_Servlet/Servlet.java to edit this template 4 | */ 5 | 6 | import java.io.*; 7 | import jakarta.servlet.*; 8 | import jakarta.servlet.http.*; 9 | import java.sql.Connection; 10 | import java.sql.DriverManager; 11 | import java.sql.SQLException; 12 | import java.sql.Statement; 13 | 14 | 15 | /** 16 | * @author adrianadewunmi 17 | * Servlet for adding participant username and password to database 18 | */ 19 | public class StoreP extends HttpServlet { 20 | 21 | /** 22 | * Handles the HTTP POST method. 23 | * 24 | * @param request servlet request 25 | * @param response servlet response 26 | * @throws ServletException if a servlet-specific error occurs 27 | * @throws IOException if an I/O error occurs 28 | */ 29 | @Override 30 | protected void doPost(HttpServletRequest request, HttpServletResponse response) 31 | throws ServletException, IOException { 32 | response.setContentType("text/html"); 33 | PrintWriter out = response.getWriter(); 34 | 35 | String participantsName = request.getParameter("Pname"); 36 | String userName = request.getParameter("Pusername"); 37 | String userPassword = request.getParameter("Ppassword"); 38 | String confirmUserPassword = request.getParameter("Cpassword"); 39 | 40 | // EventlyDB, name of table plogindetails 41 | 42 | String a1 = userName; 43 | String a2 = userPassword; 44 | String a3 = confirmUserPassword; 45 | String a4 = participantsName; 46 | 47 | if(a1.isBlank() && a2.isBlank() && a3.isBlank() && a4.isBlank()){ 48 | response.setContentType("text/html"); 49 | out.println(""); 52 | RequestDispatcher requestDispatcher = request.getRequestDispatcher("Psignup.html"); 53 | requestDispatcher.include(request, response); 54 | }else{ 55 | if(a2.equals(a3)){ 56 | try{ 57 | Class.forName("com.mysql.cj.jdbc.Driver"); 58 | String conURL = "jdbc:mysql://localhost:3306/EventlyDB"; 59 | String dbusername = "root"; 60 | String dbuserpassword = "abc"; 61 | Connection con; 62 | con = DriverManager.getConnection(conURL , dbusername, dbuserpassword); 63 | Statement statement = con.createStatement(); 64 | String mysqlQuery = "insert into plogindetails values('"+a1+"','"+a2+"','"+a4+"')"; 65 | statement.executeUpdate(mysqlQuery); 66 | RequestDispatcher requestDispatcher; 67 | requestDispatcher = request.getRequestDispatcher("Plogin.html"); 68 | requestDispatcher.forward(request, response); 69 | con.close(); 70 | }catch(ServletException | IOException | ClassNotFoundException | SQLException e){ 71 | System.out.println(e); 72 | } 73 | }else{ 74 | response.setContentType("text/html"); 75 | out.println(""); 78 | RequestDispatcher requestDispatcher = request.getRequestDispatcher("Psignup.html"); 79 | requestDispatcher.include(request, response); 80 | } 81 | 82 | } 83 | 84 | } 85 | 86 | } 87 | -------------------------------------------------------------------------------- /src/java/TraH.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license 3 | * Click nbfs://nbhost/SystemFileSystem/Templates/JSP_Servlet/Servlet.java to edit this template 4 | */ 5 | 6 | import java.io.*; 7 | import jakarta.servlet.*; 8 | import jakarta.servlet.http.*; 9 | import java.sql.Connection; 10 | import java.sql.DriverManager; 11 | import java.sql.ResultSet; 12 | import java.sql.SQLException; 13 | import java.sql.Statement; 14 | 15 | /** 16 | * 17 | * @author adrianadewunmi 18 | */ 19 | public class TraH extends HttpServlet { 20 | 21 | /** 22 | * Handles the HTTP POST method. 23 | * 24 | * @param request servlet request 25 | * @param response servlet response 26 | * @throws ServletException if a servlet-specific error occurs 27 | * @throws IOException if an I/O error occurs 28 | */ 29 | @Override 30 | protected void doGet(HttpServletRequest request, HttpServletResponse response) 31 | throws ServletException, IOException { 32 | response.setContentType("text/html"); 33 | PrintWriter out = response.getWriter(); 34 | 35 | out.println(""); 36 | out.println(""); 37 | out.println(""); 38 | out.println("

Welcome To Evently ... An Event Management Portal!

"); 39 | out.println(" Transactions Page"); 40 | out.println(""); 41 | out.println(""); 42 | out.println(""); 43 | out.println(""); 44 | 45 | try{ 46 | Class.forName("com.mysql.cj.jdbc.Driver"); 47 | String conURL = "jdbc:mysql://localhost:3306/EventlyDB"; 48 | String dbusername = "root"; 49 | String dbuserpassword = "abc"; 50 | Connection con; 51 | con = DriverManager.getConnection(conURL , dbusername, dbuserpassword); 52 | con.setAutoCommit(false); 53 | Statement statement = con.createStatement(); 54 | ResultSet resultSet = statement.executeQuery("select * from card"); 55 | 56 | out.println("

Transaction Details

"); 57 | out.println("
"); 58 | out.println("

"); 59 | out.println("
"); 60 | out.println(""); 61 | out.println(""); 62 | 63 | while(resultSet.next()){ 64 | 65 | String en = resultSet.getString("Event_Number"); 66 | String re = resultSet.getString("Event_Name"); 67 | String pd = resultSet.getString("Expiry_Date"); 68 | String name = resultSet.getString("Card_Name"); 69 | 70 | out.println(""); 71 | 72 | } 73 | 74 | con.commit(); 75 | con.close(); 76 | out.println("
Event NoEvent NameNamePayment Date
" + en + "" + re + ""+name+"" + pd +"
"); 77 | out.println("
"); 78 | out.println("
"); 79 | out.println("
"); 80 | out.print(""); 81 | out.print(""); 82 | 83 | }catch(ClassNotFoundException | SQLException e){ 84 | System.out.println("Exception Caught: " + e); 85 | } 86 | 87 | } 88 | 89 | 90 | } 91 | -------------------------------------------------------------------------------- /src/java/VaPa.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license 3 | * Click nbfs://nbhost/SystemFileSystem/Templates/JSP_Servlet/Servlet.java to edit this template 4 | */ 5 | 6 | /** 7 | /* 8 | * @author adrianadewunmi 9 | * Participant Login Validation Servlet 10 | * for registering new participants. 11 | */ 12 | 13 | import java.io.*; 14 | import jakarta.servlet.*; 15 | import jakarta.servlet.http.*; 16 | import java.sql.SQLException; 17 | import java.util.logging.Level; 18 | import java.util.logging.Logger; 19 | 20 | /** 21 | * 22 | * @author adrianadewunmi 23 | */ 24 | public class VaPa extends HttpServlet { 25 | 26 | // 27 | /** 28 | * Handles the HTTP POST method. 29 | * 30 | * @param request servlet request 31 | * @param response servlet response 32 | * @throws ServletException if a servlet-specific error occurs 33 | * @throws IOException if an I/O error occurs 34 | */ 35 | @Override 36 | protected void doPost(HttpServletRequest request, HttpServletResponse response) 37 | throws ServletException, IOException { 38 | response.setContentType("text/html"); 39 | try (PrintWriter out = response.getWriter()) { 40 | String userName = request.getParameter("Pausername"); 41 | String userPassword = request.getParameter("Papassword"); 42 | 43 | if(userName.isBlank() && userPassword.isBlank()){ 44 | response.setContentType("text/html"); 45 | out.println(""); 48 | RequestDispatcher requestDispatcher = request.getRequestDispatcher("Plogin.html"); 49 | requestDispatcher.include(request, response); 50 | }else{ 51 | try { 52 | if(LoginDao.validate(userName, userPassword)){ 53 | RequestDispatcher requestDispatcher = request.getRequestDispatcher("ParticipantEvent.html"); 54 | requestDispatcher.forward(request, response); 55 | }else{ 56 | response.setContentType("text/html"); 57 | out.println(""); 60 | RequestDispatcher requestDispatcher = request.getRequestDispatcher("Plogin.html"); 61 | requestDispatcher.include(request, response); 62 | } 63 | } catch (SQLException ex) { 64 | Logger.getLogger(VaPa.class.getName()).log(Level.SEVERE, null, ex); 65 | } 66 | } 67 | 68 | } 69 | } 70 | 71 | } 72 | -------------------------------------------------------------------------------- /src/java/ValidateAd.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license 3 | * Click nbfs://nbhost/SystemFileSystem/Templates/JSP_Servlet/Servlet.java to edit this template 4 | */ 5 | 6 | /** 7 | * @author adrianadewunmi 8 | * Admin Login Validation Servlet 9 | * for administrator login 10 | */ 11 | 12 | import java.io.*; 13 | import jakarta.servlet.*; 14 | import jakarta.servlet.http.*; 15 | 16 | /** 17 | * 18 | * @author adrianadewunmi 19 | */ 20 | public class ValidateAd extends HttpServlet { 21 | /** 22 | * Handles the HTTP POST method. 23 | * 24 | * @param request servlet request 25 | * @param response servlet response 26 | * @throws ServletException if a servlet-specific error occurs 27 | * @throws IOException if an I/O error occurs 28 | */ 29 | @Override 30 | protected void doPost(HttpServletRequest request, HttpServletResponse response) 31 | throws ServletException, IOException { 32 | // Fetch username and password 33 | try (PrintWriter printWriterOut = response.getWriter()) { 34 | // Fetch username and password 35 | String userName = request.getParameter("Ausername"); 36 | String userPassword = request.getParameter("Apassword"); 37 | 38 | response.setContentType("text/html"); 39 | 40 | // List of Admin usernames and password 41 | String adminUserOne = "A101"; 42 | String adminUserOnePassword = "Admin101"; 43 | 44 | String adminUserTwo = "A202"; 45 | String adminUserTwoPassword = "Admin202"; 46 | 47 | String adminUserThree = "A303"; 48 | String adminUserThreePassword = "Admin303"; 49 | 50 | String adminUserFour = "A404"; 51 | String adminUserFourPassword = "Admin404"; 52 | 53 | // Check for valid username and password 54 | if(userName.equals(adminUserOne) && userPassword.equals(adminUserOnePassword)){ 55 | RequestDispatcher requestDispatcher = request.getRequestDispatcher("AdminEvent.html"); 56 | requestDispatcher.forward(request, response); 57 | }else if(userName.equals(adminUserTwo) && userPassword.equals(adminUserTwoPassword)){ 58 | RequestDispatcher requestDispatcher = request.getRequestDispatcher("AdminEvent.html"); 59 | requestDispatcher.forward(request, response); 60 | }else if(userName.equals(adminUserThree) && userPassword.equals(adminUserThreePassword)){ 61 | RequestDispatcher requestDispatcher = request.getRequestDispatcher("AdminEvent.html"); 62 | requestDispatcher.forward(request, response); 63 | }else if(userName.equals(adminUserFour) && userPassword.equals(adminUserFourPassword)){ 64 | RequestDispatcher requestDispatcher = request.getRequestDispatcher("AdminEvent.html"); 65 | requestDispatcher.forward(request, response); 66 | // If username and password are invalid, enter else 67 | }else{ 68 | //printWriterOut.println("

Please Enter Valid Username & Password for Admin!!!

"); 69 | response.setContentType("text/html"); 70 | printWriterOut.println(""); 73 | RequestDispatcher requestDispatcher = request.getRequestDispatcher("Alogin.html"); 74 | requestDispatcher.include(request, response); 75 | } 76 | } 77 | } 78 | 79 | } 80 | -------------------------------------------------------------------------------- /src/java/ViewEvent1.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license 3 | * Click nbfs://nbhost/SystemFileSystem/Templates/JSP_Servlet/Servlet.java to edit this template 4 | */ 5 | 6 | import java.io.*; 7 | import jakarta.servlet.*; 8 | import jakarta.servlet.http.*; 9 | import java.sql.Connection; 10 | import java.sql.DriverManager; 11 | import java.sql.ResultSet; 12 | import java.sql.SQLException; 13 | import java.sql.Statement; 14 | 15 | /** 16 | * 17 | * @author adrianadewunmi 18 | * This Servelet is used for registering events by participants. 19 | */ 20 | 21 | public class ViewEvent1 extends HttpServlet { 22 | 23 | /** 24 | * Handles the HTTP POST method. 25 | * 26 | * @param request servlet request 27 | * @param response servlet response 28 | * @throws ServletException if a servlet-specific error occurs 29 | * @throws IOException if an I/O error occurs 30 | */ 31 | @Override 32 | protected void doGet(HttpServletRequest request, HttpServletResponse response) 33 | throws ServletException, IOException { 34 | 35 | response.setContentType("text/html"); 36 | PrintWriter out = response.getWriter(); 37 | 38 | out.println(""); 39 | out.println(""); 40 | out.println("Event Page"); 41 | out.println(""); 42 | out.println(""); 43 | out.println(""); 44 | out.println(""); 45 | 46 | try{ 47 | Class.forName("com.mysql.cj.jdbc.Driver"); 48 | String conURL = "jdbc:mysql://localhost:3306/EventlyDB"; 49 | String dbusername = "root"; 50 | String dbuserpassword = "abc"; 51 | Connection con; 52 | con = DriverManager.getConnection(conURL , dbusername, dbuserpassword); 53 | con.setAutoCommit(false); 54 | response.setContentType("text/html"); 55 | Statement statement = con.createStatement(); 56 | ResultSet resultSet = statement.executeQuery("select * from Event"); 57 | out.println("

Welcome To Evently ... An Event Management Portal!

"); 58 | out.println("

Event Details

"); 59 | out.println("
"); 60 | out.println("
"); 61 | out.println(""); 62 | out.println(""); 63 | //request.getParameter 64 | while(resultSet.next()){ 65 | String n = resultSet.getString("Event_Number"); 66 | String nm = resultSet.getString("Event_Name"); 67 | String co = resultSet.getString("Coordinator_Name"); 68 | String cono = resultSet.getString("Coordinator_Number"); 69 | String f = resultSet.getString("Fee"); 70 | String v = resultSet.getString("Venue"); 71 | String d = resultSet.getString("Date"); 72 | out.println(""); 73 | 74 | } 75 | 76 | con.commit(); 77 | con.close(); 78 | out.println("
Event NumberEvent NameCoordinatorCoordinator ContactFeesVenueDate
" + n + "" + nm +""+co+""+cono+""+f+""+v+""+d+"
"); 79 | out.println("
"); 80 | out.println("
"); 81 | out.println(""); 82 | out.println("
"); 83 | out.println(""); 84 | out.println("
"); 85 | out.print(""); 86 | out.print(""); 87 | 88 | }catch(ClassNotFoundException | SQLException e){ 89 | System.out.println("Exception Caught: " + e); 90 | } 91 | } 92 | 93 | } 94 | -------------------------------------------------------------------------------- /web/AdminEvent.html: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 8 | 9 | Event Management: Administrator Page 10 | 11 | 12 |

Welcome To Evently ... An Event Management Portal!

13 | 14 | 15 |

!! Welcome !!

16 | 17 | 18 |
19 | 20 | 21 | 22 |
23 | Events 24 |
25 |
26 |

For Event Details

27 |
28 | 29 |
30 |


31 |
32 | Trans 33 |
34 |
35 |
36 |

For Transaction Details

37 |
38 | 39 |
40 |
41 | 44 |
45 | 46 | 47 | -------------------------------------------------------------------------------- /web/Alogin.html: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 8 | 9 | Admin Login Page 10 | 11 | 12 |

Welcome To Evently ... An Event Management Portal!

13 | 14 | 15 | 16 | 17 |
18 | 19 |

20 | 21 |

22 |
23 |

Admin Login Page

24 |
25 |
26 | Username:

27 |

28 | Password:

29 |

30 | 31 |

32 |
33 |
34 |
35 | 38 |
39 | 40 | 41 | -------------------------------------------------------------------------------- /web/CreateE.html: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 8 | 9 |

Welcome To Evently ... An Event Management Portal!

10 | 11 | 12 | Create Event 13 | 14 | 15 |

Add Events

16 | 17 | 18 |
19 |

20 |
21 |
22 | Event Number:

23 |

24 | Event Name:

25 |

26 | Coordinator Name:

27 |

28 | Coordinator Number:

29 |

30 | Fee for registration:

31 |

32 | Venue of event:

33 |

34 | Date of event:

35 |

36 | 37 |
38 |
39 |
40 |
41 | 44 |
45 | 46 | 47 | -------------------------------------------------------------------------------- /web/EventDetails.html: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 8 | 9 | 10 | Events Details 11 |

Welcome To Evently ... An Event Management Portal!

12 | 13 | 14 |

Event Management

15 | 16 | 17 | 18 | 19 |

20 |
21 |

1. View Available Events

22 | 23 |

24 | 25 |

2. Create New Event

26 | 27 |

28 |
29 |
30 | 33 |
34 | 35 | 36 | -------------------------------------------------------------------------------- /web/META-INF/context.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /web/Parlogin.html: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 8 | 9 |

Welcome To Evently ... An Event Management Portal!

10 | 11 | 12 | Participant's Login Page 13 | 14 | 15 |

Participant's Login Page

16 | 17 | 18 |
19 | 20 | 21 | 22 |
23 |

Create account if you are a new user


24 | 25 |
26 |


27 |

Already a user!!! Please login

28 | 29 |
30 |
31 |
32 | 35 |
36 | 37 | 38 | -------------------------------------------------------------------------------- /web/ParticipantEvent.html: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 8 | 9 | 10 | Page For Event Registration 11 |

Welcome To Evently ... An Event Management Portal!

12 | 13 | 14 | 15 | 16 |

!! Welcome All Participants !!

17 | 18 | 19 | 20 | 21 | 22 |


23 |

24 |
25 |

View Events / Register For Event

26 |

1. View Events

27 |
28 | 29 |

30 |

31 |

2.Register For Event

32 | 33 |

34 |
35 |
36 | 39 |
40 | 41 | 42 | -------------------------------------------------------------------------------- /web/Payment.html: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 8 | 9 | 10 | Payment Page 11 | 12 | 13 |

Welcome To Evently ... An Event Management Portal!

14 |

Welcome To Payment Portal

15 | 16 | 17 | 18 | 19 |
20 |

21 |
22 |

Payment Successful!!

23 |
24 |
25 |
26 | 29 |
30 | 31 | 32 | -------------------------------------------------------------------------------- /web/Plogin.html: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 8 | 9 |

Welcome To Evently ... An Event Management Portal!

10 | 11 | 12 | Participant Login 13 | 14 |
15 |

Login as an existing user

16 | 17 | 18 |
19 | 20 | 21 | 22 |
23 |

Please enter your details below

24 |
25 |
26 | Username:

27 |

28 | Password:

29 |


30 | 31 |
32 |
33 |
34 |
35 |
36 | 39 |
40 | 41 | 42 | -------------------------------------------------------------------------------- /web/Psignup.html: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 8 | 9 |

Welcome To Evently ... An Event Management Portal!

10 | 11 | 12 | Participant Login 13 | 14 | 15 |

Sign Up as New User!!!

16 | 17 | 18 |
19 | 20 | 21 | 22 |

Please enter your details below

23 |
24 |
25 | Name:

26 |

27 | Username:

28 |

29 | Password:

30 |

31 | Confirm Password:

32 |

33 |

34 | 35 |
36 |
37 |
38 |
39 | 42 |
43 | 44 | 45 | -------------------------------------------------------------------------------- /web/Registration.html: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | Register for Event 14 |

Welcome To Evently ... An Event Management Portal!

15 | 16 | 17 | 18 | 19 |
20 | 21 |

22 | 23 |

24 |
25 |
26 |
27 |

Event Registration

28 |
29 |
30 |
31 |
32 | Enter Event Name:

33 |

34 | Enter Event No:

35 |

36 | Enter Card No:

37 |

38 | Enter Expiry Date:

39 |

40 | Enter CVV No:

41 |

42 | Enter Card Holder's Name:

43 |

44 | 45 |
46 |
47 |
48 |
49 | 52 |
53 | 54 | 55 | -------------------------------------------------------------------------------- /web/TransactionDetails.html: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 8 | 9 | 10 | 11 | Transaction Details 12 |

Welcome To Evently ... An Event Management Portal!

13 | 14 | 15 |

Transaction Details:

16 | 17 | 18 |

View Transaction Details.

19 |
20 | 21 |
22 | 23 |

24 |

25 |

26 | 27 |
28 |

View Transaction Details

29 | 30 |

31 |
32 |
33 |
34 |
35 | 38 |
39 | 40 | 41 | -------------------------------------------------------------------------------- /web/WEB-INF/web.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | ValidateAd 5 | ValidateAd 6 | 7 | 8 | StoreP 9 | StoreP 10 | 11 | 12 | VaPa 13 | VaPa 14 | 15 | 16 | AddEvent 17 | AddEvent 18 | 19 | 20 | ViewEvent1 21 | ViewEvent1 22 | 23 | 24 | Register 25 | Register 26 | 27 | 28 | TraH 29 | TraH 30 | 31 | 32 | ValidateAd 33 | /ValidateAd 34 | 35 | 36 | StoreP 37 | /StoreP 38 | 39 | 40 | VaPa 41 | /VaPa 42 | 43 | 44 | AddEvent 45 | /AddEvent 46 | 47 | 48 | ViewEvent1 49 | /ViewEvent1 50 | 51 | 52 | Register 53 | /Register 54 | 55 | 56 | TraH 57 | /TraH 58 | 59 | 60 | 61 | 30 62 | 63 | 64 | 65 | -------------------------------------------------------------------------------- /web/admin.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AAdewunmi/Event-Management-System-Java/3fa42e3025afb2ad4ff42c9e35f74047d736c7dc/web/admin.png -------------------------------------------------------------------------------- /web/index.html: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 8 | 9 | Login Page 10 | 11 | 12 |

Welcome To Evently ... An Event Management Portal!

13 | 14 | 15 | 16 | 17 | 18 |

Please choose the below links to login to your account.

19 |
20 | 21 |
22 |
23 | Admin Image 24 |
25 |
26 |

Admin Login

27 |

28 | 29 |

30 |
31 |
32 | Participant Image 33 |
34 |
35 |

For Participants Of Events

36 | 37 |
38 |
39 |
40 |
41 | 42 | 43 | 44 | 45 | 46 | 47 | 50 |
51 | 52 | 53 | -------------------------------------------------------------------------------- /web/part.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AAdewunmi/Event-Management-System-Java/3fa42e3025afb2ad4ff42c9e35f74047d736c7dc/web/part.png -------------------------------------------------------------------------------- /web/screenshot.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AAdewunmi/Event-Management-System-Java/3fa42e3025afb2ad4ff42c9e35f74047d736c7dc/web/screenshot.jpeg -------------------------------------------------------------------------------- /web/total.css: -------------------------------------------------------------------------------- 1 | /* 2 | Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license 3 | Click nbfs://nbhost/SystemFileSystem/Templates/JSP_Servlet/CascadeStyleSheet.css to edit this template 4 | */ 5 | /* 6 | Created on : 5 Apr 2022, 10:26:05 7 | Author : adrianadewunmi 8 | */ 9 | *{ 10 | border-width:0; 11 | font-style: normal; 12 | color: white; 13 | font-family: 'Balsamiq Sans', cursive; 14 | } 15 | 16 | html{ 17 | background-image: url('https://wintertime.com.my/wp-content/uploads/2019/07/event-production-company-p2-entertainment-group-1.jpg'); 18 | background-repeat: no-repeat; 19 | background-size: 110%; 20 | background-opacity: 70%; 21 | background-color: black; 22 | } 23 | 24 | h1{ 25 | background-image:url('https://cdn.wallpapersafari.com/75/49/lg7sK4.png'); 26 | box-shadow: 0 0 40px #5ee4ff; 27 | background-color: black; 28 | border: 1px solid; 29 | width: 50%; 30 | margin-left: 22%; 31 | margin-right: 25%; 32 | margin-top: 30px; 33 | padding: 20px; 34 | border-radius: 30px; 35 | } 36 | 37 | h4{ 38 | background-image:url('https://cdn.wallpapersafari.com/75/49/lg7sK4.png'); 39 | box-shadow: 0 0 40px #5ee4ff; 40 | background-color: black; 41 | border: 1px solid; 42 | width: 50%; 43 | margin-left: 22%; 44 | margin-right: 25%; 45 | margin-top: 30px; 46 | padding: 20px; 47 | border-radius: 30px; 48 | color: red; 49 | } 50 | 51 | #common{ 52 | box-shadow: 0 0 40px #5ee4ff; 53 | background-color: black; 54 | border: 1px solid; 55 | width: 50%; 56 | margin-left: 22%; 57 | margin-right: 25%; 58 | margin-top: 20px; 59 | padding: 20px; 60 | border-radius: 30px; 61 | } 62 | 63 | h4{ 64 | font-size: 25px; 65 | } 66 | 67 | button{ 68 | padding: 15px; 69 | font-weight: bold; 70 | font-size: 100%; 71 | width: 170px; 72 | text-align:center; 73 | padding-top: 10px; 74 | color: black; 75 | background-color:#5ee4ff; 76 | height: 49px; 77 | align-self: center; 78 | border-radius: 10px; 79 | box-shadow: 0 0 20px #5ee4ff ; 80 | } 81 | 82 | button:hover{ 83 | background: #5ee4ff; 84 | color: black; 85 | box-shadow: 0 0 40px #5ee4ff ; 86 | } 87 | 88 | div{ 89 | background-image:url('https://cdn.wallpapersafari.com/75/49/lg7sK4.png'); 90 | background-color: black; 91 | box-shadow: 0 0 40px #5ee4ff; 92 | width: 50%; 93 | margin-left: 20%; 94 | margin-right: 20%; 95 | border: 5px solid; 96 | border-radius: 50px; 97 | padding: 50px; 98 | } 99 | 100 | 101 | #text{ 102 | width: 150px; 103 | height: 30px; 104 | border-radius: 10px; 105 | color: black; 106 | font-size: 15px; 107 | } 108 | #sub{ 109 | padding: 15px; 110 | font-weight: bold; 111 | font-size: 100%; 112 | width: 170px; 113 | text-align:center; 114 | padding-top: 10px; 115 | color: black; 116 | background-color:#5ee4ff; 117 | height: 40px; 118 | align-self: center; 119 | border-radius: 10px; 120 | box-shadow: 0 0 20px #5ee4ff ; 121 | } 122 | 123 | #sub:hover{ 124 | background: #5ee4ff; 125 | color: black; 126 | box-shadow: 0 0 40px #5ee4ff ; 127 | } 128 | 129 | .fa { 130 | padding: 20px; 131 | font-size: 30px; 132 | width: 15px; 133 | text-align: center; 134 | text-decoration: none; 135 | margin: 5px 2px; 136 | border-radius: 50%; 137 | } 138 | 139 | .fa:hover { 140 | opacity: 0.7; 141 | } 142 | 143 | .fa-facebook { 144 | background: #3B5998; 145 | color: white; 146 | } 147 | 148 | .fa-twitter { 149 | background: #55ACEE; 150 | color: white; 151 | } 152 | 153 | .fa-youtube { 154 | background: #bb0000; 155 | color: white; 156 | } 157 | 158 | .fa-instagram { 159 | background: #125688; 160 | color: white; 161 | } 162 | 163 | .fa-pinterest { 164 | background: #cb2027; 165 | color: white; 166 | } 167 | 168 | .fa-snapchat-ghost { 169 | background: #fffc00; 170 | color: white; 171 | text-shadow: -1px 0 black, 0 1px black, 1px 0 black, 0 -1px black; 172 | } 173 | .fa-rss { 174 | background: #ff6600; 175 | color: white; 176 | } 177 | 178 | .topnav-right { 179 | float: right; 180 | } 181 | 182 | 183 | --------------------------------------------------------------------------------