Latest Tutorials| Questions and Answers|Ask Questions?|Site Map



Login         

View Questions and Answers by Category

Advertisements


 
Have Programming Question? Ask it here!
 
 
 


brindhas
Bean
1 Answer(s)      a year and 5 months ago
Posted in : JDBC


what is bean? how to use bean


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

%>


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 a Java Bean?   A Java Bean is a software component that has been designed to be reusable in a variety of different environments
Java Bean
Java Bean  What is Java Bean?   I got my answer already here: http://www.roseindia.net/jsp/usingbeansinjsp.shtml Thanks a lot
entity bean
/ejb/entity-bean-example.shtml
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
Mean by Bean Scope
Mean by Bean Scope  What is Bean Scope
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
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 area - SQL
bean area  how to print bean area in excel sheet from oracle forms
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
bean - JSP-Interview Questions
bean  what is use bean in jsp?  Hi Friend, Please visit the following links: http://www.roseindia.net/jsp/using-bean-counter.shtml http://www.roseindia.net/jsp/java-bean-example-jsp.shtml Hope
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
Java Bean Properties
Java Bean Properties  What are the properties of a normal java Bean(Not EJB)   HI Friend, Please visit here: http://www.roseindia.net/jsp/usingbeansinjsp.shtml Thanks
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
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
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
java bean - EJB
java bean  difference between java bean and enterprice java bean  first of all dont compare java bean with enterprise java bean because enterprise java bean is a techonology where we can develope business logic
Java Bean - Java Beginners
Java Bean  Sir, How can i add a java bean into a target GUI.... Thanking you Pabitra Kr Debanth.   Hi friend, Java Bean classes must..., it will be a visible Java Bean. Java Beans may also be invisible
java bean code - EJB
java bean code  simple code for java beans  Hi Friend... the Presentation logic. Internally, a bean is just an instance of a class. Java Bean Code: public class EmployeeBean{ public int id; public
Stateless Bean - EJB
Stateless Bean  Hi everybody, I m encountring a problem in stateless bean. I have taken a Integer type input in Client file, at the time of running the program it gives error java.lang.NumberFormatException : null. Please
Input in Stateless Bean - EJB
Input in Stateless Bean  Hello, I am having problem in taking the input in stateless bean, when I am trying to get integer or double type input from the user in the client file, It shows me the error
A Message-Driven Bean Example
A Message-Driven Bean Example   ... messages asynchronously,  a Message-driven bean is used. Message driven... the following characteristics: A message-driven bean?s instances retain
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
Advertisements
 

 

 

DMCA.com