forked from anumarwaha/ST2-Project
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfirst.java
More file actions
23 lines (23 loc) · 799 Bytes
/
first.java
File metadata and controls
23 lines (23 loc) · 799 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
import javax.servlet.*;
import javax.servlet.http.*;
import java.io.*;
public class first 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>");
out.println("<title>Cyber credit card system</title>");
out.println("</head>");
out.println("<frameset cols=20%,* border=0>");
out.println(" <frame src='http://localhost:8080/servlet/about' scroll='no'>");
out.println(" <frame src='http://localhost:8080/servlet/homepage' scroll='no' name='second'>");
out.println("</frameset>");
out.println("</noframes>");
out.println("</html>");
out.close();
}
}