.

Wednesday, January 26, 2011

class Mail ( ONLINE BANKING SYSTEM )

/* this code is intended education purpuse only. all rights reserved .copy right
protected .www.freejavaprojectsonline.blogspot.com . mails to : johnjustin@in.com */


import java.io.*;
import javax.servlet.*;
import javax.servlet.http.*;
import java.util.*;

public class Mail extends HttpServlet{

public void doPost(HttpServletRequest req,HttpServletResponse res) throws IOException,ServletException{
try{
res.setContentType("text/html");
PrintWriter out=res.getWriter();

String ano=req.getParameter("ANO");

out.println("<html><head><title>MAIL</title></head><body background=\"http:\\\\localhost:8080\\examples\\servlets\\images\\globe.jpg\">");
out.println("<h2 align=\"center\"><font color=\"#000080\">");
out.println("<img border=\"0\" src=\"http:\\\\localhost:8080\\examples\\servlets\\images\\earth.gif\" align=\"left\" width=\"50\" height=\"49\">");
out.println("</font></h2><h2 align=\"center\"><font color=\"#000080\">UNIVERSAL NET BANK");
out.println("</font></h2><p align=\"center\">&nbsp;</p>");
out.println("<table border=\"2\" width=\"100%\" bordercolorlight=\"#0000FF\" bordercolordark=\"#0000FF\">");
out.println("<tr><td width=\"12%\" valign=\"top\" align=\"center\">");
out.println("<a href=\"http:\\\\localhost:8080\\examples\\servlet\\Welcome?ANO="+ano+"\">Welcome");
out.println("</a></td><td width=\"18%\" valign=\"top\" align=\"center\">");
out.println("<a href=\"http:\\\\localhost:8080\\examples\\servlet\\ADetail?ANO="+ano+"\">Account Details");
out.println("</a></td><td width=\"14%\" valign=\"top\" align=\"center\">");
out.println("<a href=\"http:\\\\localhost:8080\\examples\\servlet\\WithDraw?ANO="+ano+"\">Withdrawals");
out.println("</a></td><td width=\"12%\" valign=\"top\" align=\"center\">");
out.println("<a href=\"http:\\\\localhost:8080\\examples\\servlet\\Deposit?ANO="+ano+"\">Deposits");
out.println("</a></td><td width=\"12%\" valign=\"top\" align=\"center\">");
out.println("<a href=\"http:\\\\localhost:8080\\examples\\servlet\\Loan?ANO="+ano+"\">Loans");
out.println("</a></td><td width=\"10%\" valign=\"top\" align=\"center\">");
out.println("<a href=\"http:\\\\localhost:8080\\examples\\servlet\\Option?ANO="+ano+"\">Options");
out.println("</a></td><td width=\"11%\" valign=\"top\" align=\"center\">");
out.println("<a href=\"http:\\\\localhost:8080\\examples\\servlets\\Logout.html\">Logout");
out.println("</a></td></tr></table><br><b><i>Mail</i></b>");
out.println("<form method=\"post\" action=\"http:\\\\localhost:8080\\examples\\servlet\\SendMail\" name=f11>");
out.println("<input type=hidden value="+ano+" name=\"ANO\">");
out.println("<p align=\"center\"><textarea rows=11 cols=45 name=\"MSG\">");
out.println("</textarea><br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;");
out.println("&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;");
out.println("&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;");
out.println("&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;");
out.println("&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;");
out.println("&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;");
out.println("&nbsp;&nbsp;&nbsp;&nbsp;");
out.println("<input type=submit value=Send></form></body></html>");
}
catch(Exception e){
System.out.println("Class Not Found "+e);
}
}//END OF doPost

public void doGet(HttpServletRequest req,HttpServletResponse res) throws IOException,ServletException{
doPost(req,res);
}
}










click here to get the full project source code with documentation and database of ONLINE BANKING SYSTEM

class DepositLoan ( ONLINE BANKING APPLICATION )

/* this code is intended education purpuse only. all rights reserved .copy right
protected .www.freejavaprojectsonline.blogspot.com . mails to : johnjustin@in.com */



import java.io.*;
import javax.servlet.*;
import javax.servlet.http.*;
import java.sql.*;
import java.util.*;

public class DepositLoan extends HttpServlet{
Connection con;
Statement st;
ResultSet rs;
PreparedStatement ps;

public void doPost(HttpServletRequest req,HttpServletResponse res) throws IOException,ServletException{
try{
int ano=Integer.parseInt(req.getParameter("ANO"));

Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
con=DriverManager.getConnection("jdbc:odbc:bank");
st=con.createStatement();

res.setContentType("text/html");
PrintWriter out=res.getWriter();

Calendar calendar = new GregorianCalendar();
String date=calendar.get(Calendar.DATE)+"/"+(calendar.get(Calendar.MONTH)+1)+"/"+calendar.get(Calendar.YEAR);

out.println("<html><head><title>Deposits</title>");
out.println("<script language=\"vbscript\">");
out.println(" sub f1");
out.println(" id1.style.visibility=\"visible\"");
out.println(" id2.style.visibility=\"hidden\"");
out.println(" end sub");
out.println(" sub f2");
out.println(" id2.style.visibility=\"visible\"");
out.println(" id1.style.visibility=\"hidden\"");
out.println(" end sub");
out.println(" sub window_onload");
out.println(" f1");
out.println(" end sub");
out.println("</script>");

out.println("</head><body background=\"http:\\\\localhost:8080\\examples\\servlets\\images\\globe.jpg\" link=red alink=green vlink=blue>");
out.println("<h2 align=\"center\"><font color=\"#000080\">");
out.println("<img border=\"0\" src=\"http:\\\\localhost:8080\\examples\\servlets\\images\\earth.gif\" align=\"left\" width=\"50\" height=\"49\">");
out.println("</font></h2><h2 align=\"center\"><font color=\"#000080\">UNIVERSAL NET BANK");
out.println("</font></h2><p align=\"center\">&nbsp;</p>");
out.println("<table border=\"2\" width=\"100%\" bordercolorlight=\"#0000FF\" bordercolordark=\"#0000FF\">");
out.println("<tr><td width=\"12%\" valign=\"top\" align=\"center\">");
out.println("<a href=\"http:\\\\localhost:8080\\examples\\servlet\\Welcome?ANO="+ano+"\">Welcome");
out.println("</a></td><td width=\"18%\" valign=\"top\" align=\"center\">");
out.println("<a href=\"http:\\\\localhost:8080\\examples\\servlet\\ADetail?ANO="+ano+"\">Account Details");
out.println("</a></td><td width=\"14%\" valign=\"top\" align=\"center\">");
out.println("<a href=\"http:\\\\localhost:8080\\examples\\servlet\\WithDraw?ANO="+ano+"\">Withdrawals");
out.println("</a></td><td width=\"12%\" valign=\"top\" align=\"center\">");
out.println("<a href=\"http:\\\\localhost:8080\\examples\\servlet\\Deposit?ANO="+ano+"\">Deposits");
out.println("</a></td><td width=\"12%\" valign=\"top\" align=\"center\">");
out.println("<a href=\"http:\\\\localhost:8080\\examples\\servlet\\Loan?ANO="+ano+"\">Loans");
out.println("</a></td><td width=\"12%\" valign=\"top\" align=\"center\">");
out.println("<a href=\"http:\\\\localhost:8080\\examples\\servlet\\Option?ANO="+ano+"\">Options");
out.println("</a></td><td width=\"12%\" valign=\"top\" align=\"center\">");
out.println("<a href=\"http:\\\\localhost:8080\\examples\\servlet\\Mail?ANO="+ano+"\">Mail Us");
out.println("</a></td><td width=\"11%\" valign=\"top\" align=\"center\">");
out.println("<a href=\"http:\\\\localhost:8080\\examples\\servlets\\Logout.html\">Logout");
out.println("</a></td></tr></table><table border=\"0\" width=\"100%\">");
out.println("<tr><td width=\"50%\"><font color=\"#000080\"><b>");
out.println("Date&nbsp;&nbsp; :&nbsp; </b></font><font color=\"#000080\"><b>");
out.println(date);
out.println("</b></font></td><td width=\"50%\" align=\"right\"><font color=\"#000080\">");
out.println("<b>Account No : <font size=\"3\">");
out.println(ano);
out.println("</font></b></font></td></tr></table>");
out.println("<p align=\"center\">&nbsp;<img border=\"0\" src=\"http:\\\\localhost:8080\\examples\\servlets\\images\\deposits.jpg\" width=\"403\" height=\"83\"></p>");
out.println("<p align=\"left\"><b><font color=\"#000080\">");

ps=con.prepareStatement("SELECT LID FROM LTABLE WHERE ACCOUNTNO="+ano+" AND TAMOUNT<>LREPAID");
rs=ps.executeQuery();

if (rs.next()){
rs.close();
rs=ps.executeQuery();
out.println("<table border=\"1\" width=\"75%\">");
out.println("<tr><td width=\"50%\">");
out.println("<input type=\"radio\" value=\"Credit\" checked name=\"R1\" onClick=\"f1\">");
out.println("&nbsp; <b>Deposit From Credit Card</b></td><td width=\"50%\">");
out.println("<input type=\"radio\" value=\"Account\" name=\"R1\" onClick=\"f2\"><b>Deposit");
out.println(" From Account</b></td></tr></table><p>&nbsp;</p>");

out.println("<div id=\"id1\">");
out.println("<form name=\"Form1\" method=\"POST\" action=\"http:\\\\localhost:8080\\examples\\servlet\\UpDepositLoan\" style=\"position: absolute\">");
out.println("<input type=hidden value=\"Credit\" name=\"TYPE\">");
out.println("<input type=hidden value="+ano+" name=\"ANO\"><center>");
out.println("<table border=\"1\" width=\"75%\" height=\"73\" >");

out.println("<tr><td width=\"50%\" height=\"19\"><b><font color=\"#000080\">Select Loan ID to Deposit</font></b></td>");
out.println("<td width=\"50%\" height=\"19\" colspan=\"2\">");
out.println("<select size=\"1\" name=\"LID\">");
while(rs.next()){
out.println("<option> "+rs.getString(1)+" </option>");
}
out.println("</select></td></tr><tr>");

out.println("<tr><td width=\"50%\" height=\"19\"><b><font color=\"#000080\">Enter the Amount</font></b></td>");
out.println("<td width=\"50%\" height=\"19\" colspan=\"2\"><input type=\"text\" name=\"AMOUNT\" size=\"20\"></td>");
out.println("</tr>");

out.println("<tr><td width=\"50%\" height=\"19\"><font color=\"#000080\">");
out.println("<b>Select The Card Type</b></font></td>");
out.println("<td width=\"50%\" height=\"19\" colspan=\"2\">");
out.println("<select size=\"1\" name=\"CTYPE\">");
out.println(" <option>Visa Card</option>");
out.println(" <option>Master Card</option>");
out.println("</select></td></tr><tr>");
out.println("<td width=\"50%\" height=\"19\"><b><font color=\"#000080\">Enter the Card Number</font></b></td>");
out.println("<td width=\"50%\" height=\"19\" colspan=\"2\"><input type=\"text\" name=\"CNO\" size=\"20\"></td>");
out.println("</tr><tr>");
out.println("<td width=\"50%\" height=\"17\">&nbsp;</td>");
out.println("<td width=\"25%\" height=\"17\" align=\"right\">");
out.println("<input type=\"submit\" value=\"Submit\" name=\"B1\"></td>");
out.println("<td width=\"25%\" height=\"17\" align=\"right\">");
out.println("<input type=\"reset\" value=\"Reset\" name=\"B2\"></td></tr>");
out.println("</table></center><p>&nbsp;</p>");

out.println("</form></div><div id=\"id2\">");
out.println("<form name=\"Form2\" method=\"POST\" action=\"http://localhost:8080/servlet/UpDepositLoan\">");
out.println("<input type=hidden value=\"Account\" name=\"TYPE\">");
out.println("<input type=hidden value="+ano+" name=\"ANO\"><center>");
out.println("<table border=\"1\" width=\"75%\">");
out.println("<tr><td width=\"50%\"><b><font color=\"#000080\">");
out.println("Loan ID to Deposit</font></b></td><td width=\"50%\" colspan=\"2\">");
out.println("<select size=\"1\" name=\"LID\">");
rs.close();
rs=ps.executeQuery();
while(rs.next()){
out.println("<option> "+rs.getString(1)+" </option>");
}
out.println("<select></td></tr>");

out.println("<tr><td width=\"50%\"><b><font color=\"#000080\">");
out.println("Enter The Amount</font></b></td><td width=\"50%\" colspan=\"2\">");
out.println("<input type=\"text\" name=\"AMOUNT\" size=\"20\"></td></tr>");

out.println("<tr><td width=\"50%\"><b><font color=\"#000080\">");
out.println("Select the Branch</font></b></td>");
out.println("<td width=\"50%\" colspan=\"2\"><select size=\"1\" name=\"BNAME\">");
out.println("<option selected>CHENNAI</option>");
out.println("<option>MUMBAI</option></select></td>");
out.println("</tr><tr><td width=\"50%\"><b><font color=\"#000080\">");
out.println("Select the Account Type</font></b></td>");
out.println("<td width=\"50%\" colspan=\"2\"><select size=\"1\" name=\"ATYPE\">");
out.println("<option selected>SAVINGS</option>");
out.println("<option>CURRENT</option></select></td></tr>");
out.println("<tr><td width=\"50%\"><b><font color=\"#000080\">");
out.println("Account Number To Credit</font></b></td>");
out.println("<td width=\"50%\" colspan=\"2\">");
out.println("<input type=\"text\" name=\"CANO\" size=\"20\"></td>");
out.println("</tr><tr><td width=\"50%\"><b><font color=\"#000080\">");
out.println("Enter The User ID</font></b></td><td width=\"50%\" colspan=\"2\">");
out.println("<input type=\"text\" name=\"CID\" size=\"20\"></td></tr>");
out.println("<tr><td width=\"50%\"><b><font color=\"#000080\">");
out.println("Enter The Password</font></b></td><td width=\"50%\" colspan=\"2\">");
out.println("<input type=\"pass\" name=\"CPWD\" size=\"20\"></td></tr>");
out.println("<tr><td width=\"50%\">&nbsp;</td><td width=\"25%\" align=\"right\">");
out.println("<input type=\"submit\" value=\"Submit\" name=\"B1\"></td>");
out.println("<td width=\"25%\" align=\"right\">");
out.println("<input type=\"reset\" value=\"Reset\" name=\"B2\"></td></tr></table>");
out.println("</form></div>");
}
else
{
System.out.println("no loans");
out.println("<p align=\"center\"><font size=\"4\" color=\"#000080\"><b>No Loans Taken");
out.println("</b></font></p>");
}
out.println("<br><br><font color=red><MARQUEE><I>This option is for future enhancement (ATM Facility). The page is just displayed for knowing the facilities</I></MARQUEE></font>");
out.println("</body></html>");
}
catch(SQLException sqle4){
System.out.println("Sql4 Exception "+sqle4);
}
catch(ClassNotFoundException cnfe){
System.out.println("Class Not Found "+cnfe);
}
}

public void doGet(HttpServletRequest req,HttpServletResponse res) throws IOException,ServletException{
doPost(req,res);
}

}



NEXT ==>> class Mail ( ONLINE BANKING APPLICATION) SOURCE CODE

class Welcome ( ONLINE BANKING SYSTEM USING JAVA FULL SOURCE CODE )

/* this code is intended education purpuse only. all rights reserved .copy right
protected .www.freejavaprojectsonline.blogspot.com . mails to : johnjustin@in.com */



import java.io.*;
import javax.servlet.*;
import javax.servlet.http.*;
import java.util.*;

public class Welcome extends HttpServlet{
public void doPost(HttpServletRequest req,HttpServletResponse res) throws IOException,ServletException{
try{
res.setContentType("text/html");
PrintWriter out=res.getWriter();

Calendar calendar = new GregorianCalendar();
String date=calendar.get(Calendar.DATE)+"/"+(calendar.get(Calendar.MONTH)+1)+"/"+calendar.get(Calendar.YEAR);

int rano=Integer.parseInt(req.getParameter("ANO"));

out.println("<html><head><title>Welcome</title></head>");
out.println("<body background=\"http:\\\\localhost:8080\\examples\\servlets\\images\\globe.jpg\" link=red alink=green vlink=blue>");
out.println("<h2 align=\"center\"><font color=\"#000080\">");
out.println("<img border=\"0\" src=\"http:\\\\localhost:8080\\examples\\servlets\\images\\earth.gif\" align=\"left\" width=\"50\" height=\"49\">");
out.println("</font></h2><h2 align=\"center\"><font color=\"#000080\">UNIVERSAL NET BANK");
out.println("</font></h2><p align=\"center\">&nbsp;</p>");
out.println("<table border=\"2\" width=\"100%\" bordercolorlight=\"#0000FF\" bordercolordark=\"#0000FF\">");
out.println("<tr><td width=\"12%\" valign=\"top\" align=\"center\">");
out.println("<a href=\"http:\\\\localhost:8080\\examples\\servlet\\Welcome?ANO="+rano+"\">Welcome");
out.println("</a></td><td width=\"18%\" valign=\"top\" align=\"center\">");
out.println("<a href=\"http:\\\\localhost:8080\\examples\\servlet\\ADetail?ANO="+rano+"\">Account Details");
out.println("</a></td><td width=\"14%\" valign=\"top\" align=\"center\">");
out.println("<a href=\"http:\\\\localhost:8080\\examples\\servlet\\WithDraw?ANO="+rano+"\">Withdrawals");
out.println("</a></td><td width=\"12%\" valign=\"top\" align=\"center\">");
out.println("<a href=\"http:\\\\localhost:8080\\examples\\servlet\\Deposit?ANO="+rano+"\">Deposits");
out.println("</a></td><td width=\"12%\" valign=\"top\" align=\"center\">");
out.println("<a href=\"http:\\\\localhost:8080\\examples\\servlet\\Loan?ANO="+rano+"\">Loans");
out.println("</a></td><td width=\"12%\" valign=\"top\" align=\"center\">");
out.println("<a href=\"http:\\\\localhost:8080\\examples\\servlet\\Mail?ANO="+rano+"\">Mail Us");
out.println("</a></td><td width=\"10%\" valign=\"top\" align=\"center\">");
out.println("<a href=\"http:\\\\localhost:8080\\examples\\servlet\\Option?ANO="+rano+"\">Options");
out.println("</a></td><td width=\"11%\" valign=\"top\" align=\"center\">");
out.println("<a href=\"http:\\\\localhost:8080\\examples\\servlets\\Logout.html\">Logout");
out.println("</a></td></tr></table><table border=\"0\" width=\"100%\">");
out.println("<tr><td width=\"50%\"><font color=\"#000080\"><b>");
out.println("Date&nbsp;&nbsp; :&nbsp; </b></font><font color=\"#000080\"><b>");

out.println(date);

out.println("</b></font></td><td width=\"50%\" align=\"right\"><font color=\"#000080\">");
out.println("<b>Account No : <font size=\"4\">");

out.println(rano);

out.println("</font></b></font></td></tr></table>");
out.println("<p><img border=\"0\" src=\"http:\\\\localhost:8080\\examples\\servlets\\images\\onlinebg.jpg\" width=\"403\" height=\"83\"></p>");
out.println("<p>Freedom.............That's what we all cherish. </p>");
out.println("<p>Freedom to enjoy all the things we are otherwise prevented from enjoying in");
out.println("order to make way for all the mundane things we are forced to do........like");
out.println("going to the bank, standing in queue to make a withdrawal etc..etc..</p>");
out.println("<p>That\'s why we brought our unique net banking facility to all our esteemed");
out.println("customers. It\'s one step in the right direction to achieving financial freedom");
out.println("and peace of mind.</p>");
out.println("<p>Happy banking!</p>");
out.println("</body></html>");
}
catch(Exception e){
System.out.println("OnLineEntry Exception "+e);
}
}//END OF doPost

public void doGet(HttpServletRequest req,HttpServletResponse res) throws IOException,ServletException{
doPost(req,res);
}
}


NEXT ==>> class DepositLoan ONLINE BANKING APPLICATION

class UPDetails - ONLINE BANKING SYSTEM PROJECT

/* this code is intended education purpuse only. all rights reserved .copy right
protected .www.freejavaprojectsonline.blogspot.com . mails to : johnjustin@in.com */




import java.io.*;
import javax.servlet.*;
import javax.servlet.http.*;
import java.sql.*;
import java.util.*;

public class UPDetails extends HttpServlet{
Connection con;
Statement st;
ResultSet rs;

public void doPost(HttpServletRequest req,HttpServletResponse res) throws IOException,ServletException{
try{
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
con=DriverManager.getConnection("jdbc:odbc:bank");
st=con.createStatement();

int rano=Integer.parseInt(req.getParameter("ANO"));
String str="SELECT * FROM USERTAB WHERE ACCOUNTNO="+rano;

rs=st.executeQuery(str);
rs.next();

res.setContentType("text/html");
PrintWriter out=res.getWriter();

Calendar calendar = new GregorianCalendar();
String date=calendar.get(Calendar.DATE)+"/"+(calendar.get(Calendar.MONTH)+1)+"/"+calendar.get(Calendar.YEAR);

String lname=rs.getString(2);
String fname=rs.getString(3);
String eid=rs.getString(4);
String hname=rs.getString(5);
String sname=rs.getString(6);
String city=rs.getString(7);
String cname=rs.getString(8);
String tno=rs.getString(9);
String occ=rs.getString(10);
String income=rs.getString(11);

out.println("<html><head>");
out.println("<script language=\"javascript\">function val1()");
out.println("{if(form1.t1.value==\"\"){alert(\"RE-ENTER LAST NAME\");return false;}");
out.println("if(form1.t2.value==\"\"){alert(\"RE-ENTER FIRST NAME\");return false;}");
out.println("if(form1.t3.value==\"\"){alert(\"RE-ENTER E-MAIL ID\");return false;}");
out.println("if((form1.t3.value.indexOf('@',0)==-1)||(form1.t3.value.indexOf('.',0)==-1)||(form1.t3.value.length<7))");
out.println("{alert(\"INVALID E-MAIL ADDRESS\");return false;} ");
out.println("if(form1.t4.value==\"\"){ alert(\"RE-ENTER HOUSE NAME\");return false;}");
out.println("if(form1.t5.value==\"\"){alert(\"RE-ENTER STREET NAME\");return false;}");
out.println("if(form1.t6.value==\"\"){alert(\"RE-ENTER CITY\");return false;}");
out.println("if(form1.t7.value==\"\"){alert(\"RE-ENTER TELEPHONE NUMBER\");return false;}");
out.println("if(form1.t8.value==\"\"){alert(\"RE-ENTER OCCUPATION\");return false;}");
out.println("if(form1.t9.value==\"\"){alert(\"RE-ENTER ANNUAL INCOME\");return false;}");
out.println("}</script>");

out.println("<title>OnLineEntry</title></head>");
out.println("<body background=\"http:\\\\localhost:8080\\examples\\servlets\\images\\globe.jpg\" link=red alink=green vlink=blue>");
out.println("<h2 align=\"center\"><font color=\"#000080\">");
out.println("<img border=\"0\" src=\"http:\\\\localhost:8080\\examples\\servlets\\images\\earth.gif\" align=\"left\" width=\"50\" height=\"49\">");
out.println("</font></h2><h2 align=\"center\"><font color=\"#000080\">UNIVERSAL NET BANK");
out.println("</font></h2><p align=\"center\">&nbsp;</p>");
out.println("<table border=\"2\" width=\"100%\" bordercolorlight=\"#0000FF\" bordercolordark=\"#0000FF\">");
out.println("<tr><td width=\"12%\" valign=\"top\" align=\"center\">");
out.println("<a href=\"http:\\\\localhost:8080\\examples\\servlet\\Welcome?ANO="+rano+"\">Welcome");
out.println("</a></td><td width=\"18%\" valign=\"top\" align=\"center\">");
out.println("<a href=\"http:\\\\localhost:8080\\examples\\servlet\\ADetail?ANO="+rano+"\">Account Details");
out.println("</a></td><td width=\"14%\" valign=\"top\" align=\"center\">");
out.println("<a href=\"http:\\\\localhost:8080\\examples\\servlet\\WithDraw?ANO="+rano+"\">Withdrawals");
out.println("</a></td><td width=\"12%\" valign=\"top\" align=\"center\">");
out.println("<a href=\"http:\\\\localhost:8080\\examples\\servlet\\Deposit?ANO="+rano+"\">Deposits");
out.println("</a></td><td width=\"12%\" valign=\"top\" align=\"center\">");
out.println("<a href=\"http:\\\\localhost:8080\\examples\\servlet\\Loan?ANO="+rano+"\">Loans");
out.println("</a></td><td width=\"12%\" valign=\"top\" align=\"center\">");
out.println("<a href=\"http:\\\\localhost:8080\\examples\\servlet\\Mail?ANO="+rano+"\">Mail Us");
out.println("</a></td><td width=\"10%\" valign=\"top\" align=\"center\">");
out.println("<a href=\"http:\\\\localhost:8080\\examples\\servlet\\Option?ANO="+rano+"\">Options");
out.println("</a></td><td width=\"11%\" valign=\"top\" align=\"center\">");
out.println("<a href=\"http:\\\\localhost:8080\\examples\\servlets\\Logout.html\">Logout");
out.println("</a></td></tr></table><table border=\"0\" width=\"100%\">");
out.println("<tr><td width=\"50%\"><font color=\"#000080\"><b>");
out.println("Date&nbsp;&nbsp; :&nbsp; </b></font><font color=\"#000080\"><b>");
out.println(date);
out.println("</b></font></td><td width=\"50%\" align=\"right\"><font color=\"#000080\">");
out.println("<b>Account No : <font size=\"4\">");
out.println(rano);
out.println("</font></b></font></td></tr></table>");

out.println("<p align=\"center\">&nbsp;<img border=\"0\" src=\"http:\\\\localhost:8080\\examples\\servlets\\images\\update.jpg\" width=\"403\" height=\"83\"></p>");
out.println("<p><b>Update your Personal Details</b></p>");
out.println("<table align=center width=75% border=1 height=\"405\">");
out.println("<form name=\"form1\" onsubmit=\"return val1()\" action=\"http:\\\\localhost:8080\\examples\\servlet\\ProcessDetails\" method=post>");
out.println("<input type=hidden name=ANO value="+rano+">");
out.println("<tr><td height=\"25\">Last name : <td height=\"25\">");
out.println("<input type=text name=t1 size=20 maxlength=20 value="+lname+">");
out.println("</tr><tr><td height=\"25\">First name : <td height=\"25\">");
out.println("<input type=text name=t2 size=20 maxlength=20 value="+fname+">");
out.println("</tr><tr><td height=\"25\">E-mail ID : <td height=\"25\">");
out.println("<input type=text name=t3 size=20 maxlength=30 value="+eid+">");
out.println("</tr><tr><td height=\"25\">House name : <td height=\"25\">");
out.println("<input type=text name=t4 size=20 maxlength=30 value="+hname+">");
out.println("</tr><tr><td height=\"25\">Street : <td height=\"25\">");
out.println("<input type=text name=t5 size=20 maxlength=30 value="+sname+">");
out.println("</tr><tr><td height=\"25\">City : <td height=\"25\">");
out.println("<input type=text name=t6 size=20 maxlength=30 value="+city+">");
out.println("</tr><tr><td height=\"25\">Country : <td height=\"25\">");
out.println("<select name=s1 size=1>");
if (cname.equals("INDIA"))
out.println("<option value=\"INDIA\" SELECTED>INDIA");
else
out.println("<option value=\"INDIA\">INDIA");
if (cname.equals("BANGLADESH"))
out.println("<option value=\"BANGLADESH\" SELECTED>BANGLADESH");
else
out.println("<option value=\"BANGLADESH\">BANGLADESH");
if (cname.equals("BHUTAN"))
out.println("<option value=\"BHUTAN\" SELECTED>BHUTAN");
else
out.println("<option value=\"BHUTAN\">BHUTAN");
if (cname.equals("PAKISTAN"))
out.println("<option value=\"PAKISTAN\" SELECTED>PAKISTAN");
else
out.println("<option value=\"PAKISTAN\">PAKISTAN");
if (cname.equals("MYANMAR"))
out.println("<option value=\"MYANMMAR\" SELECTED>MYANMAR");
else
out.println("<option value=\"MYANMMAR\">MYANMAR");
if (cname.equals("NEPAL"))
out.println("<option value=\"NEPAL\" SELECTED>NEPAL");
else
out.println("<option value=\"NEPAL\">NEPAL");
if (cname.equals("SRILANKA"))
out.println("<option value=\"SRILANKA\" SELECTED>SRILANKA");
else
out.println("<option value=\"SRILANKA\">SRILANKA");
if (cname.equals("OTHER"))
out.println("<option value=\"OTHER\" SELECTED>OTHER ");
else
out.println("<option value=\"OTHER\">OTHER ");

out.println("</select>");
out.println("</tr><tr><td height=\"25\">Telephone no : <td height=\"25\">");
out.println("<input type=text name=t7 size=20 maxlength=20 value="+tno+">");
out.println("</tr><tr><td height=\"25\">Occupation : <td height=\"25\">");
out.println("<input type=text name=t8 size=20 maxlength=30 value="+occ+">");
out.println("</tr><tr><td height=\"26\">Annual Income : <td height=\"26\">");
out.println("<input type=text name=t9 size=20 maxlength=20 value="+income+">");
out.println("</tr><tr><td height=\"27\"><input type=submit value=\"Update\" >");
out.println("<td height=\"27\"><input type=reset value=\"Reset\"></tr></table>");
out.println("</form></body></html>");
}
catch(SQLException sqle4){
System.out.println("Sql4 Exception "+sqle4);
}
catch(ClassNotFoundException cnfe){
System.out.println("Class Not Found "+cnfe);
}

}//END OF doPost

public void doGet(HttpServletRequest req,HttpServletResponse res) throws IOException,ServletException{
doPost(req,res);
}
}




NEXT ==>> class Welcome -ONLINE BANKING PROJECT

class SendMail - ONLINE BANKING SYSTEM APPLICATION USING JAVA SOURCE CODE

/* this code is intended education purpuse only. all rights reserved .copy right
protected .www.freejavaprojectsonline.blogspot.com . mails to : johnjustin@in.com */



import java.io.*;
import javax.servlet.*;
import javax.servlet.http.*;
import java.sql.*;
import java.util.*;

public class SendMail extends HttpServlet{
Connection con;
Statement st;
ResultSet rs;
PreparedStatement ps;

String sql=null;
int mno;

public void doPost(HttpServletRequest req,HttpServletResponse res) throws IOException,ServletException{
try{
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
con=DriverManager.getConnection("jdbc:odbc:bank");
st=con.createStatement();

sql="SELECT MAILID FROM MAIL ORDER BY MAILID DESC";
rs=st.executeQuery(sql);

if(rs.next())
mno=Integer.parseInt(rs.getString(1))+1;
else
mno=100;

int rano=Integer.parseInt(req.getParameter("ANO"));

String rmsg=req.getParameter("MSG");
ps=con.prepareStatement("insert into mail values(?,?,?)");

ps.setInt(1,mno);
ps.setInt(2,rano);
ps.setString(3,rmsg);
ps.executeUpdate();

res.setContentType("text/html");
PrintWriter out=res.getWriter();

Calendar calendar = new GregorianCalendar();
String date=calendar.get(Calendar.DATE)+"/"+(calendar.get(Calendar.MONTH)+1)+"/"+calendar.get(Calendar.YEAR);

out.println("<html><head><title>OnLineEntry</title></head>");
out.println("<body background=\"http:\\\\localhost:8080\\examples\\servlets\\images\\globe.jpg\" link=red alink=green vlink=blue>");
out.println("<h2 align=\"center\"><font color=\"#000080\">");
out.println("<img border=\"0\" src=\"http:\\\\localhost:8080\\examples\\servlets\\images\\earth.gif\" align=\"left\" width=\"50\" height=\"49\">");
out.println("</font></h2><h2 align=\"center\"><font color=\"#000080\">UNIVERSAL NET BANK");
out.println("</font></h2><p align=\"center\">&nbsp;</p>");
out.println("<table border=\"2\" width=\"100%\" bordercolorlight=\"#0000FF\" bordercolordark=\"#0000FF\">");
out.println("<tr><td width=\"12%\" valign=\"top\" align=\"center\">");
out.println("<a href=\"http:\\\\localhost:8080\\examples\\servlet\\Welcome?ANO="+rano+"\">Welcome");
out.println("</a></td><td width=\"18%\" valign=\"top\" align=\"center\">");
out.println("<a href=\"http:\\\\localhost:8080\\examples\\servlet\\ADetail?ANO="+rano+"\">Account Details");
out.println("</a></td><td width=\"14%\" valign=\"top\" align=\"center\">");
out.println("<a href=\"http:\\\\localhost:8080\\examples\\servlet\\WithDraw?ANO="+rano+"\">Withdrawals");
out.println("</a></td><td width=\"12%\" valign=\"top\" align=\"center\">");
out.println("<a href=\"http:\\\\localhost:8080\\examples\\servlet\\Deposit?ANO="+rano+"\">Deposits");
out.println("</a></td><td width=\"12%\" valign=\"top\" align=\"center\">");
out.println("<a href=\"http:\\\\localhost:8080\\examples\\servlet\\Loan?ANO="+rano+"\">Loans");
out.println("</a></td><td width=\"12%\" valign=\"top\" align=\"center\">");
out.println("<a href=\"http:\\\\localhost:8080\\examples\\servlet\\Mail?ANO="+rano+"\">Mail Us");
out.println("</a></td><td width=\"10%\" valign=\"top\" align=\"center\">");
out.println("<a href=\"http:\\\\localhost:8080\\examples\\servlet\\Option?ANO="+rano+"\">Options");
out.println("</a></td><td width=\"11%\" valign=\"top\" align=\"center\">");
out.println("<a href=\"http:\\\\localhost:8080\\examples\\servlets\\Logout.html\">Logout");
out.println("</a></td></tr></table><table border=\"0\" width=\"100%\">");
out.println("<tr><td width=\"50%\"><font color=\"#000080\"><b>");
out.println("Date&nbsp;&nbsp; :&nbsp; </b></font><font color=\"#000080\"><b>");

out.println(date);

out.println("</b></font></td><td width=\"50%\" align=\"right\"><font color=\"#000080\">");
out.println("<b>Account No : <font size=\"4\">");

out.println(rano);

out.println("</font></b></font></td></tr></table>");
out.println("<p><font color=\"#000080\"><b>");
out.println("Your Mail has been Successfully Received.</b></font></p>");

out.println("<p><img border=\"0\" src=\"http:\\\\localhost:8080\\examples\\servlets\\images\\onlinebg.jpg\" width=\"403\" height=\"83\"></p>");
out.println("<p>Freedom.............That's what we all cherish. </p>");
out.println("<p>Freedom to enjoy all the things we are otherwise prevented from enjoying in");
out.println("order to make way for all the mundane things we are forced to do........like");
out.println("going to the bank, standing in queue to make a withdrawal etc..etc..</p>");
out.println("<p>That\'s why we brought our unique net banking facility to all our esteemed");
out.println("customers. It\'s one step in the right direction to achieving financial freedom");
out.println("and peace of mind.</p>");
out.println("<p>Happy banking!</p>");
out.println("</body></html>");

}
catch(SQLException sqle4){
System.out.println("Sql4 Exception "+sqle4);
}
catch(ClassNotFoundException cnfe){
System.out.println("Class Not Found "+cnfe);
}
}//END OF doPost
}



NEXT =>>class UPDeposit ONLINE BANKING APPLICATION PROJECT

class Option ONLINE BANKING PROJECT USING JAVA JSP FULL SOURCE CODE

/* this code is intended education purpuse only. all rights reserved .copy right
protected .www.freejavaprojectsonline.blogspot.com . mails to : johnjustin@in.com */



import java.io.*;
import javax.servlet.*;
import javax.servlet.http.*;
import java.util.*;

public class Option extends HttpServlet{

public void doPost(HttpServletRequest req,HttpServletResponse res) throws IOException,ServletException{
try{
res.setContentType("text/html");
PrintWriter out=res.getWriter();

Calendar calendar = new GregorianCalendar();
String date=calendar.get(Calendar.DATE)+"/"+(calendar.get(Calendar.MONTH)+1)+"/"+calendar.get(Calendar.YEAR);

int ano=Integer.parseInt(req.getParameter("ANO"));
out.println("<html><head><title>Options</title></head>");
out.println("<body background=\"http:\\\\localhost:8080\\examples\\servlets\\images\\globe.jpg\" link=red alink=green vlink=blue>");
out.println("<h2 align=\"center\"><font color=\"#000080\">");
out.println("<img border=\"0\" src=\"http:\\\\localhost:8080\\examples\\servlets\\images\\earth.gif\" align=\"left\" width=\"50\" height=\"49\">");
out.println("</font></h2><h2 align=\"center\"><font color=\"#000080\">UNIVERSAL NET BANK");
out.println("</font></h2><p align=\"center\">&nbsp;</p>");
out.println("<table border=\"2\" width=\"100%\" bordercolorlight=\"#0000FF\" bordercolordark=\"#0000FF\">");
out.println("<tr><td width=\"12%\" valign=\"top\" align=\"center\">");
out.println("<a href=\"http:\\\\localhost:8080\\examples\\servlet\\Welcome?ANO="+ano+"\">Welcome");
out.println("</a></td><td width=\"18%\" valign=\"top\" align=\"center\">");
out.println("<a href=\"http:\\\\localhost:8080\\examples\\servlet\\ADetail?ANO="+ano+"\">Account Details");
out.println("</a></td><td width=\"14%\" valign=\"top\" align=\"center\">");
out.println("<a href=\"http:\\\\localhost:8080\\examples\\servlet\\WithDraw?ANO="+ano+"\">Withdrawals");
out.println("</a></td><td width=\"12%\" valign=\"top\" align=\"center\">");
out.println("<a href=\"http:\\\\localhost:8080\\examples\\servlet\\Deposit?ANO="+ano+"\">Deposits");
out.println("</a></td><td width=\"12%\" valign=\"top\" align=\"center\">");
out.println("<a href=\"http:\\\\localhost:8080\\examples\\servlet\\Loan?ANO="+ano+"\">Loans");
out.println("</a></td><td width=\"12%\" valign=\"top\" align=\"center\">");
out.println("<a href=\"http:\\\\localhost:8080\\examples\\servlet\\Mail?ANO="+ano+"\">Mail Us");
out.println("</a></td><td width=\"11%\" valign=\"top\" align=\"center\">");
out.println("<a href=\"http:\\\\localhost:8080\\examples\\servlets\\Logout.html\">Logout");
out.println("</a></td></tr></table><table border=\"0\" width=\"100%\">");
out.println("<tr><td width=\"50%\"><font color=\"#000080\"><b>");
out.println("Date&nbsp;&nbsp; :&nbsp; </b></font><font color=\"#000080\"><b>");
out.println(date);
out.println("</b></font></td><td width=\"50%\" align=\"right\"><font color=\"#000080\">");
out.println("<b>Account No : <font size=\"3\">");
out.println(ano);
out.println("</font></b></font></td></tr></table>");
out.println("<p align=\"center\">&nbsp;<img border=\"0\" src=\"http:\\\\localhost:8080\\examples\\servlets\\images\\update.jpg\" width=\"403\" height=\"83\"></p>");
out.println("<div align=\"center\">");
out.println("<center>");
out.println("<table border=\"1\" width=\"75%\">");
out.println("<tr>");
out.println("<td width=\"50%\">");
out.println("<h4 align=\"left\"><b><font color=\"#000080\"><a href=\"http:\\\\localhost:8080\\examples\\servlet\\UPDetails?ANO="+ano+"\">Update");
out.println("User Details</a></font></b></h4>");
out.println("</td>");
out.println("<td width=\"50%\">");
out.println("<h4 align=\"right\"><b><font color=\"#000080\"><a href=\"http:\\\\localhost:8080\\examples\\servlet\\Cpass?ANO="+ano+"\">Change");
out.println("Password</a></font></b></h4>");
out.println("</td>");
out.println("</tr>");
out.println("</table>");
out.println("</center>");
out.println("</div>");
out.println("<p>&nbsp;</p>");
out.println("</body></html>");

}
catch(Exception e){
System.out.println("Class Not Found "+e);
}
}//END OF doPost

public void doGet(HttpServletRequest req,HttpServletResponse res) throws IOException,ServletException{
doPost(req,res);
}
}



next =>> class SendMail ONLINE BANKING SYSTEM PROJECT

class logincheck1 ONLINE BANKING USING JSP ACADEMIC PROJECT SOURCE CODE

/* this code is intended education purpuse only. all rights reserved .copy right
protected .www.freejavaprojectsonline.blogspot.com . mails to : johnjustin@in.com */



import java.io.*;
import javax.servlet.*;
import javax.servlet.http.*;
import java.sql.*;
import java.util.*;

public class logincheck1 extends HttpServlet{
Connection con;
Statement st;
ResultSet rs;

public void doPost(HttpServletRequest req,HttpServletResponse res) throws IOException,ServletException{
try{
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
con=DriverManager.getConnection("jdbc:odbc:bank");
st=con.createStatement();

int rano=Integer.parseInt(req.getParameter("accno"));
String ruid=req.getParameter("usrid");
String rupwd=req.getParameter("pswrd");

rs=st.executeQuery("SELECT * FROM USERTAB WHERE ACCOUNTNO="+rano+" AND USERID=\'"+ruid+"\' AND USERPWD=\'"+rupwd+"\'");
if (rs.next()){
res.setContentType("text/html");
PrintWriter out=res.getWriter();

String lname=rs.getString("lastname");
String fname=rs.getString("firstname");

out.println("<html><head><title>Welcome Page</title></head>");
out.println("<body background=\"http:\\\\localhost:8080\\examples\\servlets\\images\\globe.jpg\" text=\"#000080\"><h3 align=\"center\">");
out.println("<font color=\"#FF0000\">Welcome");
out.println(fname+"&nbsp;"+lname);
out.println("&nbsp;</font></h3><p><font size=\"5\" color=\"#FF0066\">");
out.println("<marquee behavior=\"alternate\">");
out.println("Thank you for banking with us.</marquee></font></p>");
out.println("<p><font size=\"4\" color=\"#000000\">Remember your Account No, User ID and Password.");
out.println("</font></p>");
out.println("<p><font color=\"#000000\" size=\"4\">Your Account Number is&nbsp;&nbsp; :");
out.println("&nbsp;&nbsp;");
out.println(rano);
out.println("</font> </p>");
out.println("<p><font color=\"#000000\" size=\"4\">Your User ID is&nbsp;&nbsp;&nbsp;");
out.println("&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; :&nbsp;&nbsp;");
out.println(ruid);
out.println("</font></p>");
out.println("</font></p><h2 align=\"right\"><font color=blue>Please click below to proceed</font></h2>");
out.println("<h3 align=\"right\"><font color=\"#00FF00\"><a href=\"http:\\\\localhost:8080\\examples\\servlet\\OnLineEntry\\?ANO="+rano+"\" target=\"_top\" >");
out.println("Consumer Banking</a>&nbsp;</font></h3></body></html>");
}
else
res.sendRedirect("http:\\\\localhost:8080\\examples\\servlets\\login1.html");
}
catch(SQLException sqle4){
System.out.println("Sql Exception "+sqle4); }

catch(ClassNotFoundException cnfe){
System.out.println("Class Not Found "+cnfe);
}
}//END OF doPost
}










NEXT =>> class Option ONLINE BANKING PROJECT

class DepositFixed ONLINE BANKING ACADEMIC PROJECT SOURCE CODE

/* this code is intended education purpuse only. all rights reserved .copy right
protected .www.freejavaprojectsonline.blogspot.com . mails to : johnjustin@in.com */



import java.io.*;
import javax.servlet.*;
import javax.servlet.http.*;
import java.sql.*;
import java.util.*;

public class DepositFixed extends HttpServlet{
Connection con;
Statement st;
ResultSet rs;
String rate[],duration[];

public void doPost(HttpServletRequest req,HttpServletResponse res) throws IOException,ServletException{
try{
int ano=Integer.parseInt(req.getParameter("ANO"));

Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
con=DriverManager.getConnection("jdbc:odbc:bank");
st=con.createStatement();

res.setContentType("text/html");
PrintWriter out=res.getWriter();

Calendar calendar = new GregorianCalendar();
String date=calendar.get(Calendar.DATE)+"/"+(calendar.get(Calendar.MONTH)+1)+"/"+calendar.get(Calendar.YEAR);

rs=st.executeQuery("SELECT * FROM FTABLE WHERE ACCOUNTNO="+ano);
if(!rs.next())
{
rs=st.executeQuery("SELECT COUNT(*) FROM FITABLE");
rs.next();
int limit=Integer.parseInt(rs.getString(1));
rs.close();
rate=new String[limit];
duration=new String[limit];

rs=st.executeQuery("SELECT * FROM FITABLE");
System.out.println("count1="+limit);

limit=0;

while(rs.next()){
duration[limit]=rs.getString(1);
rate[limit]=rs.getString(2);
limit++;
}

out.println("<html><head><title>Deposits</title>");
out.println("<script language=\"vbscript\">");
out.println(" sub f1");
out.println(" id1.style.visibility=\"visible\"");
out.println(" id2.style.visibility=\"hidden\"");
out.println(" end sub");
out.println(" sub f2");
out.println(" id2.style.visibility=\"visible\"");
out.println(" id1.style.visibility=\"hidden\"");
out.println(" end sub");
out.println(" sub window_onload");
out.println(" f1");
out.println(" end sub");
out.println("</script>");

out.println("</head><body background=\"http:\\\\localhost:8080\\examples\\servlets\\images\\globe.jpg\" link=red alink=green vlink=blue>");
out.println("<h2 align=\"center\"><font color=\"#000080\">");
out.println("<img border=\"0\" src=\"http:\\\\localhost:8080\\examples\\servlets\\images\\earth.gif\" align=\"left\" width=\"50\" height=\"49\">");
out.println("</font></h2><h2 align=\"center\"><font color=\"#000080\">UNIVERSAL NET BANK");
out.println("</font></h2><p align=\"center\">&nbsp;</p>");
out.println("<table border=\"2\" width=\"100%\" bordercolorlight=\"#0000FF\" bordercolordark=\"#0000FF\">");
out.println("<tr><td width=\"12%\" valign=\"top\" align=\"center\">");
out.println("<a href=\"http:\\\\localhost:8080\\examples\\servlet\\Welcome?ANO="+ano+"\">Welcome");
out.println("</a></td><td width=\"18%\" valign=\"top\" align=\"center\">");
out.println("<a href=\"http:\\\\localhost:8080\\examples\\servlet\\ADetail?ANO="+ano+"\">Account Details");
out.println("</a></td><td width=\"14%\" valign=\"top\" align=\"center\">");
out.println("<a href=\"http:\\\\localhost:8080\\examples\\servlet\\WithDraw?ANO="+ano+"\">Withdrawals");
out.println("</a></td><td width=\"12%\" valign=\"top\" align=\"center\">");
out.println("<a href=\"http:\\\\localhost:8080\\examples\\servlet\\Deposit?ANO="+ano+"\">Deposits");
out.println("</a></td><td width=\"12%\" valign=\"top\" align=\"center\">");
out.println("<a href=\"http:\\\\localhost:8080\\examples\\servlet\\Loan?ANO="+ano+"\">Loans");
out.println("</a></td><td width=\"12%\" valign=\"top\" align=\"center\">");
out.println("<a href=\"http:\\\\localhost:8080\\examples\\servlet\\Option?ANO="+ano+"\">Options");
out.println("</a></td><td width=\"12%\" valign=\"top\" align=\"center\">");
out.println("<a href=\"http:\\\\localhost:8080\\examples\\servlet\\Mail?ANO="+ano+"\">Mail Us");
out.println("</a></td><td width=\"11%\" valign=\"top\" align=\"center\">");
out.println("<a href=\"http:\\\\localhost:8080\\examples\\servlets\\Logout.html\">Logout");
out.println("</a></td></tr></table><table border=\"0\" width=\"100%\">");
out.println("<tr><td width=\"50%\"><font color=\"#000080\"><b>");
out.println("Date&nbsp;&nbsp; :&nbsp; </b></font><font color=\"#000080\"><b>");
out.println(date);
out.println("</b></font></td><td width=\"50%\" align=\"right\"><font color=\"#000080\">");
out.println("<b>Account No : <font size=\"3\">");
out.println(ano);
out.println("</font></b></font></td></tr></table>");
out.println("<p align=\"center\">&nbsp;<img border=\"0\" src=\"http:\\\\localhost:8080\\examples\\servlets\\images\\deposits.jpg\" width=\"403\" height=\"83\"></p>");

out.println("<div align=\"center\">");
out.println("<center><table border=\"1\" cellpadding=\"2\" width=\"75%\">");
out.println("<tr><td width=\"50%\" align=\"center\"><b><font color=\"#000080\">");
out.println("<input type=\"radio\" value=\"CREDIT\" checked name=\"DTYPE\" onclick=\"f1\">");
out.println("Deposit Through Credit Card</font></b></td>");
out.println("<td width=\"50%\" align=\"center\"><b><font color=\"#000080\">");
out.println("<input type=\"radio\" value=\"CASH\" name=\"DTYPE\" onclick=\"f2\">");
out.println("Deposit Through Cash</font></b></td></tr></table></center>");

out.println("</div><div id=\"id1\">");
out.println("<form method=\"POST\" action=\"http:\\\\localhost:8080\\examples\\servlet\\UpDepositFixed\"");
out.println("style=\"position: absolute;left: -2; top: 321; width: 692; height: 178\"> ");
out.println("<input type=hidden name=ANO value="+ano+">");
out.println("<input type=hidden name=TYPE value=\"CREDIT\">");
out.println("<div align=\"left\"><table border=\"1\" cellpadding=\"2\" width=\"50%\"><tr>");
out.println("<td width=\"50%\"><p align=\"left\"><b><font color=\"#000080\">");
out.println("Select The Card Type</font></b></td><td width=\"50%\" colspan=\"2\">");
out.println("<b><font color=\"#000080\"><select size=\"1\" name=\"CTYPE\">");
out.println("<option>Master Card</option><option>Visa Card</option>");
out.println("</select></font></b></td></tr><tr><td width=\"50%\"><b><font color=\"#000080\">");
out.println("Enter The Card Number</font></b></td>");
out.println("<td width=\"50%\" colspan=\"2\"><b><font color=\"#000080\">");
out.println("<input type=\"text\" name=\"CNO\" size=\"20\"></font>");
out.println("</b></td></tr><tr><td width=\"50%\"><b><font color=\"#000080\">");
out.println("Enter The Amount </font></b></td><td width=\"50%\" colspan=\"2\">");
out.println("<p align=\"left\"><b><font color=\"#000080\">");
out.println("<input type=\"text\" name=\"AMOUNT\" size=\"20\"></font></b></td>");
out.println("</tr><tr><td width=\"50%\"><b><font color=\"#000080\">Select The Duration");
out.println("</font></b></td><td width=\"50%\" colspan=\"2\"><b><font color=\"#000080\">");
out.println("<select size=\"1\" name=\"DURATION\">"+"year");

for (limit=0;limit<rate.length;limit++)
out.println("<option>"+duration[limit]+"</option>");
out.println("</select></font></b></td>");

out.println("</tr><tr><td width=\"50%\">&nbsp;</td><td width=\"25%\" align=\"right\">");
out.println("<b><font color=\"#000080\"><input type=\"submit\" value=\"Submit\" name=\"B1\">");
out.println("</font></b></td><td width=\"25%\" align=\"right\"><b>");
out.println("<font color=\"#000080\"><input type=\"reset\" value=\"Reset\" name=\"B2\">");
out.println("</font></b></td></tr></table></div></form></div><p>&nbsp;</p>");

out.println("<div id=\"id2\">");
out.println("<form method=\"POST\" action=\"http:\\\\localhost:8080\\examples\\servlet\\UPDeposit\"");
out.println("style=\"position: absolute; left: -1; top: 321; width: 693; height: 158\">");
out.println("<input type=hidden name=ANO value="+ano+">");
out.println("<input type=hidden name=TYPE value=\"ACCOUNT\">");
out.println("<div align=\"left\"><table border=\"1\" cellpadding=\"2\" width=\"50%\">");
out.println("<tr><td width=\"50%\"><font color=\"#000080\"><b>Enter The Amount</b>");
out.println("</font></td><td width=\"50%\" colspan=\"2\"><font color=\"#000080\"><b>");
out.println("<input type=\"text\" name=\"AMOUNT\" size=\"20\"></b></font></td>");
out.println("</tr><tr><td width=\"50%\"><font color=\"#000080\"><b>Select The Duration</b>");
out.println("</font></td><td width=\"50%\" colspan=\"2\"><font color=\"#000080\"><b>");
out.println("<select size=\"1\" name=\"DURATION\">"+"year");

for (limit=0;limit<rate.length;limit++)
out.println("<option>"+duration[limit]+"</option>");

out.println("</select></b></font></td></tr><tr>");
out.println("<td width=\"50%\">&nbsp;</td><td width=\"25%\" align=\"right\">");
out.println("<font color=\"#000080\"><b><input type=\"submit\" value=\"Submit\" name=\"B1\">");
out.println("</b></font></td><td width=\"25%\" align=\"right\"><font color=\"#000080\">");
out.println("<b><input type=\"reset\" value=\"Reset\" name=\"B2\"></b></font></td>");
out.println("</tr></table></div><p>&nbsp;</p></form></div>");

out.println("<form style=\"position: absolute; left: 1; top: 321; width: 671; height: 225\">");
out.println("<div align=\"right\"><table border=\"1\" cellpadding=\"2\" width=\"40%\">");
out.println("<tr><td width=\"50%\" bgcolor=\"#FFFFFF\" align=\"center\"><b>");
out.println("<font color=\"#000080\">Duration</font></b></td>");
out.println("<td width=\"50%\" bgcolor=\"#FFFFFF\" align=\"center\"><b><font color=\"#000080\">");
out.println("Interest Rate</font></b></td></tr>");
for (limit=0;limit<rate.length;limit++){
out.println("<tr><td width=\"50%\">");
out.println(duration[limit]);
out.println("</td><td width=\"50%\">");
out.println(rate[limit]);
out.println("</td></tr>");
}
out.println("</table></div><p>&nbsp;</p></form></body></html>");
}
else
{
out.println("<html><head><title>Deposits</title>");
out.println("</head><body background=\"http:\\\\localhost:8080\\examples\\servlets\\images\\globe.jpg\" link=red alink=green vlink=blue>");
out.println("<h2 align=\"center\"><font color=\"#000080\">");
out.println("<img border=\"0\" src=\"http:\\\\localhost:8080\\examples\\servlets\\images\\earth.gif\" align=\"left\" width=\"50\" height=\"49\">");
out.println("</font></h2><h2 align=\"center\"><font color=\"#000080\">UNIVERSAL NET BANK");
out.println("</font></h2><p align=\"center\">&nbsp;</p>");
out.println("<table border=\"2\" width=\"100%\" bordercolorlight=\"#0000FF\" bordercolordark=\"#0000FF\">");
out.println("<tr><td width=\"12%\" valign=\"top\" align=\"center\">");
out.println("<a href=\"http:\\\\localhost:8080\\examples\\servlet\\Welcome?ANO="+ano+"\">Welcome");
out.println("</a></td><td width=\"18%\" valign=\"top\" align=\"center\">");
out.println("<a href=\"http:\\\\localhost:8080\\examples\\servlet\\ADetail?ANO="+ano+"\">Account Details");
out.println("</a></td><td width=\"14%\" valign=\"top\" align=\"center\">");
out.println("<a href=\"http:\\\\localhost:8080\\examples\\servlet\\WithDraw?ANO="+ano+"\">Withdrawals");
out.println("</a></td><td width=\"12%\" valign=\"top\" align=\"center\">");
out.println("<a href=\"http:\\\\localhost:8080\\examples\\servlet\\Deposit?ANO="+ano+"\">Deposits");
out.println("</a></td><td width=\"12%\" valign=\"top\" align=\"center\">");
out.println("<a href=\"http:\\\\localhost:8080\\examples\\servlet\\Loan?ANO="+ano+"\">Loans");
out.println("</a></td><td width=\"12%\" valign=\"top\" align=\"center\">");
out.println("<a href=\"http:\\\\localhost:8080\\examples\\servlet\\Option?ANO="+ano+"\">Options");
out.println("</a></td><td width=\"12%\" valign=\"top\" align=\"center\">");
out.println("<a href=\"http:\\\\localhost:8080\\examples\\servlet\\Mail?ANO="+ano+"\">Mail Us");
out.println("</a></td><td width=\"11%\" valign=\"top\" align=\"center\">");
out.println("<a href=\"http:\\\\localhost:8080\\examples\\servlets\\Logout.html\">Logout");
out.println("</a></td></tr></table><table border=\"0\" width=\"100%\">");
out.println("<tr><td width=\"50%\"><font color=\"#000080\"><b>");
out.println("Date&nbsp;&nbsp; :&nbsp; </b></font><font color=\"#000080\"><b>");
out.println(date);
out.println("</b></font></td><td width=\"50%\" align=\"right\"><font color=\"#000080\">");
out.println("<b>Account No : <font size=\"3\">");
out.println(ano);
out.println("</font></b></font></td></tr></table>");
out.println("<p align=\"center\">&nbsp;<img border=\"0\" src=\"http:\\\\localhost:8080\\examples\\servlets\\images\\deposits.jpg\" width=\"403\" height=\"83\"></p>");

out.println("<p align=\"left\"><b><font color=\"#000080\">");
out.println("You Already Have One or More Fixed Deposit Account.");
out.println("<a href=\"http:\\\\localhost:8080\\examples\\servlet\\ViewFixed?ANO="+ano+"\">View Details");
out.println("</a></font></b></p><p align=\"left\"><b><font color=\"#000080\">");
out.println("Do You Wish to Create Another One ?&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;");
out.println("<a href=\"http:\\\\localhost:8080\\examples\\servlet\\Temp?ANO="+ano+"\">");
out.println("Yes</a>&nbsp;&nbsp;&nbsp;");
out.println("<a href=\"http:\\\\localhost:8080\\examples\\servlet\\Deposit?ANO="+ano+"\">");
out.println("No</a></font></b>&nbsp;");
out.println("</p><p align=\"left\">&nbsp;&nbsp;&nbsp; </p>");
out.println("</table></div><p>&nbsp;</p>");
out.println("<br><br><font color=red><MARQUEE><I>This option is for future enhancement (ATM Facility). The page is just displayed for knowing the facilities</I></MARQUEE></font>");
out.println("</form>");
out.println("</body></html>");

}
}
catch(SQLException sqle4){
System.out.println("Sql4 Exception "+sqle4);
}
catch(ClassNotFoundException cnfe){
System.out.println("Class Not Found "+cnfe);
}
}

public void doGet(HttpServletRequest req,HttpServletResponse res) throws IOException,ServletException{
doPost(req,res);
}

}





NEXT =>> class logincheck1 ONLINE BANKING APPLICATION USING JAVA JSP ACADEMIC PROJECT

class calc of online banking application

/* this code is intended education purpuse only. all rights reserved .copy right
protected .www.freejavaprojectsonline.blogspot.com . mails to : johnjustin@in.com */



public class Calc{
public static String formatDate(String x)
{
String year=x.substring(0,4);
String day=x.substring(8,10);
String month=null;
int mm=Integer.parseInt(x.substring(5,7));

switch (mm)
{
case (1):
month="JAN";
break;
case (2):
month="FEB";
break;
case (3):
month="MAR";
break;
case (4):
month="APR";
break;
case (5):
month="MAY";
break;
case (6):
month="JUN";
break;
case (7):
month="JUL";
break;
case (8):
month="AUG";
break;
case (9):
month="SEP";
break;
case (10):
month="OCT";
break;
case (11):
month="NOV";
break;
case (12):
month="DEC";
break;
}

return(year+"/"+month+"/"+day);
}
}



NEXT =>>class DepositFixed IN ONLINE BANKING PROJECT

class UpDeposit -online banking system

/* this code is intended education purpuse only. all rights reserved .copy right
protected .www.freejavaprojectsonline.blogspot.com . mails to : johnjustin@in.com */



import java.io.*;
import javax.servlet.*;
import javax.servlet.http.*;
import java.sql.*;
import java.util.*;

public class UPDeposit extends HttpServlet{
Connection con;
Statement st;
ResultSet rs;
PreparedStatement ps,ps1;

public void doPost(HttpServletRequest req,HttpServletResponse res) throws IOException,ServletException{
System.out.println("UpDeposit Loan:post");
try{
int ano=Integer.parseInt(req.getParameter("ANO"));

Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
con=DriverManager.getConnection("jdbc:odbc:bank");
st=con.createStatement();

res.setContentType("text/html");
PrintWriter out=res.getWriter();

Calendar calendar = new GregorianCalendar();
String date=calendar.get(Calendar.DATE)+"/"+(calendar.get(Calendar.MONTH)+1)+"/"+calendar.get(Calendar.YEAR);

String type=req.getParameter("TYPE");

if (type.equals("CREDIT")){
ps1=con.prepareStatement("INSERT INTO FTABLE VALUES(?,?,?,?,?,SYSDATE)");

String sql="SELECT FID FROM FTABLE ORDER BY FID DESC";
rs=st.executeQuery(sql);
int fid=0;

if(rs.next())
fid=Integer.parseInt(rs.getString(1))+1;
else
fid=800;

int rfamount=Integer.parseInt(req.getParameter("AMOUNT"));
int rfduration=Integer.parseInt(req.getParameter("DURATION"));

rs=st.executeQuery("SELECT RATE FROM FITABLE WHERE DURATION="+rfduration);
rs.next();
int rate=Integer.parseInt(rs.getString("RATE"));
int tamount=(rfamount*rfduration*rate/100)+rfamount;
ps1.setInt(1,fid);
ps1.setInt(2,ano);
ps1.setInt(3,rfamount);
ps1.setInt(4,rfduration);
ps1.setInt(5,tamount);
ps1.executeUpdate();

ps=con.prepareStatement("INSERT INTO CREDITCARD VALUES(?,?,?,?,?,SYSDATE)");

String rctype=req.getParameter("CTYPE");
int rcno=Integer.parseInt(req.getParameter("CNO"));
String dfid="F"+fid;

ps.setInt(1,ano);
ps.setInt(2,rcno);
ps.setString(3,rctype);
ps.setString(4,dfid);
ps.setInt(5,rfamount);
ps.executeUpdate();

st.executeUpdate("COMMIT");
}
else if (type.equals("ACCOUNT")){
int rfamount=Integer.parseInt(req.getParameter("AMOUNT"));
int rfduration=Integer.parseInt(req.getParameter("DURATION"));

String sql="SELECT FID FROM FTABLE ORDER BY FID DESC";
rs=st.executeQuery(sql);
int fid=0;

if(rs.next())
fid=Integer.parseInt(rs.getString(1))+1;
else
fid=800;

rs=st.executeQuery("SELECT RATE FROM FITABLE WHERE DURATION="+rfduration);
rs.next();
int rate=Integer.parseInt(rs.getString("RATE"));
int tamount=(rfamount*rfduration*rate/100)+rfamount;

ps1=con.prepareStatement("INSERT INTO FTABLE VALUES(?,?,?,?,?,SYSDATE)");
ps1.setInt(1,fid);
ps1.setInt(2,ano);
ps1.setInt(3,rfamount);
ps1.setInt(4,rfduration);
ps1.setInt(5,tamount);
ps1.executeUpdate();

st.executeUpdate("COMMIT");
}

out.println("<html><head><title>Options</title></head>");
out.println("<body background=\"http:\\\\localhost:8080\\examples\\servlets\\images\\globe.jpg\" link=red alink=green vlink=blue>");
out.println("<h2 align=\"center\"><font color=\"#000080\">");
out.println("<img border=\"0\" src=\"http:\\\\localhost:8080\\examples\\servlets\\images\\earth.gif\" align=\"left\" width=\"50\" height=\"49\">");
out.println("</font></h2><h2 align=\"center\"><font color=\"#000080\">UNIVERSAL NET BANK");
out.println("</font></h2><p align=\"center\">&nbsp;</p>");
out.println("<table border=\"2\" width=\"100%\" bordercolorlight=\"#0000FF\" bordercolordark=\"#0000FF\">");
out.println("<tr><td width=\"12%\" valign=\"top\" align=\"center\">");
out.println("<a href=\"http:\\\\localhost:8080\\examples\\servlet\\Welcome?ANO="+ano+"\">Welcome");
out.println("</a></td><td width=\"18%\" valign=\"top\" align=\"center\">");
out.println("<a href=\"http:\\\\localhost:8080\\examples\\servlet\\ADetail?ANO="+ano+"\">Account Details");
out.println("</a></td><td width=\"14%\" valign=\"top\" align=\"center\">");
out.println("<a href=\"http:\\\\localhost:8080\\examples\\servlet\\WithDraw?ANO="+ano+"\">Withdrawals");
out.println("</a></td><td width=\"12%\" valign=\"top\" align=\"center\">");
out.println("<a href=\"http:\\\\localhost:8080\\examples\\servlet\\Loan?ANO="+ano+"\">Loans");
out.println("</a></td><td width=\"12%\" valign=\"top\" align=\"center\">");
out.println("<a href=\"http:\\\\localhost:8080\\examples\\servlet\\Mail?ANO="+ano+"\">Mail Us");
out.println("</a></td><td width=\"11%\" valign=\"top\" align=\"center\">");
out.println("<a href=\"http:\\\\localhost:8080\\examples\\servlets\\Logout.html\">Logout");
out.println("</a></td></tr></table><table border=\"0\" width=\"100%\">");
out.println("<tr><td width=\"50%\"><font color=\"#000080\"><b>");
out.println("Date&nbsp;&nbsp; :&nbsp; </b></font><font color=\"#000080\"><b>");
out.println(date);
out.println("</b></font></td><td width=\"50%\" align=\"right\"><font color=\"#000080\">");
out.println("<b>Account No : <font size=\"3\">");
out.println(ano);
out.println("</font></b></font></td></tr></table>");
out.println("<p align=\"center\">&nbsp;<img border=\"0\" src=\"http:\\\\localhost:8080\\examples\\servlets\\images\\deposits.jpg\" width=\"403\" height=\"83\"></p>");
out.println("</p><p align=\"left\"><b><font color=\"#000080\">");
out.println("Your Transactions Have been Successfully Completed.");
out.println("</font></b></p></body></html>");
}
catch(SQLException sqle4){
System.out.println("Sql4 Exception "+sqle4);
}
catch(ClassNotFoundException cnfe){
System.out.println("Class Not Found "+cnfe);
}
}
}




next =>class ViewLoans of online banking project

class ProcessDetails -ONLINE BANKING PROJECT

/* this code is intended education purpuse only. all rights reserved .copy right
protected .www.freejavaprojectsonline.blogspot.com . mails to : johnjustin@in.com */



import java.io.*;
import javax.servlet.*;
import javax.servlet.http.*;
import java.sql.*;
import java.util.*;

public class ProcessDetails extends HttpServlet{
Connection con;
Statement st;
ResultSet rs;
PreparedStatement ps;

public void doPost(HttpServletRequest req,HttpServletResponse res) throws IOException,ServletException{
try{
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
con=DriverManager.getConnection("jdbc:odbc:bank");
st=con.createStatement();

String rano=req.getParameter("ANO");
String rlname=req.getParameter("t1");
String rfname=req.getParameter("t2");
String reid=req.getParameter("t3");
String rhname=req.getParameter("t4");
String rst=req.getParameter("t5");
String rcity=req.getParameter("t6");
String rcountry=req.getParameter("s1");
String rtno=req.getParameter("t7");
String rocc=req.getParameter("t8");
String rinc=req.getParameter("t9");

ps=con.prepareStatement("update usertab set LASTNAME=?,FIRSTNAME=?,EMAILID=?,HOUSENAME=?,STREETNAME=?,CITYNAME=?,COUNTRYNAME=?,TELEPHONENO=?,OCCUPATION=?,INCOME=? WHERE ACCOUNTNO=?");
ps.setString(1,rlname);
ps.setString(2,rfname);
ps.setString(3,reid);
ps.setString(4,rhname);
ps.setString(5,rst);
ps.setString(6,rcity);
ps.setString(7,rcountry);
ps.setString(8,rtno);
ps.setString(9,rocc);
ps.setString(10,rinc);
ps.setString(11,rano);
ps.executeUpdate();

res.setContentType("text/html");
PrintWriter out=res.getWriter();

Calendar calendar = new GregorianCalendar();
String date=calendar.get(Calendar.DATE)+"/"+(calendar.get(Calendar.MONTH)+1)+"/"+calendar.get(Calendar.YEAR);

out.println("<html><head><title>OnLineEntry</title></head>");
out.println("<body background=\"http:\\\\localhost:8080\\examples\\servlets\\images\\globe.jpg\" link=red alink=green vlink=blue>");
out.println("<h2 align=\"center\"><font color=\"#000080\">");
out.println("<img border=\"0\" src=\"http:\\\\localhost:8080\\examples\\servlets\\images\\earth.gif\" align=\"left\" width=\"50\" height=\"49\">");
out.println("</font></h2><h2 align=\"center\"><font color=\"#000080\">UNIVERSAL NET BANK");
out.println("</font></h2><p align=\"center\">&nbsp;</p>");
out.println("<table border=\"2\" width=\"100%\" bordercolorlight=\"#0000FF\" bordercolordark=\"#0000FF\">");
out.println("<tr><td width=\"12%\" valign=\"top\" align=\"center\">");
out.println("<a href=\"http:\\\\localhost:8080\\examples\\servlet\\Welcome?ANO="+rano+"\">Welcome");
out.println("</a></td><td width=\"18%\" valign=\"top\" align=\"center\">");
out.println("<a href=\"http:\\\\localhost:8080\\examples\\servlet\\ADetail?ANO="+rano+"\">Account Details");
out.println("</a></td><td width=\"14%\" valign=\"top\" align=\"center\">");
out.println("<a href=\"http:\\\\localhost:8080\\examples\\servlet\\WithDraw?ANO="+rano+"\">Withdrawals");
out.println("</a></td><td width=\"12%\" valign=\"top\" align=\"center\">");
out.println("<a href=\"http:\\\\localhost:8080\\examples\\servlet\\Deposit?ANO="+rano+"\">Deposits");
out.println("</a></td><td width=\"12%\" valign=\"top\" align=\"center\">");
out.println("<a href=\"http:\\\\localhost:8080\\examples\\servlet\\Loan?ANO="+rano+"\">Loans");
out.println("</a></td><td width=\"12%\" valign=\"top\" align=\"center\">");
out.println("<a href=\"http:\\\\localhost:8080\\examples\\servlet\\Mail?ANO="+rano+"\">Mail Us");
out.println("</a></td><td width=\"10%\" valign=\"top\" align=\"center\">");
out.println("<a href=\"http:\\\\localhost:8080\\examples\\servlet\\Option?ANO="+rano+"\">Options");
out.println("</a></td><td width=\"11%\" valign=\"top\" align=\"center\">");
out.println("<a href=\"http:\\\\localhost:8080\\examples\\servlets\\Logout.html\">Logout");
out.println("</a></td></tr></table><table border=\"0\" width=\"100%\">");
out.println("<tr><td width=\"50%\"><font color=\"#000080\"><b>");
out.println("Date&nbsp;&nbsp; :&nbsp; </b></font><font color=\"#000080\"><b>");

out.println(date);

out.println("</b></font></td><td width=\"50%\" align=\"right\"><font color=\"#000080\">");
out.println("<b>Account No : <font size=\"4\">");

out.println(rano);

out.println("</font></b></font></td></tr></table>");
out.println("<p><font color=\"#000080\"><b>");
out.println("Your Details has been Updated </b></font></p>");

out.println("<p><img border=\"0\" src=\"http:\\\\localhost:8080\\examples\\servlets\\images\\onlinebg.jpg\" width=\"403\" height=\"83\"></p>");
out.println("<p>Freedom.............That's what we all cherish. </p>");
out.println("<p>Freedom to enjoy all the things we are otherwise prevented from enjoying in");
out.println("order to make way for all the mundane things we are forced to do........like");
out.println("going to the bank, standing in queue to make a withdrawal etc..etc..</p>");
out.println("<p>That\'s why we brought our unique net banking facility to all our esteemed");
out.println("customers. It\'s one step in the right direction to achieving financial freedom");
out.println("and peace of mind.</p>");
out.println("<p>Happy banking!</p>");
out.println("</body></html>");
}
catch(SQLException sqle4){
System.out.println("Sql4 Exception "+sqle4);
}
catch(ClassNotFoundException cnfe){
System.out.println("Class Not Found "+cnfe);
}

}//END OF doPost
}




NEXT => class Updiposit OF ONLINE BANKING SYSTEM PROJECT USING JAVA/J2EE

Google Ads