SOFENGG GUIDES (IMPORTANT PLEASE READ)
Below will be our reference on how to set up the server and libraries needed for the project.
Please follow them THOROUGHLY. Especially the "Web-Libraries" name as our User library. Having different user library name would cause problems with the server.
Note: Before doing Mysql related guide, follow JSTL guide first.
TOMCAT Related
Downloading TOMCAT
- Download it here: https://tomcat.apache.org/download-80.cgi#8.0.47
- Scroll down till "8.0.47"
- Click the zip under CORE to download it.
- Extract the zip.
Installing TOMCAT
- Right click SOFENGG
- Click run as
- Click run on server
- Click Apache
- Clic Tomcat v8.0 Server
- Check "Always use this server when running this project"
- Press next
- Select the "apache-tomcat-8.0.47" folder as the installation directory.
- Click finish.
Servlet Related
Servlets will cause a error if you haven't fixed the libraries under java resource
- To fix it, right click on SOFENGG, click build path.
- Click configure build path
- Click add library
- click server runtime, then click Apache tomcat v8.0
- click finish.
6.Click apply and close.
JSTL Related
JSTL may also cause an error if libraries arent fixed.
- To fix it, Download jstl-1.2:https://tomcat.apache.org/taglibs/standard/
- Right click on SOFENGG, click build path.
- Click configure build path
- Click Add library
- Click User libraries
- Click new
- IMPORTANT, Name the library: Web-Libraries.
- Select Web-Libraries and click "add jars"
- Select "jstl-1.2"
- Click apply and close.
- Now Go to SOFENGG>WebContent>WEB-INF>Lib
- Copy paste the jstl-1.2 to Lib
MySql Related
MySql Connector
Download the connector here: https://dev.mysql.com/downloads/connector/j/5.1.html
- Extract zip file.
- Copy mysql-connector-java.5.1.44-bin.jar to SOFENGG>WebContent>WEB-INF>lib
- Right click SOFENGG
- click build path
- click configure build path
- click libraries
- Click Web-Libraries
- click edit
- click user libraries
- click add external JARS
- add the mysql-connector-java.5.1.44-bin.jar, then click apply and close
- click finish.
Great MYSQL guide: https://www.youtube.com/watch?v=2i4t-SL1VsU&t=7s
How to use JSTL:
To use jstl, place this on the very top of your JSP page (Before the !DOCTYPE):
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core %>
Full JSTL tags guide: https://www.tutorialspoint.com/jsp/jsp_standard_tag_library.htm