# Login.jsp Sample

This topic inludes the source code for the Login.jsp Sample.

## Sample Location

This sample is located in the following directory in your WebLogic Workshop installation:

BEA_HOME/weblogic81/samples/workshop/SamplesApp/WebApp/security/formBasedLogin/login_pages/

## Sample Source Code

`01 <!--Generated by WebLogic Workshop--> 02 <%@ page language="java" contentType="text/html;charset=UTF-8"%> 03 <%@ taglib uri="netui-tags-databinding.tld" prefix="netui-data"%> 04 <%@ taglib uri="netui-tags-html.tld" prefix="netui"%> 05 <%@ taglib uri="netui-tags-template.tld" prefix="netui-template"%> 06 <netui:html> 07 <head> 08 <title>SamplesApp/WebApp login page</title> 09 </head> 10 <body bgcolor="#ccffcc"> 11 <blockquote> 12 <h2>Please enter your user name and password:</h2> 13 <p> 14 <!-- 15 Ignore the compiler warning below (indicated by the green underscoring). 16 Workshop issues the warning because it cannot find 17 the class j_security_check on its class paths. 18 19 "j_security_check" is required for FORM authentication. 20 It is used by WebLogic Server's security framework to check 21 the submitted username and password against the authentication provider. 22 The names of the input fields, "j_username" and "j_password", are used 23 for the same purpose. 24 --> 25 <form method="POST" action="j_security_check"> 26 <table border=1> 27 <tr bgcolor="#99ffcc"> 28 <td> 29 Username: 30 </td> 31 <td> 32 <input type="text" name="j_username"> 33 </td> 34 </tr> 35 <tr bgcolor="#66ffcc"> 36 <td> 37 Password:<br><font style="font-size:8pt;">[username: "weblogic" / password: "weblogic" is a valid test user.]</font> 38 </td> 39 <td> 40 <input type="password" name="j_password"> 41 </td> 42 </tr> 43 <tr> 44 <td colspan=2 align=right bgcolor="#00ffcc"> 45 <input type=submit value="Submit"> 46 </td> 47 </tr> 48 </table> 49 </form> 50 </p> 51 </blockquote> 52 </body> 53 </html> 54 </netui:html>`