This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
Darine, What does the error say exactly? When do you get the error? I think you have a problem with the configuration of the JSP/Servlet engine, since these files will compile and run just fine on my machine. Also, to comment on your code:
It shouldn't read action="POST". If you want to post the info, the correct attribute is method.
The form in login.jsp has no submit button, so there is no way to send the data to response10.jsp. You need a submit button inside the <form></form> tags.
I also not quite sure why you need all the table rows and cells, you could get more bang for your buck and make your stuff easier to read without it. If you want to make it in a table, you could use cell padding or spacing and less <tr><td></td></tr>. This first file could be named .html and it would work exactly the same as static content. In the second .jsp, you get the value id from the form, but the way you are trying to display it won't work.
This will make a text box with the letter s inside. You need to have <%...%> to access the java variables. You could change it to:
Or since it isn't going to be submitted to anything, you could drop the textbox and <form></form> tags altogether and do something like this.
None of this will solve the error you are getting, but it should help once you get the server configured. Also, understanding html is fundamental to 90% of what you are going to do with servlets and 99.99% of .jsp. So getting a better grasp of this technology will be invaluable. There are lots of resources, I suggest webmonkey.com. I'm always using their html cheatsheet. They have tutorials for more html than you want to know. Happy coding Andrew P.S. Give us more information about the server you are trying to run the files on and the specifics of the message you receive.