Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added 157x81_goa.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added 157x81_mice.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added 294x46-citibank_ad.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added 466x246-Pilotimage-Best-of-india.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added 93X56-offbeat-hotels.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added 93x56-malaysia.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
52 changes: 52 additions & 0 deletions CHECK.JSP
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
<html>
<body>
<%@page language="java" import="java.sql.*,java.io.*" %>
<%
String x="",y="";
x=request.getParameter("n");
y=request.getParameter("pwd");
try
{
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
}
catch(ClassNotFoundException e)
{}

try
{
Connection con=DriverManager.getConnection("jdbc:odbc:mar");
PreparedStatement p=con.prepareStatement("select name,key from aaa where name=? and pass=?");
p.setString(1,x);
p.setString(2,y);
ResultSet rs=p.executeQuery();
String k="";
if(rs.next())
{
session.setAttribute("user",x);
k=rs.getString(2);
int ss=Integer.parseInt(k);
if(ss>6)
{
response.sendRedirect("http://localhost:7000/examples/marees/home.jsp");
}
else if(ss>3)
{
response.sendRedirect("http://localhost:7000/examples/marees/home1.jsp");
}
else if(ss>0 || ss==3)
{
response.sendRedirect("http://localhost:7000/examples/marees/home2.jsp");
}

}
else
{

response.sendRedirect("http://localhost:7000/examples/marees/err.jsp");

}
}
catch(SQLException e){}
%>
</body>
</html>
Binary file added Copy of product_standarddebitmastercard.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added FLAG.GIF
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions META-INF/context.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
<?xml version="1.0" encoding="UTF-8"?>
<Context path="/airlines"/>
19 changes: 19 additions & 0 deletions WEB-INF/web.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<?xml version="1.0" encoding="UTF-8"?>
<web-app version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
<servlet>
<servlet-name>Registration1</servlet-name>
<servlet-class>Registration1</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>Registration1</servlet-name>
<url-pattern>/Registration1</url-pattern>
</servlet-mapping>
<session-config>
<session-timeout>
30
</session-timeout>
</session-config>
<welcome-file-list>
<welcome-file>Welcome.html</welcome-file>
</welcome-file-list>
</web-app>
29 changes: 29 additions & 0 deletions about.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
import javax.servlet.*;
import javax.servlet.http.*;
import java.io.*;
public class about extends HttpServlet
{
public void doGet(HttpServletRequest re,HttpServletResponse rs)
throws ServletException,IOException
{
rs.setContentType("text/html");
PrintWriter out=rs.getWriter();
out.println("<html>");
out.println("<head><title>cyber credit card system</title></head>");
out.println("<body alink=#000000 vlink=maroon bgcolor=#ded7be>");
out.println("<a href='http://localhost:8080/servlet/gloss_of_terms' target='second'>Guide</a>");
out.println("<br><br>");
out.println("<a href='http://localhost:8080/servlet/best_card' target='second'>Choose your own best card</a>");
out.println("<br><br>");
out.println("<a href='http://localhost:8080/servlet/cost_card' target='second'>Cost of the cards</a>");
out.println("<br><br>");
out.println("<a href='http://localhost:8080/servlet/fact' target='second'>Hard Facts</a>");
out.println("<br><br>");
out.println("<a href='http://localhost:8080/servlet/contact' target='second'>Contact us</a>");
out.println("<br><br>");
out.println("<a href='http://localhost:8080/servlet/aboutus' target='second'>About us</a>");
out.println("<br><br>");
out.println("</body></html>");
out.close();
}
}
33 changes: 33 additions & 0 deletions about1.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
import javax.servlet.*;
import javax.servlet.http.*;
import java.io.*;
public class about1 extends HttpServlet
{
public void doGet(HttpServletRequest re,HttpServletResponse rs)
throws ServletException,IOException
{
rs.setContentType("text/html");
PrintWriter out=rs.getWriter();
out.println("<html>");
out.println("<head><title>cyber credit card system</title>");
out.println("</head>");
out.println("<body alink=#990000 vlink=#000000 bgcolor=#ded7be>");
out.println("<a href='http://localhost:8080/servlet/pick' target='pick'>Cards</a>");
out.println("<br><br>");
out.println("<a href='http://localhost:8080/servlet/gloss_of_terms' target='pick'>Guide</a>");
out.println("<br><br>");
out.println("<a href='http://localhost:8080/servlet/best_card' target='pick'>Choose your own best card</a>");
out.println("<br><br>");
out.println("<a href='http://localhost:8080/servlet/cost_card' target='pick'>Cost of the cards</a>");
out.println("<br><br>");
out.println("<a href='http://localhost:8080/servlet/fact' target='pick'>Hard Facts</a>");
out.println("<br><br>");
out.println("<a href='http://localhost:8080/servlet/contact' target='pick'>Contact us</a>");
out.println("<br><br>");
out.println("<a href='http://localhost:8080/servlet/aboutus' target='pick'>About us</a>");
out.println("<br><br>");
out.println("</body>");
out.println("</html>");
out.close();
}
}
26 changes: 26 additions & 0 deletions aboutus.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
import javax.servlet.*;
import javax.servlet.http.*;
import java.io.*;
public class aboutus extends HttpServlet
{
public void doGet(HttpServletRequest re,HttpServletResponse rs)
throws ServletException,IOException
{
rs.setContentType("text/html");
PrintWriter out=rs.getWriter();
out.println("<html>");
out.println("<head><title>Cyber Credit Card System</title>");
out.println("<body bgcolor=#fbfbf1>");
out.println("<marquee align=center bgcolor=#ded7bd direction=left behavior=slide>");
out.println("<font face='Times new roman' size=5 color=#990000><b> ");
out.println("CYBER CREDIT CARD SYSTEM</font>");
out.println("</marquee><br>");
out.println("<h3 align=center><font face=Times new roman color=navy>About us</font></h3>");
out.println("<font face='Times new roman' size=4>");
out.println("<p>Hai<br><br>");
out.println("<a href='http://localhost:8080/servlet/homepage'><img align=right src='d:/student/madhav/project/home3.gif'></a>");
out.println("</body>");
out.println("<html>");
out.close();
}
}
25 changes: 25 additions & 0 deletions accounts.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@

import java.io.*;
import javax.servlet.http.*;
import javax.servlet.*;
public class accounts extends HttpServlet
{
public void doGet(HttpServletRequest request,HttpServletResponse response)
throws ServletException,IOException
{
response.setContentType("text/html");
PrintWriter out=response.getWriter();
out.println("<body bgcolor='#fbfbf1'>");
out.println("<br><img align=left src='d:/student/madhav/project/rose.gif'>");
out.println("<center>");
out.println("<br><br><br><br><br><br><br><big>WELCOME ACCOUNTS DETAILS OPTIONS </big>");
out.println("<br><br>");
out.println("<a href='http://localhost:8080/servlet/newaccounts'>NEWACCOUNT CREATION</a>");
out.println("<br><br>");
out.println("<a href='http://localhost:8080/servlet/oldaccount'>OLDACCOUNT DEATILS</a><br>");
out.println("<br><img align=right src='d:/student/madhav/project/rose.gif'>");
out.println("</body>");
out.println("</form>");
out.println("</html>");
}
}
Binary file added adv.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added adv1.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added adv2.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added all.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added amex_blue_cash.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added amexgold.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added appl.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added arrow.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added back_1.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
90 changes: 90 additions & 0 deletions balance.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
import java.io.*;
import javax.servlet.http.*;
import javax.servlet.*;
public class balance extends HttpServlet
{
public void doGet(HttpServletRequest request,HttpServletResponse response)
throws ServletException,IOException
{
response.setContentType("text/html");
PrintWriter out=response.getWriter();
out.println("<html><head><title>Balance Transfer</title>");
out.println("<SCRIPT LANGUAGE='JavaScript'>");
out.println("<!--");

out.println("function validate()");
out.println("{");
out.println("var accno,shopaccno,puramt");
out.println("accno=document.form1.crno.value");
out.println("shopaccno=document.form1.nno.value");
out.println("puramt=document.form1.amt.value");

out.println("if(accno==0){");
out.println("alert('ENTER YOUR ACCOUNT NUMBER')");
out.println("}");

out.println("else if(isNaN(parseInt(accno))){");
out.println("alert('ENTER YOUR ACOUNT NUMBER CORRECTLY')");
out.println("}");

out.println("if(shopaccno==0){");
out.println("alert('PLEASE ENTER THE SHOP ACCOUNT NUMBER')");
out.println("}");

out.println("else if(isNaN(parseInt(shopaccno))){");
out.println("alert('ENTER SHOP ACOUNT NUMBER CORRECTLY')");
out.println("}");

out.println("if(puramt==0){");
out.println("alert('PLEASE ENTER PURCHASING AMOUNT')");
out.println("}");

out.println("else if(isNaN(parseInt(puramt))){");
out.println("alert('ENTER PURCHASING AMOUNT CORRECTLY')");
out.println("}");
out.println("}");

out.println("-->");
out.println("</SCRIPT>");
out.println("</head>");

out.println("<BODY bgcolor='#fbfbf1'>");
out.println("<form name='form1' action=http://localhost:8080/servlet/balance1>");
out.println("<br>");
out.println("<div align='center'>");
out.println("<p><font size='6' color='black'><marquee behavior='alternate'><b>BALANCE TRANSFER DETAILS</b></marquee></font></p>");
out.println("<img align=left src='d:/student/madhav/project/redline.gif'>");
out.println("<p>&nbsp;</p>");
out.println("<table border='2' width='60%' height='30%'>");
out.println("<br><br>");
out.println("<tr>");
out.println("<td width='44%' height='28'>");
out.println("<div align='right'><b>Customer Card Number: </b></div>");
out.println("</td>");
out.println("<td width='46%' height='28'>");
out.println("<input type='text' name='crno' size=20>");
out.println("</td>");
out.println("<tr>");
out.println("<td width='54%' height='28'> ");
out.println("<div align='right'><b>Shop Account No: </b></div>");
out.println("</td>");
out.println("<td width='46%' height='28'> ");
out.println("<input type='text' name='nno' size=20>");
out.println("</td>");
out.println("<tr>");
out.println("<td width='54%' height='28'>");
out.println("<div align='right'><b>Amount Transfer: </b></div>");
out.println("<td width='46%' height='28'> ");
out.println("<input type='text' name='amt' size=20>");
out.println("</td>");
out.println("</tr>");
out.println("</table>");
out.println("<p>");
out.println("<input type=submit name=b1 value='Submit' onmouseup=validate()>");
out.println("</p>");
out.println("</div>");
out.println("</form>");
out.println("<p>&nbsp;</p></BODY>");
out.println("</HTML>");
}
}
91 changes: 91 additions & 0 deletions balance1.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,91 @@
import java.io.*;
import javax.servlet.*;
import javax.servlet.http.*;
import java.sql.*;
public class balance1 extends HttpServlet
{
PrintWriter pw;
Connection con;
Statement st,st1,st2;
ResultSet r,r1;
String s3,s4,s33;
int c1,c2,s1,s2,s5,s55,s11,c11,s22,temp=0;
public void doGet(HttpServletRequest request,HttpServletResponse response)
throws ServletException,IOException
{
try
{
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
con=DriverManager.getConnection("jdbc:odbc:bm");
st=con.createStatement();
st1=con.createStatement();
st2=con.createStatement();
response.setContentType("text/html");
pw=response.getWriter();
}
catch (Exception e)
{
pw.println("DSN ERROR"+e);
}
try
{
s33=request.getParameter("crno");
c11=Integer.parseInt(s33);
s3=request.getParameter("nno");
c1=Integer.parseInt(s3);
s4=request.getParameter("amt");
c2=Integer.parseInt(s4);
r=st.executeQuery("select cardno,cardtype from card");
while(r.next())
{
s1=r.getInt(1);
s2=r.getInt(2);
if ( c11==(s1-3) & s2>c2 & s2>500)
{
r1=st.executeQuery("select accountno,amount from account");
while(r1.next())
{
s11=r1.getInt(1);
s22=r1.getInt(2);
if(c1==s11 & s2>c2)
{
s5=c2+s22;
pw.println("<body bgcolor='#fbfbf1'>");
pw.println("<center><b>Amount is added to Shop account");
pw.println("<br>");
pw.println("The Total Amount in Shop account:</b>"+s5);
pw.println("<br><br><br>");
st1.executeUpdate("update account set amount="+s5+" where accountno="+s11);
break;
}
}
s55=s2-c2;
pw.println("<center><b>Amount is Decreased to Your Card");
pw.println("<br>");
pw.println(" Now, The Total Amount in Your Card:</b>"+s55);
pw.println("<br><br><br>");
pw.println("<a href='http://localhost:8080/servlet/selectoption'>SELECTION</a></center>");
st2.executeUpdate("update card set cardtype="+s55+" where cardno="+s1);
temp=temp+1;
break;
}
else
temp=0;

}
if (temp==0)
{
pw.println("<html><head><title>Card Number,Amount Validation</title></head>");
pw.println("<body bgcolor='#fbfbf1'>");
pw.println("<center><b>Please check your CARD number and Amount<br><br>");
pw.println("<a href='http://localhost:8080/servlet/balance'>Previous</a></b></center>");
pw.println("</body></html>");
}

}
catch(Exception e)
{
pw.println("hai"+e);
}
}
}
Loading