I have this code on my JSP page
<form action="LoginServlet" method="get">
<input type="text" name="username" />
<input type="text" name="password" />
<input type="submit" value="Submit" />
</form>
and when I press Submit I get:
The page cannot be displayed The page you are looking for is currently unavailable. The Web site might be experiencing technical difficulties, or you may need to adjust your browser settings.
and LoginServlet.doGet
method doesn't get called.
But then when I press Enter again (in address bar) my doGet
method gets called.
What is wrong? I am using JEE eclipse and Tomcat