1 Introduction
1 Introduction
1.1-Organization
Profile
ORGANIZATION PROFILE
1.2-Synopsis
Virtual Private Network (VPN)
LAN-to-LAN internetworking
Evolution of vpn:
Previously people found it very difficulty to transfer
information from one place to another namely in the case of a WAN
where there was every single possibility of the data being hacked midway
between the two terminals. Further this security measure involved a great
deal of money if we were to use a long distance leased line , both these
factors standing as major barriers to data transfer in WAN.
Alternatively the VPN came into existence making use of
the concept of using a public network say for example the ISDN invoking
some new technology and by providing greater security. The factors by
which VPN provides low cost are
By eliminating the need for expensive long-distance leased
lines. With VPNs the organization needs only a relatively
short dedicated connection to the service provider. This
could be a local broadband connection such as DSL service.
Another way VPN reduce costs is by lessening the need for
long-distance telephone charges for remote access. Recall
that to provide remote access service, VPN clients need only
call into the nearest service provider’s access point. In some
case this may require a long distance call, but in many cases
a local call will suffice.
Office details
Enquiry
Student Registration
Course and Fees Details
Salary details
Staff Details
Staff attendance
CDROM : 52 X
2.2.1Feasibility study
The main objective of the feasibility study is to test the
technical and economic feasibility of developing a computer system. The
proposed system must be evaluated from a technical, social and economic
feasibility of developing a computer system. The proposed system must
be evaluated from a technical viewpoint. Then they must be tested for
economic feasibility.
About HTML:
HTML (hyper text markup language) is a language used to
create hyper text documents that have hyper links embedded in them. It
consists of tags embedded in the text of a document with HTML. We can
build web pages or web document s. it is basically a formatting language
and not a programming language. The browser reading the document
interprets mark up tags to help format the document for subsequent
display to a reader. HTML is a language for describing structured
documents. HTML is a platform independent. WWW (World Wide Web)
pages are written using HTML. HTML tags control in part the
representation of the WWW page when view with web browser. The
browser interprets HTML tags in the web document and displays it.
Different browsers show data differently. Examples of browsers used to
be web pages include:
Netscape
Internet Explorer
JavaDataBaseConnectivity (JDBC)
Overview of New Features
Result set enhancements:
The JDBC 1.0 API provided result sets that had the ability to scroll
in a forward directionally. Scrollable result sets allow for more flexibility
in the processing of results by providing both forward and backward
movement through their contents. In addition, scrollable result sets allow
for relative and absolute positioning. For example, it’s possible to move
to the fourth row in a scrollable result set directly, or to move directly to
the third row following the current row, provided the row exists. The
JDBC API allows result sets to be directly updatable, as well.
Advanced data types:
Increased support for storing persistent Java programming
language objects (Java objects) and a mapping for SQL99 data types such
as binary large objects, and structured types, has been added to the JDBC
API. An application may also customize the map-ping of SQL99
structured types into Java programming language classes.
Row sets:
As its name implies, a row set encapsulates a set of rows. A row set
may or may not maintain an open database connection. When a row set is
‘disconnected’ from its data source, updates performed on the row set are
propagated to the underlying database using an optimistic concurrency
control algorithm. Row sets add support to the JDBC API for the
JavaBeans component model. A row set object is a bean. A row set
implementation may be serializable. Row sets can be created at design
time and used in conjunction with other JavaBeans components in a
visual builder tool to construct an application.
Creating a result set:
The example below illustrates creation of a result set that is
forward-only and uses read-only concurrency. No performance hints are
given by the example, so the driver is free to do whatever it thinks will
result in the best performance. The transaction isolation level for the
connection is not specified, so the default transaction isolation level of the
underlying database is used for the result set that is created. Note that this
code is just written using the JDBC 1.0 API, and that it produces the
same type of result set that would have been produced by the JDBC 1.0
API.
Connection con =
DriverManager.getConnection("jdbc:my_subprotocol:my_subname");
Statement stmt = con.createStatement();
ResultSet rs = stmt.executeQuery("SELECT emp_no, salary from employees")
Multitiered Applications
J2EE Application Components:
2.3.5 SECURITY
The IPsec can work in either between two end systems namely the
Client and the Server or between two Routers . The former case is called
the “Transport Mode” and the latter the “Tunnel Mode”.
The Transport Mode enforces the IPsec policies for traffic
between systems and supports Windows 2000 security. This is the default
mode for IPsec.
The Tunnel Mode enforces IPsec policies for all Internet traffic
and supports legacy operating systems predominantly. This supports
point-to-point security and specifies tunnel end point at both the Routers.
In order to explain the scenario of the IPsec we shall consider the
communication between two computers, the Transport Mode, shown below.
There are two types of providing authentication SHA – Secured
Hash Algorithm and MD5- Message Digest 5. But as in our case we deal
with SHA.
Step 1. The remote user dials into their local ISP and logs into the ISP’s
network as usual.
Step 2. When connectivity to the corporate network is desired, the user
initiates a tunnel request to the destination Security server on the
corporate network. The Security server authenticates the user and creates
the other end of tunnel.
Step 3. The user then sends data through the tunnel which encrypted by
the VPN software before being sent over the ISP connection.
Step 4. The destination Security server receives the encrypted data and
decrypts. The Security server then forwards the decrypted data packets
onto the corporate network. Any information sent back to the Remote
user is also encrypted before being sent over the Internet.
The figure below illustrates that VPN software can be used from
any location through any existing ISP’s dial-in service.
1.2.6.3.2 PKI
PKI stands for Public Key Infrastructure. It is the software used to
manage and control the large scale use of public key cryptography.
The server is dedicated for the application and contains the entire
list of clients. It provides the clients the to access the modules only if they
receive certificates.
CLIENT LOGIN
ENQUIRY TABLE
CLIENT DETAILS
REGISTRATION
SALARY DETAILS
TRAINING
Sends the
Client Request Remote server is invoked
Router by the client and responds
to Client
Context Flow diagram:
Overall module:
ADMIN LOGIN
MARKETING LOGIN
SERVER
TRAINING LOGIN
User module
Client Server DB
Certificate
Login
Admin module
Admin login
Office
Staff
details
Admin main
Enquiry
Attendance
Registration
Course details
Salary details
Marketing module:
Marketing login
Marketing main
Client details
Add client
Training module
TRAINING LOGIN PROJECTS
LIST
J2EE
TRAINING MODULE BATCH
CALL
COURSE CENTER
DETAIL
S/W
TESTING
NETWORKING
MAIN
<html>
<body bgcolor="pink">
<form method="post" action="secure.jsp">
<center>
<h3>VIRTUAL PRIVATE NETWORK </H3>
<BR>
<h2>Login Form</h2>
<br>
<table cellspacing="30">
<tr><td>Login</td><td><input type="text" name="user"></td></tr>
</td></tr>
<tr><td>Password</td><td><input type="password"
name="pass"></td></tr>
<tr><td><input type="submit" value="Submit"></td><td><input
type="reset" value="Reset"><tr>
</table>
</center>
</form>
</body>
</html>
CERTIFICATE
<%@page import="java.sql.*"%>
<%
String user=request.getParameter("user");
String pass=request.getParameter("pass");
String id;
System.out.println(pass);
Connection con=null;
PreparedStatement pr=null;
try
{
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
con=DriverManager.getConnection("jdbc:odbc:central");
pr=con.prepareStatement("select cid from cert where pwd=? and
name=?");
pr.setString(1,pass);
pr.setString(2,user);
ResultSet rs=pr.executeQuery();
if(rs.next())
{
String cid = rs.getString(1);
System.out.println(cid);
%>
<jsp:forward page="id.jsp?id=<>" />
<%
System.out.println(rs.getString(1));
}
con.close();
}
catch(Exception ae)
{
out.println("Exception in Login form" +ae);
}
%>
</body>
</html>
CID
<html>
<head> cer </head>
<body>
certificate
<% String id=request.getParameter("id");
System.out.println(id);
%>
</form>
</body>
</html>
LOGIN
<html>
<body bgcolor="Peachpuff">
<form method="post" action="reg.jsp">
<center>
<h3>CENTRALIZED MANAGEMENT SYSTEM </H3>
<BR>
<h2>Login Form</h2>
<br>
<table cellspacing="30">
<tr><td>Login</td><td><select name="login">
<option value="Administrator">Administrator</option>
<option value="Marketing">Marketing</option>
<option value="Faculty">Faculty</option>
</select></td></tr>
<tr><td>Password</td><td><input type="password"
name="pass"></td></tr>
<tr><td><input type="submit" value="Submit"></td><td><input
type="reset" value="Reset"><tr>
</table>
</center>
</body>
</html>
LOGIN.JSP
<%@page import="java.sql.*"%>
<%
String log=request.getParameter("login");
String pass=request.getParameter("pass");
Connection con=null;
PreparedStatement pr=null;
try
{
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
con=DriverManager.getConnection("jdbc:odbc:central");
pr=con.prepareStatement("select username from login1 where
password=?");
pr.setString(1,pass);
ResultSet rs=pr.executeQuery();
rs.next();
System.out.println(rs.getString(1));
System.out.println(log);
String s1=rs.getString(1);
System.out.println("before");
if(s1.equals(log))
{
System.out.println("a");
%>
<jsp:forward page="Admin.html"/>
<%
}
else
{
System.out.println("b");
%>
<jsp:forward page="Marketing.html"/>
<%
}
con.close();
}
catch(Exception ae)
{
out.println("Exception in Login form" +ae);
}
%>
</body>
</html>
ADMIN
<html>
<body bgcolor="Peachpuff" link="blue" alink="black">
<input type=button
name=b1> <font
size=5><b>Office</b></font>
<ul>
<font size=4>
<li><b><a href="Enquiry1.html">Enquiry form</a></b><br></li>
<br>
<li><b><a href="Registration1.html">Registration
form</a></b><br></li>
<br>
<li><b><a href="Course1.html">Course and fees
details</a></b><br></li>
<br>
<li><b><a href="Salary.html">Salary details</a></b><br></li>
</font>
</ul>
<br>
<input type=button
name=b2> <font
size=5><b>Staff</b></font>
<ul>
<font size=4>
<li><b><a href="staffattendance.html">Attendance</a></b><br></li>
<br>
</font>
</ul>
</body>
</html>
REGISTRATION
<%@page import="java.sql.*"%>
<%
String log=request.getParameter("login");
String pass=request.getParameter("pass");
Connection con=null;
PreparedStatement pr=null;
</body>
</html>
REGISTRATION 1
<%@page import="java.sql.*"%>
<html>
<body bgcolor="Peachpuff">
<CENTER><B><h3> J2EE BATCH I STUDENT LIST </H3>
<H4>TIME 10.AM TO 12.PM </H4></B></CENTER>
<CENTER>
<table BORDER="1" cellpadding="10">
<tr><td>RegNo</td><td>Name</td><td>Course</td><tr>
<%
try
{
Connection con=null;
Statement stat=null;
ResultSet rs=null;
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
con=DriverManager.getConnection("jdbc:odbc:central");
stat=con.createStatement();
rs=stat.executeQuery("select regno,name,coursename from
registration where coursename='J2EE' and batchtimings='10am to
12pm'");
while(rs.next())
{
%>
<tr><td><%=rs.getString(1)%></td>
<td><%=rs.getString(2)%></td>
<td><%=rs.getString(3)%></td></tr>
<%
}
}
catch(Exception e)
{
out.println("error");
}
%>
</table>
</body>
</html>
REGISTRATION 2
<%@page import="java.sql.*"%>
<html>
<body bgcolor="Peachpuff">
<CENTER><B><h3> J2EE BATCH II STUDENT LIST </H3>
<H4>TIME 12.PM TO 2.PM </H4></B></CENTER>
<CENTER>
<table BORDER="1" cellpadding="10">
<tr><td>RegNo</td><td>Name</td><td>Course</td><tr>
<%
</html>
REGISTRATION 3
<%@page import="java.sql.*"%>
<html>
<body bgcolor="Peachpuff">
<CENTER><B><h3> J2EE BATCH III STUDENT LIST </H3>
<H4>TIME 2.PM TO 4.PM </H4></B></CENTER>
<CENTER>
<table BORDER="1" cellpadding="10">
<tr><td>RegNo</td><td>Name</td><td>Course</td><tr>
<%
try
{
Connection con=null;
Statement stat=null;
ResultSet rs=null;
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
con=DriverManager.getConnection("jdbc:odbc:central");
stat=con.createStatement();
rs=stat.executeQuery("select regno,name,coursename from
registration where coursename='J2EE' and batchtimings='2pm to 4pm'");
while(rs.next())
{
%>
<tr><td><%=rs.getString(1)%></td>
<td><%=rs.getString(2)%></td>
<td><%=rs.getString(3)%></td></tr>
<%
}
}
catch(Exception e)
{
out.println("error");
}
%>
</table>
</body>
</html>
REGISTRATION 4
<%@page import="java.sql.*"%>
<html>
<body bgcolor="Peachpuff">
<CENTER><B><h3> J2EE BATCH IV STUDENT LIST </H3>
<H4>TIME 4.PM TO 6.PM </H4></B></CENTER>
<CENTER>
</html>
REGISTRATION 5
<%@page import="java.sql.*"%>
<html>
<body bgcolor="Peachpuff">
<CENTER><B><h3> SOFTWARE TESTING BATCH I STUDENT
LIST </H3>
<H4>TIME 10.AM TO 12.PM </H4></B></CENTER>
<CENTER>
<table BORDER="1" cellpadding="10">
<tr><td>RegNo</td><td>Name</td><td>Course</td><tr>
<%
try
{
Connection con=null;
Statement stat=null;
ResultSet rs=null;
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
con=DriverManager.getConnection("jdbc:odbc:central");
stat=con.createStatement();
rs=stat.executeQuery("select regno,name,coursename from
registration where coursename='Software Testing' and
batchtimings='10am to 12pm'");
while(rs.next())
{
%>
<tr><td><%=rs.getString(1)%></td>
<td><%=rs.getString(2)%></td>
<td><%=rs.getString(3)%></td></tr>
<%
}
}
catch(Exception e)
{
out.println("error");
}
%>
</table>
</body>
</html>
REGISTRATION 6
<%@page import="java.sql.*"%>
<html>
<body bgcolor="Peachpuff">
<CENTER><B><h3> SOFTWARE TESTING BATCH II STUDENT
LIST </H3>
<H4>TIME 12.PM TO 2.PM </H4></B></CENTER>
<CENTER>
<table BORDER="1" cellpadding="10">
<tr><td>RegNo</td><td>Name</td><td>Course</td><tr>
<%
try
{
Connection con=null;
Statement stat=null;
ResultSet rs=null;
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
con=DriverManager.getConnection("jdbc:odbc:central");
stat=con.createStatement();
rs=stat.executeQuery("select regno,name,coursename from
registration where coursename='Software Testing' and
batchtimings='12pm to 2pm'");
while(rs.next())
{
%>
<tr><td><%=rs.getString(1)%></td>
<td><%=rs.getString(2)%></td>
<td><%=rs.getString(3)%></td></tr>
<%
}
}
catch(Exception e)
{
out.println("error");
}
%>
</table>
</body>
</html>
REGISTRATION 6
<%@page import="java.sql.*"%>
<html>
<body bgcolor="Peachpuff">
<CENTER><B><h3> SOFTWARE TESTING BATCH III STUDENT
LIST </H3>
<H4>TIME 2.PM TO 4.PM </H4></B></CENTER>
<CENTER>
<table BORDER="1" cellpadding="10">
<tr><td>RegNo</td><td>Name</td><td>Course</td><tr>
<%
try
{
Connection con=null;
Statement stat=null;
ResultSet rs=null;
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
con=DriverManager.getConnection("jdbc:odbc:central");
stat=con.createStatement();
rs=stat.executeQuery("select regno,name,coursename from
registration where coursename='Software Testing' and
batchtimings='2pm to 4pm'");
while(rs.next())
{
%>
<tr><td><%=rs.getString(1)%></td>
<td><%=rs.getString(2)%></td>
<td><%=rs.getString(3)%></td></tr>
<%
}
}
catch(Exception e)
{
out.println("error");
}
%>
</table>
</body>
</html>
REGISTRATION 7
<%@page import="java.sql.*"%>
<html>
<body bgcolor="Peachpuff">
<CENTER><B><h3> SOFTWARE TESTING BATCH IV STUDENT
LIST </H3>
<H4>TIME 4.PM TO 6.PM </H4></B></CENTER>
<CENTER>
<table BORDER="1" cellpadding="10">
<tr><td>RegNo</td><td>Name</td><td>Course</td><tr>
<%
try
{
Connection con=null;
Statement stat=null;
ResultSet rs=null;
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
con=DriverManager.getConnection("jdbc:odbc:central");
stat=con.createStatement();
rs=stat.executeQuery("select regno,name,coursename from
registration where coursename='Software Testing' and
batchtimings='4pm to 6pm'");
while(rs.next())
{
%>
<tr><td><%=rs.getString(1)%></td>
<td><%=rs.getString(2)%></td>
<td><%=rs.getString(3)%></td></tr>
<%
}
}
catch(Exception e)
{
out.println("error");
}
%>
ENQUIRY
<html>
<body bgcolor="Peachpuff">
<SCRIPT LANGUAGE="JavaScript">
function valid(form)
{
var field1=form.name;
var field2=form.address;
var field3=form.phone;
var field4=form.mphone;
var field5=form.email;
var field6=form.qualification;
var field7=form.regcourse;
var field8=form.timings;
var field9=form.reference;
name=field1.value;
address=field2.value;
phone=field3.value;
mphone=field4.value;
email=field5.value;
qualification=field6.value;
regcourse=field7.value;
timings=field8.value;
reference=field9.value;
alert("hai1");
if(name.length==0)
{
alert("Name cannot be blank");
field1.focus();
return false;
}
else if(address.length==0)
{
alert("Address cannot be blank");
field2.focus();
return false;
}
else if(phone.length==0)
{
alert("Phone cannot be blank");
field3.focus();
return false;
}
else if(mphone.length==0)
{
alert("MobilePhone cannot be blank");
field4.focus();
return false;
}
else if(email.length==0)
{
alert("email cannot be blank");
field5.focus();
return false;
}
else if(qualification.length==0)
{
alert("qualification cannot be blank");
field6.focus();
return false;
}
else if(regcourse.length==0)
{
alert("regcourse cannot be blank");
field7.focus();
return false;
}
else if(timings.length==0)
{
alert("timings cannot be blank");
field8.focus();
return false;
}
else if(reference.length==0)
{
alert("reference cannot be blank");
field9.focus();
return false;
}
}
</SCRIPT>
<table border=0>
<tr>
<td>
<table border=0>
<tr>
<td><h4>Name:</h4></td><td><input type=text
name="name"></td>
<tr>
<tr>
<td><h4>Address:</h4></td><td><textarea
name="address" rows=3 cols=25></textarea></td>
<tr>
<tr>
<td><h4>Phone:</h4></td><td><input type=text
name="phone"></td>
<tr>
<tr>
<td><h4>Mobile Phone:</h4></td><td><input type=text
name="mphone"></td>
<tr>
<tr>
<td><h4>EMail:</h4></td><td><input type=text
name="email"></td>
<tr>
</table>
</td>
<td valign=top>
<table border=0>
<tr>
<td><h4>Qualification:</h4></td><td><input type=text
name="qualification"></td>
<tr>
<tr>
<td><h4>Course :</h4></td><td><select
name="regcourse">
<option value="J2EE">J2EE</option>
<option value="Software Testing">Software
Testing</option>
<option value="Call Center">Call Center</option>
<option value="Networking">Networking</option>
</select> </td>
<tr>
<tr>
<td><h4>Timings:</h4></td><td><select name="timings">
<option value="10 AM to 12
AM">10 am to 12 am</option>
<option value="1 PM to 3
PM">1 pm to 3 pm</option>
<option value="3 PM to 5
PM">3 pm to 5 pm</option>
<option value="5 PM to 7
PM">5 pm to 7 pm</option>
</select></td>
<tr>
<tr>
<td><h4>Reference:</h4></td><td><input type=text
name="reference"></td>
<tr>
</table>
</td>
</tr>
</table>
</center>
<p><center> <input type="submit"
value="Submit"> <input type="reset"
value="Reset"></center></p>
</p>
</form>
</body>
</html>
STAFF ATTENDANCE
<html>
<body bgcolor="Peachpuff">
<SCRIPT LANGUAGE="JavaScript">
function valid(form)
{
var field1=form.number;
var field2=form.ename;
number=field1.value;
ename=field2.value;
if (number.length==0)
{
alert("enumber cannot be blank");
field1.focus();
return false;
}
else if(ename.length==0)
{
alert("ename cannot be blank");
field2.focus();
return false;
}
}
</SCRIPT>
<form onsubmit="return valid(this)" method="post"
action="staffattend.jsp">
<body>
<center>
<br>
<br>
<h2>Staff Attendance Form</h2>
<br>
<br>
<tr>
<tr>
<tr>
<table>
<tr><td>Employee Number</td><td><input type="text" name="number"
size=20></td></tr>
<tr>
<tr>
<tr>
<tr><td>Employee Name</td><td><input type="text" name="ename"
size="20"></td></tr>
<tr><tr>
<tr>
<tr>
<tr>
<tr>
<tr>
</table>
<center>
<br>
<input type="submit"
value="Register">     <input type="reset"
value="Reset">
</center>
</form>
</body>
</html>
STAFF ATTENDANCE.JSP
<%@page import="java.util.*"%>
<jsp:useBean id="st" class="centre.staffattend"/>
<%
String empid=request.getParameter("number");
String name=request.getParameter("ename");
st.set(empid,name);
st.insert();
out.println("Inserted successfully");
%>
ADD CLIENT
<html>
<body bgcolor="Peachpuff">
<SCRIPT LANGUAGE="JavaScript">
function valid(form)
{
var field1=form.company;
var field2=form.address;
var field3=form.phone;
var field4=form.mail;
var field5=form.person;
company=field1.value;
address=field2.value;
phone=field3.value;
mail=field4.value;
person=field5.value;
if (company.length==0)
{
alert("Company cannot be blank");
field1.focus();
return false;
}
else if(address.length==0)
{
alert("Address cannot be blank");
field2.focus();
return false;
}
else if(phone.length==0)
{
alert("Phone cannot be blank");
field3.focus();
return false;
}
else if(mail.length==0)
{
alert("Mail cannot be blank");
field4.focus();
return false;
}
else if(person.length==0)
{
alert("Person cannot be blank");
field5.focus();
return false;
}
}
</SCRIPT>
<form onsubmit="return valid(this)" method="post"
action="addclient.jsp">
<h2><center>Add Client</center></h2>
<center>
<table cellspacing="20">
<tr>
<td>Enter the Company Name</td>
<td><input type="text" name="company"></td>
</tr>
<tr>
<td>Enter the Address</td>
<td><input type="text" name="address"></td>
</tr>
<tr>
<td>Enter the Phone Number</td>
<td><input type="text" name="phone"></td>
</tr>
<tr>
<td>Enter the MailId</td>
<td><input type="text" name="mail"></td>
</tr>
<tr>
<td>Enter the Contact Person</td>
<td><input type="text" name="person"></td>
</tr>
<tr>
<td><input type="submit" value="submit"></td>
<td><input type="reset" value="reset"></td>
</tr>
</table>
</center>
</form>
</body>
</html>
ADD CLIENT.JSP
<%@page import="java.util.*"%>
String company=request.getParameter("company");
String address=request.getParameter("address");
String phone=request.getParameter("phone");
String mail=request.getParameter("mail");
String person=request.getParameter("person");
val.set(company,address,phone,mail,person);
val.insert();
out.println("inserted successfully");
%>
CLIENT DETAILS.JSP
<%@page import="java.util.*"%>
<html>
<body bgcolor="Peachpuff">
<h2><center><u>Client Details</u></center></h2>
<form name=booksdet>
<center>
<table border=1 cellpadding=5>
<tr>
<td>Company</td>
<td>Address</td>
<td>Phone</td>
<td>MailID</td>
<td>Contact Person</td>
</tr>
<%
try
{
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
Connection
con=DriverManager.getConnection("jdbc:odbc:central");
PreparedStatement pr=con.prepareStatement("select * from
ClientDetails");
ResultSet rs=pr.executeQuery();
while(rs.next())
{
%>
<tr>
<td>
<%=rs.getString(1)%>
</td>
<td>
<%=rs.getString(2)%>
</td>
<td>
<%=rs.getString(3)%>
</td>
<td>
<%=rs.getString(4)%>
</td>
<td>
<%=rs.getString(5)%>
</td>
</tr>
<%
}
}
catch(Exception e)
{
out.println("error"+ e);
}
%>
</table>
</center>
</form>
</body>
</html>
ADD PLACEMENT
<%@page import="java.util.*"%>
<jsp:useBean id="val" class="centre.addplacement"/>
<%
String name=request.getParameter("name");
String placement=request.getParameter("placement");
String company=request.getParameter("company");
String person=request.getParameter("person");
String date=request.getParameter("date");
val.set(name,placement,company,person,date);
val.insert();
out.println("inserted successfully");
%>
COURSE DETAILS
<html>
<body bgcolor="Peachpuff">
<h2><b><center>Training offered in various fields</center></b></h2>
<form name=coursedet>
<center>
<table border=0>
<tr>
<td><h2><a
href="J2EE.html">J2EE</a></h2></td>
</tr>
<tr>
<td><h2><a
href="Callcenter.html">Call Center</a></h2></td>
</tr>
<tr>
<td><h2><a
href="software.html">Software Testing</a></h2></td>
</tr>
<tr>
<td><h2><a
href="Networking.html">Networking</a></h2></td>
</tr>
</table>
</center>
</form>
</body>
</html>
MARKETING
<html>
<body bgcolor="Peachpuff" link="blue" alink="black">
<input type=button
name=b1> <font
size=5><b>Marketing</b></font>
<ul>
<font size=4>
<li><b><a href="AddClient.html"> AddClient</a></b></li>
<li><b><a href="ClientDetails.jsp"
target="main">ClientList</a></b></li>
<li><b><a href="Placement.html">Add Placement</a></b></li>
</font>
</ul>
</body>
</html>
PROJECT
<html>
<body bgcolor="Peachpuff" link="blue" alink="black">
<font size=5><b><u>Projects</u></font>
<form name=projectdet1>
<center>
<table border=0>
<tr>
<td><h2>FireWall and IDs</h2></td>
</tr>
<tr>
<td><h2>MultiThreaded System</h2></td>
</tr>
<tr>
<td><h2>Intranet Group Chat</h2></td>
</tr>
<tr>
<td><h2>Mailing System in Jsp</h2></td>
</tr>
<tr>
<td><h2>Voice Conferencing</h2></td>
</tr>
<tr>
<td><h2>IP Chaining & Tunnelling</h2></td>
</tr>
<tr>
<td><h2>Help Desk Management</h2></td>
</tr>
<tr>
<td><h2>Voice Over Internet Protocol</h2></td>
</tr>
</table>
</center>
</form>
</body>
</html>
J2E
<html>
<body bgcolor="Peachpuff">
<h1><center><u>J2EE Training</center></h1>
<h2><center><u>Batch Timings</u></center></h2>
<form name=batchdet>
<center>
<table border=1 cellpadding=5>
<tr>
<th><font size=5><center>Timing</center></font></th>
<th><font size=5><center>Batch No</center></font></th>
</tr>
<tr>
<td><font size=4><b><center>10:00AM to
12:00PM</center></b></font></td>
<td><font size=4><b><center><a href="register.jsp">Batch
1</a></center></b></font></td>
</tr>
<tr>
<td><font size=4><b><center>12:00PM to
2:00PM</center></b></font></td>
<td><font size=4><b><center><a href="register2.jsp">Batch
2</a></center></b></font></td>
</tr>
<tr>
<td><font size=4><b><center>2:00PM to
4:00PM</center></b></font></td>
<td><font size=4><b><center><a href="register3.jsp">Batch
3</a></center></b></font></td>
</tr>
<tr>
<td><font size=4><b><center>4:00PM to
6:00PM</center></b></font></td>
<td><font size=4><b><center><a href="register4.jsp">Batch
4</a></center></b></font></td>
</tr>
</table>
</center>
</form>
</body>
</html>
REGISTRATION-J2EE
<%@page import="java.sql.*"%>
<html>
<body bgcolor="Peachpuff">
<CENTER><B><h3> NET WORKING BATCH IV STUDENT LIST
</H3>
<H4>TIME 4.PM TO 6.PM </H4></B></CENTER>
<CENTER>
<table BORDER="1" cellpadding="10">
<tr><td>RegNo</td><td>Name</td><td>Course</td><tr>
<%
try
{
Connection con=null;
Statement stat=null;
ResultSet rs=null;
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
con=DriverManager.getConnection("jdbc:odbc:central");
stat=con.createStatement();
rs=stat.executeQuery("select
regno,name,coursename from registration where
coursename='Networking' and batchtimings='4pm to 6pm'");
while(rs.next())
{
%>
<tr><td><%=rs.getString(1)%></td>
<td><%=rs.getString(2)%></td>
<td><%=rs.getString(3)%></td></tr>
<%
}
}
catch(Exception e)
{
out.println("error");
}
%>
</table>
</body>
</html>
ADD CLIENT.JAVA
package centre;
import java.util.*;
import java.sql.*;
import java.lang.*;
public class addclient
{
public Connection con=null;
public ResultSet rs=null;
public Statement st=null;
public String Company,Address,Phone,Mail,Person,Query;
SALARY.JAVA
package centre;
import java.util.*;
import java.sql.*;
import java.lang.*;
public class dbsalary
{
public Connection con=null;
public ResultSet rs=null;
public Statement st=null;
public String empno,empname,doj,pay,Query;
this.empno=empno;
this.empname=empname;
this.doj=doj;
this.pay=pay;
try
{
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
con=DriverManager.getConnection("jdbc:odbc:central");
}catch(Exception e){}
}
DCOURSE.JAVA
package centre;
import java.util.*;
import java.sql.*;
import java.lang.*;
public class dbcourse
{
public Connection con=null;
public ResultSet rs=null;
public Statement st=null;
public String courseno,cname,amount,duration,Query;
this.courseno=courseno;
this.cname=cname;
this.amount=amount;
this.duration=duration;
try
{
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
con=DriverManager.getConnection("jdbc:odbc:central");
}catch(Exception e){}
}
ADDPALCEMENT.JAVA
package centre;
import java.util.*;
import java.sql.*;
import java.lang.*;
public class addplacement
{
public Connection con=null;
try
{
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
public void insert()
{
try
{
Query="insert into PlacementDetails values(' "+name+" ','
"+placement+" ',' "+company+" ',' "+person+" ',' "+dop+" ')";
st=con.createStatement();
st.executeQuery(Query);
}catch(Exception e){}
}
}
OUTPUT
CLIENT LOGIN
ADMIN PAGE
ENQUIRY
REGISTRATION
COURSE DETAILS
SALARY
MARKETING
ADDCLIENT
PLACEMENT
J2EE TRAINING
PROJECTS
CONCLUSION
3. CONCLUSION
The VPN has the ability of providing connection between the user
(client) & the server of the organization not within the workplace itself
but from home too with the data being transferred & received in a highly
secured way.
Websites
www.internetwk.com
www.bitpipe.com
www.howstuffworks.com
www.securitydogs.com
www.acronymfinder.com