This project comprises a web application with a front-end designed by Binary-Shade and a back-end developed by IN4111.
Ensure the Servlet folder is placed in the following directory structure:
.
βββ Apache-Tomcat
β βββ lib
β β βββ servlet-api.jar
β βββ conf
β β βββ server.xml
β βββ webapps
β βββ XpertBPOSolutions
β βββ WEB-INF
β β βββ classes
β β β βββ BPOServlet.java
β β β βββ BPOServlet.class
β β βββ web.xml
β βββ index.html
β βββ script.js
β βββ style.css
2024-03-03.14-46-21.mp4
Navigate to the Apache-Tomcat/webapps/WEB-INF/classes directory and compile the servlet Java class BPOServlet.java using the following command:
javac -cp ../../../../lib/servlet-api.jar BPOServlet.javaEnsure that the $JAVA_HOME variable is set and run the server using the command:
./Apache-Tomcat/bin/startup.shAfter compiling the Servlet class and running the Apache server, access the home page at http://localhost:8888/XpertBPOSolutions/index.html.
To change the port number, open the server.xml file located in Apache-Tomcat/conf/server.xml and modify the port number specified within the <Connector> tag. After making changes, restart the server.
<Connector port="8888" protocol="HTTP/1.1"
connectionTimeout="20000"
redirectPort="8443"
maxParameterCount="1000"
/>To shut down the server, execute the following command:
./Apache-Tomcat/bin/shutdown.shFeel free to customize it further according to your preferences or additional instructions! π