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.java
Ensure that the $JAVA_HOME
variable is set and run the server using the command:
./Apache-Tomcat/bin/startup.sh
After 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.sh
Feel free to customize it further according to your preferences or additional instructions! 🚀