Bean

Bean

what is bean? how to use bean

View Answers

April 30, 2013 at 3:30 PM

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();
}

%>

Ads









Related Tutorials/Questions & Answers:
Bean
Bean  what is bean? how to use bean   HTML Code: Contents MOBILE STORE HOME PRODUCTS IMAGES COMPANY BRANCHES DEALERS FEEDBACK       Username       Password
Managed Bean
Managed Bean  What is Managed Bean
Advertisements
Java Bean
Java Bean  How to run java bean program in Netbeans
Java Bean
Java Bean  What is Java Bean?   I got my answer already here: http://www.roseindia.net/jsp/usingbeansinjsp.shtml Thanks a lot
Mean by Bean Scope
Mean by Bean Scope  What is Bean Scope
Version of bean-displaytag>bean-displaytag dependency
List of Version of bean-displaytag>bean-displaytag dependency
entity bean
/ejb/entity-bean-example.shtml
What is bean wiring?
What is bean wiring?  Hi, What is bean wiring? Thanks
What is Bean Factory ?
What is Bean Factory ?  Hi, What is Bean Factory ? Thanks
Bean
Bean
bean object
bean object  i have to retrieve data from the database and want to store in a variable using rs.getString and that variable i have to use in dropdown... java.util.*; public class Bean { public List dataList(){ ArrayList list=new
Session Bean
is a Session bean   A session bean is the enterprise bean that directly.... A session bean represents a single client accessing the enterprise application.... A session bean makes an interactive session only for a single client and shields
JSF Manage Bean
JSF Manage Bean   how to register JSF manage bean? Please give me an example. Thanks!   JSF Manage Bean Example
Special Bean Types of WebApplicationContext
In this section, you will learn about Special Bean Types in the WebApplicationContext
Spring bean annotation example
Spring bean annotation example  Hi, How to configure Bean using... to configure it. If you have a bean with following definition: package net.roseindia...(){ System.out.println("Hello"); } } Now to configure it as Bean you can use the @Bean
JAVA BEAN WITH ORACLE FORMS
JAVA BEAN WITH ORACLE FORMS  Hi..I am doing my final year Project.. I need the ste-by-step procedure to integrate a bean with oracle forms? Please help me
message driven bean example
message driven bean example  can any one tell me how to develop and execute ---------- j2ee message driven bean example in weblogic server with (netbeans or eclipse).   Have a look at the following link: http
Session Bean Example
Session Bean Example  I want to know that how to run ejb module by jboss 4.2.1 GA (session bean example by jboss configuration )?   Please visit the following link: http://www.roseindia.net/javabeans
Artifacts of bean-displaytag
List of Artifacts of bean-displaytag maven depenency
Stateless Bean Error
Stateless Bean Error  Ejb stateless bean giving following error,please help me. 11:49:54,894 INFO [STDOUT] Error:$Proxy72 cannot be cast... are providing you a link that will illustrate you more clearly about Stateless Bean
What is Bean lifecycle in Spring framework?
What is Bean lifecycle in Spring framework?  HI, What is Bean lifecycle in Spring framework? Thanks
How to add a bean in spring application?
How to add a bean in spring application?  Hi, How to add a bean in spring application? Thanks
What are Bean scopes in Spring Framework
What are Bean scopes in Spring Framework  Hi, What are Bean scopes in Spring Framework Thanks
How to get Output for a Bean problem
How to get Output for a Bean problem  Hello Kindly tell me a simple Program on Bean to get the Output using JSP code
Version of struts>struts-bean dependency
List of Version of struts>struts-bean dependency
Version of cn.jimmyshi>bean-query dependency
List of Version of cn.jimmyshi>bean-query dependency
Version of com.afrunt>bean-metadata dependency
List of Version of com.afrunt>bean-metadata dependency
Version of com.javaear>bean-generator dependency
List of Version of com.javaear>bean-generator dependency
Version of berkano>bean-displaytag dependency
List of Version of berkano>bean-displaytag dependency
Version of com.aimilin>excel-bean dependency
List of Version of com.aimilin>excel-bean dependency

Ads