JSP+JDBC+XAMPP(MySQL)+NetBeans

JSP+JDBC+XAMPP(MySQL)+NetBeans

GitHub URL
Text
Tags
jsp
java
mysql
Live
Created
Aug 17, 2022 05:05 PM
  • Create a new project in NetBeans
  • Add my sql connector under the Libraries folder by clicking Add JAR/Folder
notion image
download the mysql connector jar file (Iโ€™m using 8.0.17 version)
  • Add this jar file to the Tomcat/lib folder (to avoid 500 HTTP code errors in JSP file)
  • Then , create a database in by initializing the xampp server by starting the MySql
notion image
  • Create database and table of your choice
  • Then , in netbeans create database to get the connection link for your jsp file
    notion image

    All Set good to go!!๐Ÿš€

     
    Now , create html or jsp files for your project on your own to connect JSPโ†’JDBC(MySql)
    To start off letโ€™s create registration forms and make entries and store it in the database for demo to check whether everything is working properly
     
    Eg:
    โ—
    keep the file names as it is as they invoked inside the code suits.If you wish to change the file name donโ€™t forget to update the file names inside the code blocks
     
    Once all set, now run the file from index.html page .VOILA!!๐ŸŽ‰ Everything works perfect..โšก