john pfeiffer
  • Home
  • Categories
  • Tags
  • Archives

jsp Login

<?xml version="1.0" encoding="UTF-8" ?>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <!--  2012-03-03 -->
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <title>Login</title>
</head>
<body>
    <script type='text/javascript' src="/Todo/javascript.js"></script>

    <form id='login' action='LoginServlet' method="post" onsubmit="return isEmpty()">
         <div>Username:<input type='text' id='userName' name='userName' /></div>
         <div>Password:<input type='password' id='userPassword' name='userPassword' /></div>
         <!-- <div><input type='radio' name='targetfile' value='view' checked  />View</div> -->
         <!-- <div><textarea name='userinput' rows='10' cols='80'>Enter text here</textarea></div> -->
         <div><input type='submit' name='submit' value='submit'/></div>
     </form>

    <script type='text/javascript'>
        setFocus( "userName" );
    </script>

</body>
</html>

  • « jsp include javascript file textbox focus
  • drupal7 export node import to different site create an image nodetype »

Published

Mar 4, 2012

Category

java-servlet

~79 words

Tags

  • java-servlet 61
  • jsp 5
  • login 11