• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

servlet doesn't invoke (page not found displayed)

 
javahelp
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I have login page which calls my servlet.
login.html and LoginHandler.class
they are placed in
appname/servlets/login.html
and appname/web-info/classes/LoginHandler.class
but when I try to login i get error page who points to http://localhost:8100/servlet/LoginHandler
and says "Page Can not be displayed"
What could be wrong?My servlet is fine it is compiled and just it sends every other user valid user.

login.html
=================================================================
<HTML>
<TITLE>Login</TITLE>
<BODY>
<FORM ACTION='/servlet/LoginHandler' METHOD='POST'>
<CENTER>
<TABLE BORDER=1>
<TR><TD COLSPAN=2>
<P ALIGN=CENTER>
Welcome! Please enter your Name<br>
and Password to log in.
</TD></TR>
<TR><TD>
<P ALIGN=RIGHT><B>Name:</B>
</TD>
<TD>
<P><INPUT TYPE=TEXT NAME="name" VLAUE="" SIZE=15>
</TD></TR>
<TR><TD>
<P ALIGN=RIGHT><B>Password:</B>
</TD>
<TD>
<P><INPUT TYPE=PASSWORD NAME="passwd" VALUE="" SIZE=15>
</TD></TR>
<TR><TD COLSPAN=2>
<CENTER>
<INPUT TYPE=SUBMIT VALUE=" OK ">
</CENTER>
</TD></TR>
</TABLE></form></BODY></HTML>
=================================================================
any help is appreciated.
Thanks
Basu
 
Ajan Balakrishnan
Ranch Hand
Posts: 71
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What kind of server are you running ???

[This message has been edited by Ajan Balakrishnan (edited February 20, 2001).]
 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ensure that you have registered your servlet, if you are using any alias
 
javahelp
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am using JRun 3.0 and servlet is registered
 
Ajan Balakrishnan
Ranch Hand
Posts: 71
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How dow you run (i mean the URL) your login.html.Just thought of checking this with servlet's PATH/URL since you are using the relative URL inside your html file

Ajan
 
Frank Carver
Sheriff
Posts: 6920
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"javahelp",
The Java Ranch has thousands of visitors every week, many with surprisingly similar names. To avoid confusion we have a naming convention, described at http://www.javaranch.com/name.jsp . We require names to have at least two words, separated by a space, and strongly recommend that you use your full real name. Please choose a new name which meets the requirements.
This name is obviously a pseudonym, and will be turnd off soon, so please choose a new name immediately.
Thanks.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic