So what I\'m basically trying to do here is get a list of hotels in JSP , from the servlet , without any forms.
This is my JSP:
<%@ page language=
You simply need a link to your servlet:
Click here to list the hotels
You can also invoke the servlet by typing its address in the address bar of your browser:
http://localhost:8080/yourWebApp/yourServlet
The code of your servlet is fine, and the code of the JSP as well.
The servlet is mapped to some URL (/yourServlet in my example) thanks to a element in the web.xml, or thanks to a @WebServlet annotation on the servlet class.