Download

Download

Featured Posts

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

3:36 PM - By Reetha 0

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



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

About the Author

Onlineinfocity Team Follow me onlineinfocity
View all posts by admin →

Get Updates

Subscribe to our e-mail newsletter to receive updates.

Share This Post

0 comments:

Labels

AI PROJECTS (8) ALL DEPT (42) BCA (22) BE (13) BSC (20) BTECH (17) C PROJECTS (4) C#.NET (19) C++ PROJECTS (2) CHEMISTRY (3) CIVIL (25) CSE (94) DIPLOMA (22) DOWNLOADS (60) ECE (37) EEE (39) FINAL YEAR PROJECTS (30) HOW TO (58) HTML PROJECTS (4) IEEE PROJECTS (108) IT (85) MATLAB PROJECTS (8) MBA (1) mca (73) ME (19) mech (4) MINI PROJECTS (97) MSC (17) MTECH (18) MYSQL PROJECTS (6) NETWORK PROJECTS (7) OTHER PROJECTS (67) OTHERS (28) PAPER PRESENTATION (4) PG (18) PHP PROJECTS (7) PROJECTS (5) SOURCE CODES (22) SYSTEM PROJECTS (15) UG (17) VB PROJECTS (15) WHITE PAPER (19)

Blog Archive

Total Pageviews

Discussion

Followers

Powered by Blogger.
back to top
Don't Forget To Join US Our Community
×