469,903 Members | 1,631 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,903 developers. It's quick & easy.

I had created a login form in jsp..... the code is as shown below ....

Expand|Select|Wrap|Line Numbers
  1. <%@ page language="java" contentType="text/html; charset=ISO-8859-1"
  2.     pageEncoding="ISO-8859-1"%>
  3.     <%@page import="java.sql.*"%>
  4. <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  5. <html>
  6. <head>
  7. <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
  8. <title>Insert title here</title>
  9. </head>
  10. <body>
  11. <body bgcolor="green">
  12. <form action="/login/login" method=post>
  13. <center>
  14. <table cellpadding=4 cellspacing=2 border=0>
  15. <th bgcolor="darkgray" border=5>
  16. <font size=5>LOGIN FORM</font>
  17. <table align="center">
  18. <tr><td>Username:</td><td><input type="text" name="usrname"></td></tr>
  19. <tr><td>Password:</td><td><input type="password" name="pass"></td></tr>
  20. <tr><td><input type="submit" value="Login"/></td></tr> 
  21. </table>
  22. </body>
  23. </html>
  24.  
but when i run and compile it i... it shows he login page but wen i enter the username and password and press enter it gives an error message as

shown below

HTTP Status 404 - /login/login

--------------------------------------------------------------------------------

type Status report

message /login/login

description The requested resource (/login/login) is not available.


--------------------------------------------------------------------------------

Apache Tomcat/5.5.27



can any body tell me how to solved this ...
Nov 14 '09 #1
1 2699
gits
5,390 Expert Mod 4TB
since JSP is very different from JavaScript I've moved the thread to the Java-forum.

kind regards
MOD
Nov 15 '09 #2

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

reply views Thread by Brenny | last post: by
1 post views Thread by Paul Anderson | last post: by
10 posts views Thread by DavidPr | last post: by
13 posts views Thread by Apostle | last post: by
1 post views Thread by Waqarahmed | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.