Situation: In the code below I'm attempting to learn how to use form parameters specifically redirecting
Java servlets by propagating
string query parameters.
Problem: I can't seem to figure out why I'm facing a problem with re-directing the user from the form i.e. index.html using the desired string query paramters to the correct page.
Below are the steps I took before posting this up:
I made sure the URL
pattern for the @WebServlet annotation is correct i.e. in my case /CityManagerWebStarter/mainmenuresponder.do
I made sure my content-root when looking at the URL is correct i.e. /CityManagerWebStarter and I can confirm this as when I launchthe following URL
http://localhost:8080/CityManagerWebStarter/ it displays the index.html page as expected.
Below is my servlet code and following that is my index.html code and ListCities.html is an example of a page I'm attempting to re-direct the user to:
servlet code:
index.html:
ListCities.html:
I forgot to add my descriptor file content.
Thanks for any suggestions/help.