what is bean? how to use bean
HTML Code:
<html>
<head><title>Contents</title></head>
<body bgcolor="red">
<table width ="1320" height="200" border="0" bgcolor="86AEF">
<tr>
<td>
<img src="phone.jpg" width="200" height="200" algin="left">
</td>
<td width="50%">
<div align="center" class="banner"><font size="50" color="burple"> <b>MOBILE STORE</b></font>
</span>
</div>
</td>
<td>
<img src="pho.jpg" width="195" height="200" align="right">
</td>
</tr>
</table>
<table width="100" border="0" align="left">
<tr>
<td height="50" bgcolor="skyblue" align="center">
<font size="5" face="Arial Black" color="blue">HOME</font>
</td>
<td height="50" bgcolor="skyblue" align="center">
<font size="5" face="Arial Black" color="blue">PRODUCTS</font>
</td>
<td height="50" bgcolor="skyblue" align="center">
<font size="5" face="Arial Black" color="blue">IMAGES</font>
</td>
<td height="50" bgcolor="skyblue" align="center">
<font size="5" face="Arial Black" color="blue">COMPANY</font>
</td>
<td height="50" bgcolor="skyblue" align="center">
<font size="5" face="Arial Black" color="blue">BRANCHES</font>
</td>
<td height="50" bgcolor="skyblue" align="center">
<font size="5" face="Arial Black" color="blue">DEALERS</font>
</td>
<td height="50" bgcolor="skyblue" align="center">
<font size="5" face="Arial Black" color="blue">FEEDBACK</font>
</td></tr></table>
<table>
<tr>
<td width="500" height="400" align="left" bgcolor="white">
<img src="76jr4an6.jpg" width="500" height="300" align="top"></br>
<font color="burple">
<b> Username<input type="text" value=""></br>
Password <input type="pass" value=""></b></font>
<img src="button.jpg">
</td>
<td ROWSPAN="2" color=">
Already do you have a account? Go to Login</br>
Don't you have any account to click register</br>
<img src="register1.jpg"></td>
</tr></table>
</body>
</html>
JDBC code:
<%@ page language="java" import ="java.sql.*" %>
<%
Connection con;
ResultSet rs;
try
{
String strName=request.getParameter("username");
String strPass=request.getParameter("password");
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
con=DriverManager.getConnection(jdbc:odbc:data,"","");
Statement st=con.CreateStatement("SELECT * FROM viji");
rs=st.executeQuery();
while(rs.next())
{
if(strPass.equals(password)
{
out.println("correct");
}
else
{
out.println("not correct");
}
}
catch(Exception e)
{
out.println("Error "+E);
}
finally
{
rs.close();
con.close();
}
%>