41
1. Introduction:- The Student Evaluation System mainly consists of the information about the students and the faculty members and on the basis of the details one can get the information about the faculty members and the students and students can be evaluated by their performance. This application is designed to evaluate the students and his performance on the basis of there previous semester results, attendance and other activities as well as it also provide details about the faculty members in the department. 1.1 Scope:- Administrator work Student details Faculty details Exam results Attendance details 2. Problem Domain:- This project’s application is in the field of the department of college. The department needs the database for the proper functioning such as student details, faculty details etc. For this we need to create database which may be in the form of documents or files. So whenever you want the data related with these details you will have to scan documents and 1

Asr

Embed Size (px)

Citation preview

Page 1: Asr

1. Introduction:-

The Student Evaluation System mainly consists of the information about the students and

the faculty members and on the basis of the details one can get the information about the faculty

members and the students and students can be evaluated by their performance.

This application is designed to evaluate the students and his performance on the basis of there

previous semester results, attendance and other activities as well as it also provide details about

the faculty members in the department.

1.1 Scope:- Administrator work

Student details

Faculty details

Exam results

Attendance details

2. Problem Domain:-This project’s application is in the field of the department of college. The department

needs the database for the proper functioning such as student details, faculty details etc. For

this we need to create database which may be in the form of documents or files. So whenever

you want the data related with these details you will have to scan documents and files. This

collection of data can be done in two ways which are as follows

Old Conventional or Paper System:-In the Old conventional or paper system we were used to create the records of various

details in the form of documents on papers.

But this system has some limitations:-

1. The system is time consuming as we have to go through the whole documents for the

particular information.

2. The system is resource consuming as it needs a lot of paper documents.

1

Page 2: Asr

Automated System:- The automated system overcomes the limitations of the paper system. It saves time and

does not need any paper documents. It creates databases in the system for storing the

information. The accessing can be easily done through this system.

Our project is based on the automated system which overcomes the limitations of paper

system.

3. Technology Used:-We are using Java JSP, HTML and SQL Server for this project. Java technology can be

used to develop various applications such as desktop technology, enterprise technology, micro

technology, web technology, distributed technology.

In this we will use java technology at front end and to store date we will use the SQL server at

back end .In java web technology we use either JSP or servelt to construct web site we are

going to use JSP .In JSP there are tags which are predefined tags which we can use directly in

our application to design website. In JSP there are some implicit objects which are predefined

such as out, session, forward etc. We are also going to use some html language to design view

pages

3.1 JSP:-Java Server Pages (JSP) technology allows you to easily create Web content that has

both static and dynamic components. JSP technology projects all the dynamic capabilities of

Java Servlet technology but provides a more natural approach to creating static content. The

main features of JSP technology are

A language for developing JSP pages, which are text-based documents that describe how to

process a request and construct a response constructs for accessing server-side objects

Mechanisms for defining extensions to the JSP language.

3.2 HTML:- HTML stands for Hyper Text Markup Language

HTML is a language for describing web pages.

HTML is not a programming language, it is a markup language

A markup language is a set of markup tags

2

Page 3: Asr

HTML uses markup tags to describe web page

3.3 ORACLE DATABASE:-Oracle is an OORDBMS (Object Oriented Relational Database Management System).

We are using oracle 10g database in our project

4. Gantt’s Chart of Work Hours:-A Gantt's chart is a horizontal bar chart developed as a production control tool in 1917

by Henry. L Gantt, an American engineer and social scientist. Frequently used in project

management, a Gantt’s chart provides a graphical illustration of a schedule that helps to plan,

coordinate and track specific tasks in a project. Gantt chart may be simple version created on

graph paper or more complex automated version created using project management

applications such as Microsoft projects.

A Gantt chart is constructed with a horizontal axis representing the total time span of the

project, broken down into increments e.g. days, weeks and months and a vertical axis

representing the task that make up the project.

Gantt chart has become a common technique for representing the phases and activities of a

project work, so they can be understood easily.

Gantt chart of our project is shown here:-

PHASE TIME SPENT (Hrs.)

Analysis 35

Design 14

Coding 7

Testing 14

3

Page 4: Asr

Total Time Spent =70 Hrs

Analysis =50%

Design =20%

Coding =10%

Testing =20%

Analysis Design Coding Testing

1 35 49 56 70

Gantt’s chart of Project

4

Page 5: Asr

Bar Chart

5

Page 6: Asr

5. Analysis:-

5.1 Information Gathering:-

5.1.1 Economic Feasibility:- Economic analysis is most frequently used for evaluation of the effectiveness of the

system .More commonly known as cost benefit analysis, the procedure is to determine the

benefit and saving that are expected from the system and compare them with costs, decisions

are made to design and implement the system. A simple economic analysis that gives the actual

comparison of costs and benefits is much more meaningful in such

In system, the organization is most satisfied by economic feasibility. Because, if the

organization implements this system, it need not require any additional hardware resources as

well as it will saving lot of time.

5.1.2 Technical Feasibility:- Technical feasibility canters on to what extent it can support the system. According to

feasibility analysis procedures the technical feasibility of the system is analyzed and the

technical requirements such as software facilities, procedure, inputs are identified. It is also one

of the important phases of software development activities. The system offers greater levels of

user friendliness combined with greater processing speed. Therefore, the cost of maintenance

can be reduced. Since processing speed is very high and the work is reduced in the

maintenance

5.1.3 Behavioral Feasibility:-People are inherently resistant to change and computer has been known to facilitate

changes .An estimate should be made of how strong the user is likely to move towards the

development of computerized system. These are various levels of users in orders to ensure

proper authentication and authorization and security of sensitive data of organization.

5.2 Functional Requirements:-The functional requirement for the application are just the general used ones like well

running database management system, connectivity etc. The administrator manages all details

such as student’s details, faculty details, exam details. Here brief details of all the department is

given

Student details:

6

Page 7: Asr

In this part we deals about the details of the student such as their address, contact number,

email-id etc. For this we use jsp pages like student.html,log1.jsp , marks.jsp,att.jsp.

Faculty details:

In this part we deals about the details of the faculty such as their qualification, address,

contact number, email-id etc. For this we use jsp pages like faculty.html, log2.jsp, f.jsp, y1.jsp,

y2.jsp, y3.jsp, y4.jsp.

Exam details :

Exam details are an important part as it contains details related with the results of semester

exams of the students. Using marks.jsp.

Attendance details:This part contains the attendance record of the students. att.jsp

5.3 Non Functional Requirement:-

What are the user’s demonstrable needs?User needs a web based system, which will remove all the above mentioned problems

that the user is facing the user wants a web based system, which will reduce the bulk of

paperwork, provide ease of work, flexibility, fast record finding, modifying, adding, removing

and generating the reports.

EffortCompared to the existing system the proposed system will provide a better working

environment in which there will be ease of work and the effort required will be comparatively

less than the existing system.

Time Also the time required a report or for doing any other work will be comparatively less

than in the existing system. Record finding and updating will take less time than the existing

system.

LabourIn the existing system the number of staff required for completing the work is more

while the new system will require less number of staff

5.4 Requirements definition:-

7

Page 8: Asr

Software Requirements:-Operating System : window XP

Database : ORACLE database

Supporting platform : jre1.5 or higher versions

Development tool : jdk1.5 or higher versions

Hardware Requirements:-RAM : Minimum specific pc configuration

HARD DISK : Minimum specific pc configuration

8

Page 9: Asr

6 Design:-

6.1 UML Diagram:-

9

Page 10: Asr

6.2 Database Table Design:-

Student Detail Table:-

Attributes Type

Name Varchar2

Scholar Number Varchar2

Father’s Name Varchar2

Mother’s Name Varchar2

Present Address Varchar2

Permanent Address Varchar2

Email-id Varchar2

Contact Number Varchar2

Date of Birth Varchar2

10th Class Percentage Varchar2

12th Class Percentage Varchar2

Faculty Detail Table:-

Attributes Type

Name Varchar2

Contact Number Varchar2

Qualification Varchar2

Experience Varchar2

Address Varchar2

Email-id Varchar2

Date of Birth Varchar2

10

Page 11: Asr

6.3 Interface Design:-

Student.html

Log1.jsp

11

Page 12: Asr

Log2.jsp

Log3.jsp

12

Page 13: Asr

6.4 Module Identification:-

13

Student Evaluation system

Student login

Can access student and Faculty details

Administrator login Faculty login

Can access student and faculty details and update student details

Can access and update both student and faculty details

Student and Faculty details

Page 14: Asr

6.5 Diagram for Interconnection of Module:-

14

Page 15: Asr

7. Features:- The Student Evaluation System is an infrastructure through which every faculty member

can get the information about each student of the class individually.

The faculty members are allowed to make changes or update the various fields of the

students such that their attendance

Students are not allowed to make any changes in the system. If any student wishes to make

changes in any field then he or she has to consult with the faculty members.

This project only gives the details about the particular student to the faculty members as

well as to the administrator.

This project is prepared for department level and provides services for department level

and further it can be implemented at the college level also.

The website will provide three login Student login, Faculty login and administrator login

through which they can log on to the site and can collect the information about the

students.

The faculty members can update the fields of the students on the basis of their semester

marks, curricular and extracurricular activities, attendance etc.

8. Future Enhancement:-This project is based on department level and college is that in which many

departments exists. So, it could be implemented or extended at college level also. For

enhancing this at college level there is need of whole information about the departments of

college, their faculty, Head of every department, Head of the college, and by extending it we

can compare the students at the level of college.

System can also be extended it in between the group of colleges. For that we need all the

information about students of all other colleges, their faculty information, their Head’s

information. By this one can compare students at more wide area.

For this type of enhancement one has to choose an administrator who, will have right to update

all information. In one can also give the contact number or address of administrator.

15

Page 16: Asr

9. Conclusion:-This system involves a database from which we can extract the details of the faculty

members and students. The main motive of this system is evaluation of the students which is

mainly useful for the faculty.

We can say that with the help of this project we can find the information about the students and

the faculty members so that the faculty members can also compare the students on the basis of

exam marks, attendance and overall performance. With the help of this system the head of the

department can notice the weak students and then some efforts can be made to improve their

performance. The head of the department can also make efforts to enhance the student

capability.

On the basis of the above information of every student, faculty members can easily evaluate

the students and can rank the students. This project is further proposed for the college level and

it can be enhanced up to the university level also. It provides flexibility in the manner that

faculty members can update and can make the changes in the student’s record.

10. References:-

Books:- 1. Java6 programming (Black book)

2. Web technology – Atul kahate

3. SQL, PL/SQL – Ivan Bayross

Websites:- 1. http://sloanc.org/publications/jaln/v7n1/v7n1_achtemeier.as

2. http://en.wikipedia.org/wiki/SQL_Server

3. http://java.sun.com/products/jsp

16

Page 17: Asr

11. Sample program:-

*student.html*

<html> <head> <title>HOME PAGE</title>

<style type="text/css">

body {

background-color: yellowgreen;}.style2 {

font-family: "Times New Roman", Times, serif;font-size: 60px;font-weight: bold;

}.style3 {

font-size: 24px;font-weight: bold;

}

</style>

</head> <body>

<script language="JavaScript"> <font size="5"><a href="student.html">Student login</a></font><font size="5"><a href="faculty.html">Faculty login</a></font><font size="5"><a href="admi.html">Admin. login</a></font><font size="5"><a href="http://www.google.com">Google</a></font>

<div align="center"> <p class="style2"><U><b>STUDENTS EVALUATION SYSTEM </b></U></p> </div>

<form name="form1" method="post" action="log1.jsp">

17

Page 18: Asr

<table bgcolor="#99CCFF" width="30%" align="left" border="5"> <tr> <th scope="col"><div align="left"><b>STUDENT LOGIN</b> </div></th> </tr>

<tr> <td> <div align="center">USERNAME <input type="text" name="name"> </div> </td> </tr> <tr> <td> <div align="center">PASSWORD <input type="password" name="pass"> </div> </td> </tr> <tr> <td height="28"> <div align="center"> <input type="submit" name="Submit" value="Submit"> </div> </td> </tr></table></form> <img src="image/LAB.JPG" align="right" border="3" height="60%" width="50%"> <br><br><br><br><br><br><BR><BR><BR><br><br> </div> <A HREF="http://rgtu.net/"><b>View Syllabus and Result</b> </A><br> <A HREF="http://satiengg.org/"><b>View information about College</A></A> </body></html>

18

Page 19: Asr

*log1.jsp*

<%@page contentType="text/html" pageEncoding="UTF-8" import="java.sql.*"%>

<html> <head>

<title>JSP Page</title> <style type="text/css">

body {background-color: yellowgreen;

}.style3 {font-size: 18px}.style4 {

font-size: 24px;font-style: italic;font-weight: bold;

}

</style></head> <body> <%

Connection cn = null; try{ Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); cn= DriverManager.getConnection("jdbc:odbc:mydsn","system","jsrjsr"); Statement stm = cn.createStatement();ResultSet rs=stm.executeQuery("select * from student where name='"+request.getParameter("name")+"' and pass='"+request.getParameter("pass")+"'");if (rs.next()){ String ab= rs.getString(1); %> <TABLE border="1" align="center" bordercolor="#000000"> <tr><TD><span class="style12 style3"><strong>SCHOLAR NO:</strong></span></TD> <TD><span class="style3"><strong><%= ab %></strong></span></TD> </tr><br> <tr><TD><span class="style12 style3"><strong>NAME:</strong></span></TD> <TD><span class="style3"><strong><%=rs.getString(2)%></strong></span></TD> </tr><br> <tr><TD><span class="style12 style3"><strong>FATHER'S NAME:</strong></span></TD> <TD><span class="style3"><strong><%=rs.getString(3)%></strong></span></TD> </tr><br> <tr><TD><span class="style12 style3"><strong>MOTHER'S NAME:</strong></span></TD> <TD><span class="style3"><strong><%=rs.getString(4)%></strong></span></TD>

19

Page 20: Asr

</tr><br> <tr><TD><span class="style12 style3"><strong>PRESENT ADDRESS:</strong></span></TD> <TD><span class="style3"><strong><%=rs.getString(5)%></strong></span></TD> </tr><br> <tr><TD><span class="style12 style3"><strong>PERMANENT ADDRESS:</strong></span></TD> <TD><span class="style3"><strong><%=rs.getString(6)%></strong></span></TD> </tr><br> <tr><TD><span class="style12 style3"><strong>CONTACT NO:</strong></span></TD><TD><span class="style3"><strong><%=rs.getString(7)%></strong></span></TD></tr><br> <tr><TD><span class="style12 style3"><strong>10 CLASS %:</strong></span></TD> <TD><span class="style3"><strong><%=rs.getString(8)%></strong></span></TD> </tr><br> <tr><TD><span class="style12 style3"><strong>12 CLASS %:</strong></span></TD> <TD><span class="style3"><strong><%=rs.getString(9)%></strong></span></TD> </tr><br><tr> <TD><span class="style12 style3"><strong>DATE OF BIRTH:</strong></span></TD> <TD><span class="style3"><strong><%=rs.getString(10)%></strong></span></tr><br><tr> <TD><span class="style12 style3"><strong>STUDYING YEAR:</strong></span></TD> <TD><span class="style3"><strong><%=rs.getString(11)%></strong></span></tr> <tr><TD><span class="style12 style3"><strong>extra curicular activity:</strong></span></TD> <TD><span class="style3"><strong><%=rs.getString(13)%></strong></span></tr> <tr> <TD><span class="style12 style3"><strong><a href="marks.jsp?no=<%= ab %>">exam marks detail</a></strong></span></TD> </tr><tr><TD><span class="style12 style3"><strong><a href="att.jsp?no=<%= ab %>">Attendence detail</a></strong></span></TD> </tr><tr><TD><span class="style12 style3"><strong><a href="f.jsp?no=<%= ab %>">Faculty detail</a></strong></span></TD>

</TABLE> <p>&nbsp;</p> <p>&nbsp;</p> <p>&nbsp;</p> <div align="center"></div>

<%}else{ %> <a href = "log.html" >try

again</a >

<%}rs.close();

}catch(SQLException ex){out.println("Error in db operation:"+ex); }catch(ClassNotFoundException ex){ out.println("Driver Not Found:"+ex);}finally{try{

20

Page 21: Asr

cn.close();}catch(Exception ex){}} %> <a href="student.html" class="style4"><b>Logout</b></a> </body></html>

*marks.jsp*

<%@page contentType="text/html" pageEncoding="UTF-8" import= "java.sql.*"%>

<html> <head>

<title>JSP Page</title> <style type="text/css">

body {background-color: yellowgreen;

}

</style></head> <body> <div align="center"> <p> <% Connection cn = null; try{ Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); cn= DriverManager.getConnection("jdbc:odbc:mydsn","system","jsrjsr"); Statement stm = cn.createStatement();ResultSet rs=stm.executeQuery("select * from agg where sc_no='"+request.getParameter("no")+"'");if (rs.next()){%> </p> <p>&nbsp;</p>

<table border="1"> <thead> <tr> <th>SEMESTER</th> <th>MID-SEM TOTAL</th> <th>THEORY TOTAL</th>

21

Page 22: Asr

<th>SESSIONAL TOTAL</th> <th>TOTAL</th> </tr> </thead> <tbody> <tr> <td>I SEM</td> <td><%= rs.getString(2)%></td> <td><%= rs.getString(2+1)%></td> <td><%= rs.getString(3+1)%></td> <td></td> </tr> <tr> <td> II SEM</td> <td><%= rs.getString(4+1)%></td> <td><%= rs.getString(5+1)%></td> <td><%= rs.getString(6+1)%></td> <td></td> </tr> <tr> <td>III SEM</td> <td><%= rs.getString(7+1)%></td> <td><%= rs.getString(8+1)%></td> <td><%= rs.getString(9+1)%></td> <td></td> </tr> <tr> <td>IV SEM</td> <td><%= rs.getString(10+1)%></td> <td><%= rs.getString(11+1)%></td> <td><%= rs.getString(12+1)%></td> <td></td> </tr> <tr> <td>V SEM</td> <td><%= rs.getString(13+1)%></td> <td><%= rs.getString(14+1)%></td> <td><%= rs.getString(15+1)%></td> <td></td> </tr> <tr> <td>VI SEM</td> <td><%= rs.getString(16+1)%></td> <td><%= rs.getString(17+1)%></td> <td><%= rs.getString(18+1)%></td> <td></td> </tr> <tr> <td>VII SEM</td> <td><%= rs.getString(19+1)%></td> <td><%= rs.getString(20+1)%></td> <td><%= rs.getString(21+1)%></td> <td></td> </tr> <tr>

22

Page 23: Asr

<td>VIII SEM</td> <td><%= rs.getString(22+1)%></td> <td><%= rs.getString(23+1)%></td> <td><%= rs.getString(24+1)%></td> <td></td> </tr> </tbody> </table> <p>&nbsp; </p> <p> <%}else{ %> </p> <p>&nbsp;</p> <p>&nbsp;</p><form name="form1" method="post" action="mup.jsp"> <table width="50%" border="1"> <tr> <th scope="col">SEM</th> <th scope="col">MID-SEM TOTAL </th> <th scope="col">THEORY TOTAL </th> <th scope="col">SESSIONAL TOTAL </th> </tr> <tr> <td>I SEM</td> <td> <input type="text" name="t1"> </td> <td> <input type="text" name="t2"> </td> <td> <input type="text" name="t3"> </td> </tr> <tr> <td>II SEM</td> <td> <input type="text" name="t4"> </td> <td> <input type="text" name="t5"> </td> <td> <input type="text" name="t6"> </td> </tr> <tr> <td>III SEM</td> <td> <input type="text" name="t7"> </td> <td> <input type="text" name="t8"> </td>

23

Page 24: Asr

<td> <input type="text" name="t9"> </td> </tr> <tr> <td>IV SEM</td> <td> <input type="text" name="t10"> </td> <td> <input type="text" name="t11"> </td> <td> <input type="text" name="t12"> </td> </tr> <tr> <td>V SEM</td> <td> <input type="text" name="t13"> </td> <td> <input type="text" name="t14"> </td> <td> <input type="text" name="t15"> </td> </tr> <tr> <td>VI SEM</td> <td> <input type="text" name="t16"> </td> <td> <input type="text" name="t17"> </td> <td> <input type="text" name="t18"> </td> </tr> <tr> <td>VII SEM</td> <td> <input type="text" name="t19"> </td> <td> <input type="text" name="t20"> </td> <td> <input type="text" name="t2"> </td> </tr> <tr> <td>VIII SEM</td> <td>

24

Page 25: Asr

<input type="text" name="t22"> </td> <td> <input type="text" name="t23"> </td> <td> <input type="text" name="t24"> </td> </tr><input type="hidden" name="t25" value="<%=request.getParameter("no")%>" /> </table> <p> <a href = "log.html" ></a ></p> <input type="submit" name="Submit" value="Submit"> <p> </table> </form> <%}rs.close();

}catch(SQLException ex){out.println("Error in db operation:"+ex); }catch(ClassNotFoundException ex){ out.println("Driver Not Found:"+ex);}finally{try{cn.close();}catch(Exception ex){}} %> </p> </div> <a href="student.html" class="style4"><b>Logout</b></a> </body></html>

25

Page 26: Asr

*att.jsp*

<%@page contentType="text/html" pageEncoding="UTF-8" import= "java.sql.*"%>

<html> <head>

<title>JSP Page</title> <style type="text/css">body {

background-color: yellowgreen;}

</style></head> <body> <p> <% Connection cn = null; try{ Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); cn= DriverManager.getConnection("jdbc:odbc:mydsn","system","jsrjsr"); Statement stm = cn.createStatement();ResultSet rs=stm.executeQuery("select * from att where sc_no='"+request.getParameter("no")+"'");if (rs.next()){%> </p> <p>&nbsp;</p> <table border="1" align="center"> <thead> <tr> <th>SUBJECT</th> <th>ATTENDENCE</th> <th>TOTAL CLASSES</th> </tr> </thead> <tbody> <tr> <td>THEORY 01</td> <td><%=rs.getString(1+1) %></td> <td>25</td> </tr> <tr> <td>THEORY 02</td> <td><%=rs.getString(2+1) %></td> <td>25</td> </tr> <tr> <td>THEORY 03</td> <td><%=rs.getString(3+1) %></td> <td>25</td>

26

Page 27: Asr

</tr> <tr> <td>THEORY 04</td> <td><%=rs.getString(4+1) %></td> <td>25</td> </tr> <tr> <td>THEORY 05</td> <td><%=rs.getString(5+1) %></td> <td>25</td> </tr> <tr> <td>THEORY 06</td> <td><%=rs.getString(6+1) %></td> <td>25</td> </tr> <tr> <td>PRACTICAL 01</td> <td><%=rs.getString(7+1) %></td> <td>25</td> </tr> <tr> <td>PRACTICAL 02</td> <td><%=rs.getString(8+1) %></td> <td>25</td> </tr> <tr> <td>PRACTICAL 03</td> <td><%=rs.getString(9+1) %></td> <td>25</td> </tr> <tr> <td>PRACTICAL 04</td> <td><%=rs.getString(10+1) %></td> <td>25</td> </tr> <tr> <td>PRACTICAL 05</td> <td><%=rs.getString(11+1) %></td> <td>25</td> </tr> </tbody> </table>

<div align="center"> <p> <%}else{ %> <%}rs.close();

27

Page 28: Asr

}catch(SQLException ex){out.println("Error in db operation:"+ex); }catch(ClassNotFoundException ex){ out.println("Driver Not Found:"+ex);}finally{try{cn.close();}catch(Exception ex){}} %> </p> </div> <a href="student.html" class="style4">Logout</a> </body></html>

*f.jsp*

<%@page contentType="text/html" pageEncoding="UTF-8" import= "java.sql.*"%>

<html> <head>

<title>JSP Page</title> <style type="text/css">body {

background-color: yellowgreen;}

</style></head> <body> <p> <% Connection cn = null; try{ Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); cn= DriverManager.getConnection("jdbc:odbc:mydsn","system","jsrjsr"); Statement stm = cn.createStatement();ResultSet rs=stm.executeQuery("select * from faculty ");

%> <table border="1" align="center"> <tr> <th>NAME</th> <th>DATE OF BIRTH</th> <th>ADDRESS</th> <th>CONTACT NUMBER </th> <th>E_MAIL ID </th> <th>QUALIFICATION</th> <th>EXPERIENCE</th>

28

Page 29: Asr

</tr> <%while (rs.next()) {%> <p></p> <p>&nbsp;</p> <tr> <td><%=rs.getString(1)%> <td><%=rs.getString(2)%> <td><%=rs.getString(3)%> <td><%=rs.getString(4)%> <td><%=rs.getString(5)%> <td><%=rs.getString(6)%> <td><%=rs.getString(7)%></td> </tr> <% } %> </table> <div align="center"> <%

rs.close();

}catch(SQLException ex){out.println("Error in db operation:"+ex); }catch(ClassNotFoundException ex){ out.println("Driver Not Found:"+ex);}finally{try{cn.close();}catch(Exception ex){}} %> </div> <a href="student.html" class="style4"><b>Logout</b></a> </body></html>

29

Page 30: Asr

*search.jsp*

<%@page contentType="text/html" pageEncoding="UTF-8" import= "java.sql.*"%>

<html> <head>

<title>JSP Page</title> <style type="text/css"> body {

background-color: yellowgreen;}.style12 {font-family: Arial, Helvetica, sans-serif; font-size: 24px; font-weight: bold; } </style></head> <body> <div align="center"> <% Connection cn = null; try{ Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); cn= DriverManager.getConnection("jdbc:odbc:mydsn","system","jsrjsr"); Statement stm = cn.createStatement();ResultSet rs=stm.executeQuery("select * from student where sc_no="+request.getParameter("sch")+"");if (rs.next()){ String ab= rs.getString(1); %> </div> <TABLE border="1" align="center" bordercolor="#000000"> <tr><TD><span class="style12 style3"><strong>SCHOLAR NO:</strong></span></TD> <TD><span class="style3"><strong><%= ab %></strong></span></TD> </tr><br> <tr><TD><span class="style12 style3"><strong>NAME:</strong></span></TD> <TD><span class="style3"><strong><%=rs.getString(2)%></strong></span></TD> </tr><br> <tr><TD><span class="style12 style3"><strong>FATHER'S NAME:</strong></span></TD> <TD><span class="style3"><strong><%=rs.getString(3)%></strong></span></TD> </tr><br> <tr><TD><span class="style12 style3"><strong>MOTHER'S NAME:</strong></span></TD> <TD><span class="style3"><strong><%=rs.getString(4)%></strong></span></TD> </tr><br> <tr><TD><span class="style12 style3"><strong>PRESENT ADDRESS:</strong></span></TD> <TD><span class="style3"><strong><%=rs.getString(5)%></strong></span></TD> </tr><br> <tr><TD><span class="style12 style3"><strong>PERMANENT ADDRESS:</strong></span></TD> <TD><span class="style3"><strong><%=rs.getString(6)%></strong></span></TD> </tr><br> <tr><TD><span class="style12 style3"><strong>CONTACT NO:</strong></span></TD><TD><span class="style3"><strong><%=rs.getString(7)%></strong></span></TD></tr><br>

30

Page 31: Asr

<tr><TD><span class="style12 style3"><strong>10 CLASS %:</strong></span></TD> <TD><span class="style3"><strong><%=rs.getString(8)%></strong></span></TD> </tr><br> <tr><TD><span class="style12 style3"><strong>12 CLASS %:</strong></span></TD> <TD><span class="style3"><strong><%=rs.getString(9)%></strong></span></TD> </tr><br><tr> <TD><span class="style12 style3"><strong>DATE OF BIRTH:</strong></span></TD> <TD><span class="style3"><strong><%=rs.getString(10)%></strong></span></tr><br><tr> <TD><span class="style12 style3"><strong>STUDYING YEAR:</strong></span></TD> <TD><span class="style3"><strong><%=rs.getString(11)%></strong></span></tr> <tr><TD><span class="style12 style3"><strong>extra curicular activity:</strong></span></TD> <TD><span class="style3"><strong><%=rs.getString(13)%></strong></span></tr> <tr> <TD><span class="style12 style3"><strong><a href="marks.jsp?no=<%= ab %>">exam marks detail</a></strong></span></TD> </tr><tr><TD><span class="style12 style3"><strong><a href="att1.jsp?no=<%= ab %>">Attendence detail</a></strong></span></TD>

</TABLE> <p>&nbsp;</p> <p>&nbsp;</p> <p>&nbsp;</p> <div align="center"></div> <div align="center">

<%}else{ %> <a href = "log.html" >try

again</a > </table>

<%}rs.close();

}catch(SQLException ex){out.println("Error in db operation:"+ex); }catch(ClassNotFoundException ex){ out.println("Driver Not Found:"+ex);}finally{try{cn.close();}catch(Exception ex){}} %> </div> </body></html>

31

Page 32: Asr

32