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

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • naharol
    New Member
    • Nov 2009
    • 9

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

    Code:
    <%@ page language="java" contentType="text/html; charset=ISO-8859-1"
        pageEncoding="ISO-8859-1"%>
        <%@page import="java.sql.*"%>
    <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
    <title>Insert title here</title>
    </head>
    <body>
    <body bgcolor="green">
    <form action="/login/login" method=post>
    <center>
    <table cellpadding=4 cellspacing=2 border=0>
    <th bgcolor="darkgray" border=5>
    <font size=5>LOGIN FORM</font>
    <table align="center">
    <tr><td>Username:</td><td><input type="text" name="usrname"></td></tr>
    <tr><td>Password:</td><td><input type="password" name="pass"></td></tr>
    <tr><td><input type="submit" value="Login"/></td></tr> 
    </table>
    </body>
    </html>
    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 ...
    Last edited by gits; Nov 15 '09, 12:23 AM. Reason: added code tags
  • gits
    Recognized Expert Moderator Expert
    • May 2007
    • 5390

    #2
    since JSP is very different from JavaScript I've moved the thread to the Java-forum.

    kind regards
    MOD

    Comment

    Working...