• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

servlet doesn't invoke (page not found displayed)

 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 71
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
What kind of server are you running ???

[This message has been edited by Ajan Balakrishnan (edited February 20, 2001).]
 
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Sheriff
Posts: 7001
6
Eclipse IDE Python C++ Debian Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
reply
    Bookmark Topic Watch Topic
  • New Topic