Problem getting the Beer Selection Page screen shot
I am trying to do the Beer Selection Program in page 77 (HFSJ book).
When I type http://localhost:8080/Beer-v1/form.html in my browser, I only get the html file and not the actual screen shot.
I searched the forum for this type of problem and I couldn't solve it.
Can anybody please help me.
But I'm getting the following page:
I don't know what's wrong!
<h1 align="center">Beer Selection Page</h1>
Select beer characteristics
<select name="color" size="1">
<option value="light"> light </option>
<option value="amber"> amber </option>
<option value="brown"> brown </option>
<option value="dark"> dark </option>
</form> </body> </html>
If you are creating a html file using notepad then the possibility is that you have saved it as html file but if you do not select "all" for "save as type" drop down and do not enclosed the name of the file in double quotes then notepad will add a .txt extention to the file and browser will render that file as as a normal text file.
I created again those files using notepad and saved it like you said. (Before I didn't use notepad to create these files).
Then only I noticed, the web.xml file was saved as web.html. May be this was the problem.
Now it works fine. Thanks again.
Thanks everybody for your replies.