wood burning stoves*
The moose likes Servlets and the fly likes servlet doesn't invoke  (page not found displayed) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "servlet doesn Watch "servlet doesn New topic
Author

servlet doesn't invoke (page not found displayed)

javahelp
Greenhorn

Joined: Feb 01, 2001
Posts: 6
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

Joined: Jan 04, 2001
Posts: 71
What kind of server are you running ???

[This message has been edited by Ajan Balakrishnan (edited February 20, 2001).]
Anonymous
Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
Ensure that you have registered your servlet, if you are using any alias
javahelp
Greenhorn

Joined: Feb 01, 2001
Posts: 6
I am using JRun 3.0 and servlet is registered
Ajan Balakrishnan
Ranch Hand

Joined: Jan 04, 2001
Posts: 71
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

Joined: Jan 07, 1999
Posts: 6920
"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.

Read about me at frankcarver.me ~ Raspberry Alpha Omega ~ Frank's Punchbarrel Blog
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: servlet doesn't invoke (page not found displayed)
 
Similar Threads
doubts in Login page
wrong jar reference
Login thing
I M NOT ABLE TO DEFINE VARIABLES IN JSP.
javax. servlet.Servlet Exception: Initialization failed, Unable to get DB connection