1. Create a Servlet subclassing "strictly" generic Servlet (as opposed to HttpServlet).
2. Pass a value from the servlet to a newer HTML page.
3. Display the message from the servlet on the HTML page. If there is no message, display null (nothing).
1. At the servlet side, I am passing info through URL like this:
There could be other simpler ways to do the same. I would like to know about them, if any!
I hope the above code really helps someone out there, I spent A LOT and A LOT of time to figure this out, there was not any helpful internet resource to figure out the above!
The goal of the servlet is to send a response to whatever requested it in the first place.