Posted By:
gayathri_meenakshi
Posted On:
Wednesday, May 15, 2002 02:49 AM
Hi,
Hope the following samples help...
Bean Class Employee
package test;
import java.io.*;
public class Employee implements java.io.Serializable
{
public String name = null;
public String email = null;
public Employee(){};
public void setName(String name)
{
this.name = name;
}
public String getName()
{
return this.name;
}
public void setEmail(String email)
{
this.email = email;
}
public String getEmail()
{
return this.email;
}
public validate()
{
//include check here
}
}
Jsp File
<%@ page import="java.sql.*" %>
<%
String name = "gaya";
String email = "gy@yaoo";
%>
<%
out.println(trial.getName());
out.println(trial.getEmail());
trial.validate();
%>
Cheera ,
Gaya