JSP doGet not called from form
Posted
by RadnaOdela
on Stack Overflow
See other posts from Stack Overflow
or by RadnaOdela
Published on 2010-05-03T12:10:15Z
Indexed on
2010/05/03
12:18 UTC
Read the original article
Hit count: 284
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
© Stack Overflow or respective owner