Professional Documents
Culture Documents
Recruitment
Recruitment
INTRODUCTION
This project Online Recruitment System is an online website in which jobseekers can register themselves online and apply for job and attend the exam. Online Recruitment System provides online help to the users all over the world. Using web recruitment systems like recruitment websites or jobsites also play a role in simplifying the recruitment process. Such websites have facilities where prospective candidates can upload their CVs and apply for jobs suited to them. Such sites also make it possible for recruiters and companies to post their staffing requirements and view profiles of interested candidates. Earlier recruitment was done manually and it was all at a time consuming work. Now it is all possible in a fraction of second. It is all done online without much time consuming. Todays recruitment applications are designed to do a whole lot more than just reduce paperwork. They can make a significant contribution to a companys marketing and sales activity. Recruitment websites and software make possible for managers to access information that is crucial to managing their staff, which they can use for promotion decisions, payroll considerations and succession planning. Online Recruitment System enables the users to have the typical examination facilities and features at their disposal. It resolves typical issues of manual examination processes and activities into a controlled and closely monitored work flow in the architecture of the application. This multi platform solution brings in by default, the basic intelligence and immense possibilities for further extension of the application as required by the user. The system makes it friendly to distribute, share and manage the examination entities with higher efficiency and easiness. The objective of these websites is to serve as a common meeting ground for jobseekers and employers, both locally and globally, where the candidates find their dream jobs and recruiters find the right candidate to fulfill their needs. These sites are specifically designed for those who seek the most demanding and challenging positions in their chosen field, with the most dynamic employers. Thousands of websites compete for your attention-each has its own unique interface, URL and peculiarities. A quick look at the overall trends in Online recruiting shows the rise in the importance of marketing the web site, online training, dawn of video interviews and emergence of professional Internet Recruiters. Online recruiting and online recruiting systems, with its emphasis on a more strategic decision making process is fast gaining ground as a popular outsourced function.
2. ABSTRACT
This project is aimed at developing a web-based and central recruitment Process system for the HR Group for a company. Some features of this system will be creating vacancies, storing application data, and Interview process initiation, Scheduling interviews, storing Interview results for the applicant and finally Hiring of the applicant. Reports may be required to be generated for the use of the HR group. This project Online Recruitment System is an online website in which jobseekers can register themselves and then attend the exam. Based on the outcome of the exam the jobseekers will be short listed. For fresher, the exam will be conducted at some venue after short listing of the preliminary Aptitude Test. The details of the examination, venue & Date of the examination will be made available to them through the website. Module in this project: 1. Administrator 2. Jobseekers 3. Company Brief description on the modules: 1. Administrator: Administrator has the full authority over the website. He can view all the registered users and have the power to delete them. He can edit the web pages and update them. He can view all the company details also. 2. Jobseeker: A jobseeker can register himself. After registration, he will be directed to his homepage. Here he can update his profile, change password and see the examination details and all. 3. Company: A company can register itself, conduct online examination, approve or disapprove candidates attending examination and provides results about the selected candidates.
3. SYSTEM ANALYSIS
3.1 DEFINITION System Analysis is the detailed study of the various operations performed by the system and their relationships within and outside the system. Analysis is the process of breaking something into its parts so that the whole may be understood. System analysis is concerned with becoming aware of the problem, identifying the relevant and most decisional variables, analyzing and synthesizing the various factors and determining an optional or at least a satisfactory solution. During this a problem is identified, alternate system solutions are studied and recommendations are made about committing the resources used to the system. 3.2 DESCRIPTION OF PRESENT SYSTEM Presently recruitment is done manually. That is if a company or organization needs employees they make an announcement through newspaper. People who are eligible send application to the organization or company. From these applications they are called for interviews or tests. After tests company has to do short listing manually. From these shortlisted candidates, they are called for interviews. After interview short listed candidates are employed. So its all a time consuming procedure. LIMITATIONS OF PRESENT SYSTEM Recruitment is done manually. These tasks are time consuming. It may take one month or long. People around the world cannot apply. Online Recruitment system very convenient because in the manual system there are lot of difficulties in conducting and managing a recruitment exam, short listing, maintaining staff etc. 3.3 PROPOSED SYSTEM Online Recruitment is aimed at developing a web-based and central recruitment Process system for the HR Group for a company. Some features of this system will be creating vacancies, storing application data, and Interview process initiation, Scheduling Interviews, Storing Interview results for the applicant and finally hiring of the applicant. This project Online Recruitment System is an online website in which jobseekers can register themselves and then attend the exam. Based on the outcome of the exam the jobseekers will be shortlisted. The details of the examination & Date of the examination will be made available to them through the website. People all around the world can apply and register. It has made all the process easy.
ADVANTAGES Online Recruitment System enables the users to have the typical examination facilities and features at their disposal. It resolves typical issues of manual examination processes and activities into a controlled and closely monitored work flow in the architecture of the application. This multi platform solution brings in by default, the basic intelligence and immense possibilities for further extension of the application as required by the user. The system makes it friendly to distribute, share and manage the examination entities with higher efficiency and easiness. It is a comprehensive resource for finding a job online. 3.4 FEASIBILITY STUDY A feasibility analysis usually involves a through assessment of the operational (need), financial and technical aspects of a proposal. Feasibility study is the test of the system proposal made to identify whether the user needs may be satisfied using the current software and hardware technologies, whether the system will be cost effective from a business point of view and whether it can be developed with the given budgetary constraints. A feasibility study should be relatively cheap and done at the earliest possible time. Depending on the study, the decision is made whether to go head with a more detailed analysis. When a new project is proposed, it normally goes through feasibility assessment. Feasibility study is carried out to determine whether the proposed system is possible to develop with available resources and what should be the cost consideration. Facts considered in the feasibility analysis were Technical Feasibility Economic Feasibility Behavioral Feasibility
Technical Feasibility Technical feasibility includes whether the technology is available in the market for development and its availability. The assessment of technical feasibility must be based on an outline design of system requirements in terms of input, output, files, programs and procedures. This can be qualified in terms of volumes of data, trends, frequency of updating, cycles of activity etc, in order to give an introduction of technical system. Considering our project it is technical feasible. Online Recruiting and Online Recruitment Systems, with its emphasis on a more strategic decision making process is fast gaining ground as a popular outsourced function.
4
Economic Feasibility This feasibility study present tangible and intangible benefits from the project by comparing the development and operational cost. The technique of cost benefit analysis is often used as a basis for assessing economic feasibility. This system needs some more initial investment than the existing system, but it can be justifiable that it will improve quality of service. Thus feasibility study should center along the following points: Improvement resulting over the existing method in terms of accuracy, timeliness. Cost comparison Estimate on the life expectancy of the hardware. Overall objective. Our project is economically feasible. It does not require much cost to be involved in the overall process. The overall objective is in easing out the recruitment processes. Behavioral / Operational Feasibility This analysis involves how it will work when it is installed and the assessment of political and managerial environment in which it is implemented. People are inherently resistant to change and computers have been known to facilitate change. The new proposed system is very much useful to the users and therefore it will accept broad audience from around the world.
4. SYSTEM DESIGN
4.1 DEFINITION The most creative and challenging face of the system development is System Design. It provides the understanding and procedural details necessary for the logical and physical stages of development. In designing a new system, the system analyst must have a clear understanding of the objectives, which the design is aiming to fulfill. The first step is to determine how the output is to be produced and in what format. Second, input data and master files have to be designed to meet the requirements of the proposed output. The operational phases are handled through program construction and testing. Design of the system can be defined as a process of applying various techniques and principles for the purpose of defining a device, a process or a system in sufficient detail to permit its physical realization. Thus system design is a solution to how to approach to the creation of a new system. This important phase provides the understanding and the procedural details necessary for implementing the system recommended in the feasibility study. The design step provides a data design, architectural design, and a procedural design. 4.2 OUTPUT DESIGN In the output design, the emphasis is on producing a hard copy of the information requested or displaying the output on the CRT screen in a predetermined format. Two of the most output media today are printers and the screen. Most users now access their reports from either a hard copy or screen display. Computers output is the most important and direct source of information to the user, efficient, logical, output design should improve the systems relations with the user and help in decision-making. As the outputs are the most important source of information to the user, better design should improve the systems relations and also should help in decision-making. The output devices capability, print quality, response time requirements etc should also be considered, form design elaborates the way the output is presented and layout available for capturing information. Its very helpful to produce the clear, accurate and speedy information for end users. 4.3 INPUT DESIGN In the input design, user-originated inputs are converted into a computer-based system format. It also includes determining the record media, method of input, speed of capture and entry on to the screen. Online data entry accepts commands and data through a keyboard. The
6
major approach to input design is the menu and the prompt design. In each alternative, the users options are predefined. The data flow diagram indicates logical data flow, data stores, source and destination. Input data are collected and organized into a group of similar data once identified input media are selected for processing. In this software, importance is given to develop Graphical User Interface (GUI), which is an important factor in developing efficient and user friendly software. For inputting user data, attractive forms are designed. User can also select the desired options from the menu, which provides all possible facilities. Also the important input format is designed in such a way that accidental errors are avoided. The user has to input only just the minimum data required, which also helps in avoiding the errors that the users may make. Accurate designing of the input format is very important in developing efficient software. The goal of input design is to make entry as easy, logical and free from errors. 4.4 LOGICAL DESIGN Logical data design is about the logically implied data. Each and every data in the form can be designed in such a manner to understand the meaning. Logical data designing should give a clear understanding & idea about the related data used to construct a form. Data flow diagram A Data Flow Diagram (DFD) is a diagram that describes the flow of data and the processes that change or transform data throughout a system. Its a structured analysis and design tool that can be used for flowcharting in place of, or in association with, information oriented and process oriented system flowcharts. When analysts prepare the Data Flow Diagram, they specify the user needs at a level of detail that virtually determines the information flow into and out of the system and the required data resources. This network is constructed by using a set of symbols that do not imply a physical implementation. The Data Flow Diagram reviews the current physical system, prepares input and output specification, specifies the implementation plan etc. Four basic symbols are used to construct data flow diagrams. They are symbols that represent data source, data flows, and data transformations and data storage. The points at which data are transformed are represented by enclosed figures, usually circles, which are called nodes.
Data Flow Diagram Symbols:-
_ _
_ Process
7
Storage
Steps to Construct Data Flow Diagrams Four steps are commonly used to construct a DFD
Process should be named and numbered for easy reference. Each name should be representative of the process. The direction of flow is from top to bottom and from left to right. When a process is exploded into lower level details they are numbered. The names of data stores, sources and destinations are written in capital letters.
Rules for constructing a Data Flow Diagram Arrows should not cross each other. Squares,Circles and files must bear names. Decomposed data flow squares and circles can have same names. Choose meaningful names for dataflow. Draw all data flows around the outside of the diagram.
Administrator
Company
Candidate
Database 9
Level 1: Admin
Username Password Category
Admin
Category Login
TblLogin
If authenticated user
TblLogin
Data store
10
TblLogin
Admin
View Details
TblCompany
11
TblLogin
TblEducation
Level 4: Company
Login
TblLogin
Company
Change Passwor d
Update Passwo rd
TblResult
View Result
TblCompany
TblJobDetails
13
Questio ns
View
Level 5: Candidate
Jobseeker
Edit Profile
TblCandidate
Chang e Passwo rd
Update Password
TblLogin
Job details
TblJobDetails
Attend Exam 14
TblQuestion
TblResult
Table Name: Login Fieldname Username Password Status Data Type Text Text Text Key Primary key -
Table Name: Details Fieldname Username Name Gender DateOfBirth CollegeName CollegePhone CollegeEmail Branch Mark Degree Email_id
15
Data Type Text Text Text Text Text Text Text Text Text Text Text
--
Table Name: Experienced Fieldname Username ExpYears Company Designation Salary ComAddress Table Name: JobDetails Fieldname JobId Post Criteria NoOfVacancies Salary LastDate Data Type Text Text Text Text Text Text Key Data Type Text Text Text Text Text Text Key Primary key -
Key -
Table Name: Question Fieldname JobID ExamID QuestionNo Question Option1 Option2 Option3 Option4 Answer Data Type Text Text Text Text Text Text Text Text Text Key Primary key -
Table Name: Com Fieldname CName CAddress CPost CCriteria CUsername CEmail
17
CContact CCutoff
Text Text
Table Name: Result Fieldname StudentID examID JobID mark Table Name: Temp_Data Fieldname StudentID QstNo Qst Ch1 Ch2 Ch3 Ch4 Ans Data Type Text Text Text Text Text Text Text Text Key Data Type Text Text Text Text Key -
18
Java is a small, simple, safe, object oriented, interpreted or dynamically optimized, byte coded, architectural, garbage collected, multithreaded programming language with a strongly typed exception-handling for writing distributed and dynamically extensible programs. Java is an object oriented programming language. Java is a high-level, third generation language like C, FORTRAN, Small talk, Pearl and many others. You can use java to write computer applications that crunch numbers, process words, play games, store data or do any of the thousands of other things computer software can do. Special programs called applets that can be downloaded from the internet and played safely within a web browser. Java a supports this application and the follow features make it one of the best programming language. It is simple and object oriented It helps to create user friendly interfaces. It is very dynamic. It supports multithreading.
19
The Java platform is the name for a bundle of related programs, or platform, from Sun which allow for developing and running programs written in the Java programming language. The platform is not specific to any one processor or operating system, but rather an execution engine (called a virtual machine) and a compiler with a set of standard libraries which are implemented for various hardware and operating systems so that Java programs can run identically on all of them. Different "editions" of the platform are available, including:
Java ME (Micro Edition): Specifies several different sets of libraries (known as profiles) for devices which are sufficiently limited that supplying the full set of Java libraries would take up unacceptably large amounts of storage.
Java SE (Standard Edition): For general purpose use on desktop PCs, servers and similar devices. Java EE (Enterprise Edition): Java SE plus various APIs useful for multi-tier client-server enterprise applications.
The Java Platform consists of several programs, each of which provides a distinct portion of its overall capabilities. For example, the Java compiler, which converts Java source code into Java bytecode (an intermediate language for the Java Virtual Machine (JVM)), is provided as part of the Java Development Kit (JDK). The sophisticated Java Runtime Environment (JRE), complementing the JVM with a just-in-time (JIT) compiler, converts intermediate bytecode into native machine code on the fly. Also supplied are extensive libraries (pre-compiled into Java bytecode) containing reusable code, as well as numerous ways for Java applications to be deployed, including being embedded in a web page as an applet. There are several other components, some available only in certain editions. The essential components in the platform are the Java language compiler, the libraries, and the runtime environment in which Java intermediate 21
Online Recruitment System bytecode "executes" according to the rules laid out in the virtual machine specification.
The use of bytecode as an intermediate language permits Java programs to run on any platform that has a virtual machine available. The use of a JIT compiler means that Java applications, after a short delay during loading and once they have "warmed up"
22
by being all or mostly JIT-compiled, tend to run about as fast as native programs. Since JRE version 1.2, Sun's JVM implementation has included a just-in-time compiler instead of an interpreter.
Although Java programs are Platform Independent, the code of the Java Virtual Machine (JVM) that execute these programs are not. Every Operating System has its own JVM.
Class libraries
In most modern operating systems, a large body of reusable code is provided to simplify the programmer's job. This code is typically provided as a set of dynamically loadable libraries that applications can call at runtime. Because the Java Platform is not dependent on any specific operating system, applications cannot rely on any of the existing libraries. Instead, the Java Platform provides a comprehensive set of standard class libraries, containing much of the same reusable functions commonly found in modern operating systems.
The Java class libraries serve three purposes within the Java Platform. Like other standard code libraries, they provide the programmer a well-known set of functions to perform common tasks, such as maintaining lists of items or performing complex string parsing. In addition, the class libraries provide an abstract interface to tasks that would normally depend heavily on the hardware and operating system. Tasks such as network access and file access are often heavily dependent on the native capabilities of the platform. The Java java.net and java.io libraries implement the required native code internally, then provide a standard interface for the Java applications to perform those tasks. Finally, when some underlying platform does not support all of the features a Java application expects, the class libraries can either emulate those
23
features using whatever is available, or at least provide a consistent way to check for the presence of a specific feature.
Platform independence
One characteristic, platform independence, means that programs written in the Java language must run similarly on any supported hardware/operating-system platform. One should be able to write a program once, compile it once, and run it anywhere. This is achieved by most Java compilers by compiling the Java language code halfway (to Java bytecode) simplified machine instructions specific to the Java platform. The code is then run on a virtual machine (VM), a program written in native code on the host hardware that interprets and executes generic Java bytecode. (In some JVM versions, bytecode can also be compiled to native code, either before or during program execution, resulting in faster execution.) Further, standardized libraries are provided to allow access to features of the host machines (such as graphics, threading and networking) in unified ways. Note that, although there is an explicit compiling stage, at some point, the Java bytecode is interpreted or converted to native machine code by the JIT compiler.
The first implementations of the language used an interpreted virtual machine to achieve portability. These implementations produced programs that ran more slowly than programs compiled to native executables, for instance written in C or C++, so the language suffered a reputation for poor performance. More recent JVM implementations produce programs that run significantly faster than before, using multiple techniques.
One technique, known as just-in-time compilation (JIT), translates the Java bytecode into native code at the time that the program is run, which results in a program that executes faster than interpreted code but also incurs compilation overhead during execution. More sophisticated VMs use dynamic recompilation, in which the VM can 24
Online Recruitment System analyze the behavior of the running program and selectively recompile and optimize critical parts of the program. Dynamic recompilation can achieve optimizations superior to static compilation because the dynamic compiler can base optimizations on knowledge about the runtime environment and the set of loaded classes, and can identify the hot spots (parts of the program, often inner loops, that take up the most execution time). JIT compilation and dynamic recompilation allow Java programs to take advantage of the speed of native code without losing portability.
Another technique, commonly known as static compilation, is to compile directly into native code like a more traditional compiler. Static Java compilers, such as GCJ, translate the Java language code to native object code, removing the intermediate bytecode stage. This achieves good performance compared to interpretation, but at the expense of portability; the output of these compilers can only be run on a single architecture. Some see avoiding the VM in this manner as defeating the point of developing in Java; however it can be useful to provide both a generic bytecode version, as well as an optimised native code version of an application.
One of the ideas behind Java's automatic memory management model is that programmers be spared the burden of having to perform manual memory management. In some languages the programmer allocates memory for the creation of objects stored on the heap and the responsibility of later deal locating that memory also resides with the programmer. If the programmer forgets to deallocate memory or writes code that fails to do so, a memory leak occurs and the 25
Online Recruitment System program can consume an arbitrarily large amount of memory. Additionally, if the program attempts to deallocate the region of memory more than once, the result is undefined and the program may become unstable and may crash. Finally, in non garbage collected environments, there is a certain degree of overhead and complexity of user-code to track and finalize allocations. Often developers may box themselves into certain designs to provide reasonable assurances that memory leaks will not occur.
In Java, this potential problem is avoided by automatic garbage collection. The programmer determines when objects are created, and the Java runtime is responsible for managing the object's lifecycle. The program or other objects can reference an object by holding a reference to it (which, from a low-level point of view, is its address on the heap). When no references to an object remain, the Java garbage collector automatically deletes the unreachable object, freeing memory and preventing a memory leak. Memory leaks may still occur if a programmer's code holds a reference to an object that is no longer neededin other words, they can still occur but at higher conceptual levels. The use of garbage collection in a language can also affect programming paradigms. If, for example, the developer assumes that the cost of memory allocation/recollection is low, they may choose to more freely construct objects instead of pre-initializing, holding and reusing them. With the small cost of potential performance penalties (inner-loop construction of large/complex objects), this facilitates thread-isolation (no need to synchronize as different threads work on different object instances) and data-hiding. The use of transient immutable valueobjects minimizes side-effect programming. Comparing Java and C++, it is possible in C++ to implement similar functionality (for example, a memory management model for specific classes can be designed in C++ to improve speed and lower memory fragmentation considerably), with the possible cost of adding comparable runtime overhead to that of Java's garbage collector, and of added development time and application complexity if one favors manual implementation over using an existing third-party library. In Java, garbage 26
Online Recruitment System collection is built-in and virtually invisible to the developer. That is, developers may have no notion of when garbage collection will take place as it may not necessarily correlate with any actions being explicitly performed by the code they write. Depending on intended application, this can be beneficial or disadvantageous: the programmer is freed from performing low-level tasks, but at the same time loses the option of writing lower level code. Additionally, the garbage collection capability demands some attention to tuning the JVM, as large heaps will cause apparently random stalls in performance. Java does not support pointer arithmetic as is supported in, for example, C++. This is because the garbage collector may relocate referenced objects, invalidating such pointers. Another reason that Java forbids this is that type safety and security can no longer be guaranteed if arbitrary manipulation of pointers is allowed.
Performance
Java's performance has improved substantially since the early versions, and performance of JIT compilers relative to native compilers has in some tests been shown to be quite similar. The performance of the compilers does not necessarily indicate the performance of the compiled code; only careful testing can reveal the true performance issues in any system.
27
Online Recruitment System One of the unique advantages of the concept of a runtime engine is that errors (exceptions) should not 'crash' the system. Moreover, in runtime engine environments such as Java there exist tools that attach to the runtime engine and every time that an exception of interest occurs they record debugging information that existed in memory at the time the exception was thrown (stack and heap values). These Automated Exception Handling tools provide 'root-cause' information for exceptions in Java programs that run in production, testing or development environments.
TECHNOLOGY SPECIFICATIONS
Java Platform, Enterprise Edition (Java EE) builds on the solid foundation of Java Platform, Standard Edition (Java SE) and is the industry standard for implementing enterprise-class service-oriented architecture (SOA) and next-generation web applications. Java Platform, Enterprise Edition (Java EE) is a set of coordinated technologies that significantly reduces the cost and complexity of developing, deploying, and managing multitier, server-centric applications. Building on the Java Platform, Standard Edition (Java SE), Java EE adds the capabilities that provide a complete, stable, secure, and fast Java platform for the enterprise.
Java 2 Enterprise Edition (J2EE) technology is becoming a pervasive platform for the development of Internet-based, transactional business applications. It provides a robust development platform upon which to build flexible, reusable components and applications. It is a powerful standard that is well-suited for Internet-based applications because it provides many of the underlying services such as HTTP request processing (Java Servlet API), transaction management (Enterprise JavaBeans), and messaging (Java Message Service), just to name a few. However, J2EE is also a complex and changing standard that leaves the technologist with many design decisions and performance considerations. Each component service adds a level of overhead to the application processing that must be considered. Additionally, there are a number of common business logic functions, such as error 28
Online Recruitment System handling, that must be designed and de developed for each component and application. An application development effort using J2EE should give careful consideration to the services provided by the platform and how application components can best utilize them. There are a number of best practices one should consider in order to be highly effective in building J2EE components and integrating them into applications. These practices include evaluating and selecting the right set of software components and services to do the job. This is no different than in other professions; a carpenter or a steelworker both use an architecture plan to build things, although the tools they use to do so are quite different. A scalable, modular architecture built upon J2EE will likely comprise a selection of the appropriate set of J2EE services combined with a custom foundation of common business logic functions.
OVERVIEW OF J2EE
Today more and more developments want to write distributed transactional applications for the enterprise and leverage the speed, security and reliability of server side technology. J2EE is a platform independent, java centric environment from sun for developing, building and deploying web based enterprise application online. The J2EE platform consists of a set of services, APIs and protocols that provide functionality for developing multitiered web based application.
At the client side tier, J2EE supports pure HTML as well as java applets or applications. It relies on JSP and Servlet codes to create HTML or other formatted data for the client. EJB provide another layer where the platforms logic is stored. An EJB server provides functions such as threading, concurrency, security and memory management. To reduce costs and fast-track enterprise application design and development, the java2 platform, Enterprise edition (J2EE) technology provides a component-based approach to the design, development, assembly and distributed application model, the ability to reuse components, integrated Extensible Markup
29
Online Recruitment System Language (XML) based data interchange, a unified security model, and flexible transaction control.
DISTRIBUTED MULTI TIERED APPLICATIONS The J2EE platform uses a multi tiered distributed application model. Application logic is divided into components according to function, and the various application components that make up a J2EE application are installed on different machines depending on the tier in the multi tiered J2EE environment to which the application component belongs. The figure shown below shows two multi tiered j2EE applications divided into the tiers described in the following list. The J2EE application parts shown in Figure
Client-tier components run on the client machine. Web-tier components run on the J2EE server. Business-tier components run on the J2EE server. Enterprise information system (EIS)tier software runs the EIS server.
J2EE Application1 Application Client J2EE Application2 Dynamic HTML Pages Client tier Client Machine
JSP Pages
Web Tier
Enterpri se Beans
Busines s Tier
Databas e
EIS Tier
J2EE COMPONENTS
J2EE applications are made up of components. A J2EE component is a selfcontained functional software unit that is assembled into a J2EE application with its related classes and files and that following J2EE components: Application clients and applets are components that run on the client.
Java Servlet and Java Server Pages (JSP) technology components are Web components that run on the server. Enterprise Java Beans (EJB) components are business components that run on the server.
J2EE components are written in the java programming language and are compiled in the same way as any program in the language. The difference between J2EE components and standard java classes is that J2EE components are assembled into a J2EE application. Verified to be well formed and in compliance with managed by the J2EE server.
J2EE CONTAINERS
Normally, thin-client multi tiered applications are hard to write because they involve many lines of intricate code to handle transaction and state management, multithreading, resource pooling, and other complex low-level details. The component-based and platform-independent J2EE architecture 31
Online Recruitment System makes J2EE applications easy to write because business logic is organized into reusable components. In addition, the J2EE server provides underlying services in the form of a container for every component type. Because you do not have to develop these services yourself, you are free to concentrate on solving the business problem at hand. Containers provide the runtime support for J2EE application components. Containers provide a federated view of the underlying J2EE APIs to the application components. J2EE application components never interact directly with other J2EE application components. They use the protocols and methods of the container for interacting with each other and with platform services. Interposing a container between the application components and the J2EE services allows the container to transparently inject the services defined by the components deployment descriptors, such as declarative transaction management, security checks, resource pooling, and state management. A typical J2EE product will provide a container for each application component type: application client container, applet container, web component container, and enterprise bean container.
Browser
Web Container
Enterpris e Bean
Enterpris e Bean
Databa se
EJB Container
J2EE SERVER
It is a runtime portion of a J2EE product. A J2EE server provides EJB and Web containers. The component-based and platform-independent J2EE architecture makes J2EE applications easy to write because business logic is organized into reusable components and the J2EE server provides underlying services in the form of a container for every component type. CONTAINERS AND SERVICES
Components are installed in their containers during deployment and are the interface between a component and the low-level platform-specific functionality that supports the component. Before a web, enterprise bean, or application client component can be executed, it must be assembled onto a J2EE application and deployed into its container. The assembly process involves specifying container settings for each component in the J2EE application and for the J2EE application itself. Container settings customize the underlying support provided by the J2EE Server, which include services such as security, transaction management, Java Naming and Directory Interface (JNDI) lookups, and remote connectivity. Here are some of the highlights:
The J2EE security model lets you configure a web component or enterprise bean so system resources are accessed only by authorized users. The J2EE transaction model lets you specify relationships among methods that make up a single transaction so all methods in one transaction are treated as a single unit.
33
JNDI lookup services provide a unified interface to multiple naming and directory services in the enterprise so application components can access naming and directory services. The J2EE remote connectivity model manages low-level communications between clients and enterprise beans. After an enterprise bean is created, a client invokes methods on it as if it were in the same virtual machine.
The J2EE platform also defines a number of distinct roles that are performed during the application development and deployment life cycle:
The product provider designs and offers the J2EE platform, APIs, and other features that are defined in the J2EE specification for purchase. The tool provider offers tools that are used for the development and packaging of application components as part of the J2EE specifications. The application component provider creates Web components, enterprise beans, applets, or application clients to use in J2EE applications.
34
The application assembler takes a set of components that are developed by component providers and assembles them in the form of an enterprise archive (EAR) file. The deployer is responsible for deploying an enterprise application into a specific operational environment that corresponds to a J2EE platform product. The system administrator is responsible for the operational environment in which the application runs.
Product providers and tool providers have a product focus. Application component providers and application assemblers focus on the application. Deployers and system administrators focus on providing the J2EE application with platform-specific artifacts, and on the platform run time.
These roles help identify the tasks and people involved. Understanding this separation of roles is important because it helps to determine the approach when developing and deploying J2EE applications.
J2EE BENEFITS
The J2EE specification provides customers a standard which can be used to ensure investment protection when purchasing or developing applications. Comprehensive, independent Compatibility Test Suites ensure vendor compliance with J2EE standards. Some benefits of deploying to J2EE architecture include:
A simplified architecture that is based on standard components, services, and clients. The architecture maximizes the write-once, run-anywhere Java technology. Services providing integration with existing systems, including Java DataBase Connectivity (JDBC); Java Message Service (JMS); Java Connector Architecture
35
Online Recruitment System (JCA); Java Interface Definition Language (Java IDL); the JavaMail API; and Java Transaction API (JTA and JTS) for reliable business transactions.
Scalability to meet demand, by distributing containers across multiple systems and using database connection pooling, for example. A better choice of application development tools and components from vendors providing standard solutions. A flexible security model that provides single sign-on support, integration with legacy security schemes, and a unified approach to securing application components.
3.
In the New Project wizard, expand the Java category and select Java Application as shown
36
4.
In the Name and Location page of the wizard, do the following (as shown in the figure
below):
o o
In the Project Name field, type HelloWorldApp. Leave the Use Dedicated Folder for Storing Libraries checkbox unselected. (If you are using
o o
In the Create Main Class field, type helloworldapp.HelloWorldApp. Leave the Set as Main Project checkbox selected.
37
5.
Click Finish.
The project is created and opened in the IDE. You should see the following components:
The Projects window, which contains a tree view of the components of the project, including source
The Source Editor window with a file called HelloWorldApp open. The Navigator window, which you can use to quickly navigate between elements within the selected
class.
38
System.out.println("Hello World!");
39
/* * To change this template, choose Tools | Templates * and open the template in the editor. */
package helloworldapp;
/** * @param args the command line arguments */ public static void main(String[] args) { System.out.println("Hello World!"); }
40
If the build output concludes with the statement BUILD SUCCESSFUL, congratulations! You have successfully compiled your program! If the build output concludes with the statement BUILD FAILED, you probably have a syntax error in your code. Errors are reported in the Output window as hyper-linked text. Click such a hyper-link to navigate to the source of an error. You can then fix the error and once again choose Build > Build Main Project. When you build the project, the bytecode file HelloWorldApp.class is generated. You can see where the new file is generated by opening the Files window and expanding the
Now that you have built the project, you can run your program.
41
Microsoft Access is the default database of Microsoft Visual Basic. Microsoft Access 2003 provides many new features that make working with data and designing a database even easier. Microsoft Access Database is a collection of data and objects related to particular topic or purpose. Microsoft Access Database may contain tables; queries, forms, reports, macros modules and shortcuts top data access pages. Microsoft Access is a Relational Database Management System. Using Access we can organize our data according to subject and can store information about how different subject are related. In general MS-Access database can have several small tables. Microsoft Office Access, previously known as Microsoft Access, is a relational database management system from Microsoft that combines the relational Microsoft Jet Database Engine with a graphical user interface and software development tools. It is a member of the 2007 Microsoft Office system. Access can use data stored in Access/Jet, Microsoft SQL Server, Oracle, or any ODBC-compliant data container (including MySQL and PostgreSQL). Skilled software 42
Online Recruitment System developers and data architects use it to develop application software. Relatively unskilled programmers and non-programmer "power users" can use it to build simple applications. It supports some object-oriented techniques but falls short of being a fully object-oriented development tool. Access was also the name of a communications program from Microsoft, meant to compete with ProComm and other programs. This proved a failure and was dropped. Years later Microsoft reused the name for its database software.
Access is used by small businesses, within departments of large corporations, and by hobby programmers to create ad hoc customized desktop systems for handling the creation and manipulation of data. Access can be used as a database for basic web based applications hosted on Microsoft's Internet Information Services and utilizing Microsoft Active Server Pages ASP. Most typical web applications should use tools like ASP/Microsoft SQL Server or the LAMP stack. Some professional application developers use Access for rapid application development, especially for the creation of prototypes and standalone applications that serve as tools for on-the-road salesmen. Access does not scale well if data access is via a network, so applications that are used by more than a handful of people tend to rely on Client-Server based solutions. However, an Access "front end" (the forms, reports, queries and VB code) can be used against a host of database back ends, including JET (file-based database engine, used in Access by default), Microsoft SQL Server, Oracle, and any other ODBC-compliant product. Features One of the benefits of Access from a programmer's perspective is its relative compatibility with SQL (structured query language) queries may be viewed and edited as SQL statements, and SQL statements can be used directly in Macros and VBA Modules to manipulate Access tables. Users may mix and use both VBA and "Macros" for programming forms and logic and offers object-oriented possibilities.
43
Online Recruitment System MSDE (Microsoft SQL Server Desktop Engine) 2000, a mini-version of MS SQL Server 2000, is included with the developer edition of Office XP and may be used with Access as an alternative to the Jet Database Engine. Unlike a modern RDBMS, the Access and the Jet Engine implements database triggers and stored procedures in a non-standard way. Stored Procedures are implemented in VBA, and Triggers are only available from embedded Forms. Both Triggers and Stored procedures are only available to applications built completely within the Access database management system. Client applications built with VB or C++ are not able to access these features. Starting in MS Access 2003 (Jet 4.0), there is a new syntax for creating queries with parameters, in a way that looks like creating stored procedures, but these procedures are still limited to one statement per procedure. Microsoft Access does allow forms to contain code that is triggered as changes are made to the underlying table (as long as the modifications are done only with that form), and it is common to use pass-through queries and other techniques in Access to run stored procedures in RDBMSs that support these. In ADP files (supported in MS Access 2003 and later), the database-related features are entirely different, because this type of file connects to a MSDE or Microsoft SQL Server, instead of using the Jet Engine. Thus, it supports the creation of nearly all objects in the underlying server (tables with constraints and triggers, views, stored procedures and UDF-s). However, only forms, reports, macros and modules are stored in the ADP file (the other objects are stored in the back-end database).
6. SYSTEM SPECIFICATION
44
7. FUTURE ENHANCEMENT
45
Online recruiting and online recruitment systems, with its emphasis on a more strategic decision making process is fast gaining ground as a popular outsourced function. Most Online Recruiting sites deliver easy-to-use search capabilities, customer service and convenience. The immense power of web enabling crucial recruitment processes to covert them into online recruitment systems is a key factor in easing out the recruitment processes. Recruiting and staffing software makes data collection easier and tasks get completed quicker. The return on investment is immediate, simply because of the reduced time and increased ease of recruitment processes. E-Recruiting technology is skill-based with automated prescreening features which is the next step in the evolution of online recruiting. Corporate expenditures for these Online-recruiting services are anticipated to increase dramatically in the next few years as corporate end users upgrade their hiring methodologies, strategies and technologies for finding talent. The three macro economics trends that are seen as fuelling the growth of this industry are: Shorter employment tenures
Need for technology workers In wake of the new and related trends, it is imperative for frequent upgrades to a companys software or web applications to make it easier for clients and employees to address new business needs.
46
8. APPENDIX
47
Login
48
Candidate Registration
49
Company Registration
50
CompanyHomePage
51
52
53
55
Exam Creation
56
Exam View
57
Add Questions
58
59
Question selection
60
View Question
61
62
63
64
65
66
67
Company Registration <%@page import="java.io.*" %> <%@page contentType="text/html" pageEncoding="UTF-8"%> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>www.CarrierMithr.com</title> <style type="text/css"> <!-.body { margin:0%; } a:link { color: #000066; text-decoration: underline; } a:visited { text-decoration: underline; color: #C0DCC0; } a:hover { text-decoration: none; color: #996666; } a:active { text-decoration: underline; color: #FF9999; } .style4 { color: #CC3333; font-weight: bold; } .style5 {color: #006699} --> </style> <script language="javascript"> function valid()
68
{ var a=document.form1.comname.value; var b=document.form1.compassword.value; var c=document.form1.comemail.value; var d=document.form1.comcontact.value; var e=document.form1.comcutoff.value; if(document.form1.comname.value=="") { alert("Enter Company Name"); document.form1.comname.focus(); return false; } else if(parseInt(a)) { alert("Company Name cannot be integer"); document.form1.comname.focus(); return false; } if(document.form1.comaddress.value=="") { alert("Enter Company Address"); document.form1.comaddress.focus(); return false; } if(document.form1.compost.value=="") { alert("Enter Company Post"); document.form1.compost.focus(); return false; } if(document.form1.comcriteria.value=="") { alert("Enter Company Criteria"); document.form1.comcriteria.focus(); return false; } if(document.form1.comusername.value=="") { alert("Enter Company Username"); document.form1.comusername.focus(); return false; } if(document.form1.compassword.value=="") { alert("Enter Company Password"); document.form1.compassword.focus();
69
return false; } if(b.length<8) { alert("Password should be minimum 8 characters"); document.form1.compassword.focus(); return false; } if(document.form1.comemail.value=="") { alert("Enter Company Email"); document.form1.comemail.focus(); return false; } else if(c.indexOf('@')==-1) { alert("Enter Email Correctly"); document.form1.comemail.focus(); return false; } else if(c.indexOf('.')==-1) { alert("Enter Email Correctly"); document.form1.comemail.focus(); return false; } if(document.form1.comcontact.value=="") { alert("Enter Company Contact no:"); document.form1.comcontact.focus(); return false; } else if(!parseInt(d)) { alert("Enter ssinteger"); document.form1.comcontact.focus(); return false; } else if(((document.form1.comcontact.value.length)<6) || ((document.form1.comcontact.value.length)>11)) { alert("Phone no should contain atleast 6 integers "); document.form1.comcontact.focus(); return false; } if(document.form1.comcutoff.value=="")
70
{ alert("Enter Company Cutoff"); document.form1.comcutoff.focus(); return false; } else if(!parseInt(e)) { alert("Enter integer"); document.form1.comcutoff.focus(); return false; } else if(parseInt(e)<0||parseInt(e)>100) { alert("Enter cutoff in %"); document.form1.comcutoff.focus(); return false; } return true; } </script> </head> <body style="margin:0px"> <table width="100%" height="390" border="1"> <tr> <td height="28" colspan="2" bgcolor="#624631"><jsp:include page="Header.jsp"/></td> </tr> <tr> <td width="7" height="354" valign="top" bgcolor="#624631"><jsp:include page="menu.html"/></td> <td width="99%" bgcolor="#F2DFE2" valign="top"> <div class="Reg" align="center"> <form action="savecompanydata.jsp" method="post" name="form1" id="form1"> <table width =85% border=0 cellpadding=3 cellspacing=0 bordercolor="#FFFFFF" > <tr bgcolor="" width=100%> <td colspan="2" bgcolor="#F2DFE2"> <div align="left" class="style4"> <div align="center" class="style5">Company Registration </div> </div></td> </tr> <tr bgcolor="" width=100%>
71
<td width="33%" bgcolor="#FFFFFF"><div align="left"><font SIZE="2" COLOR="black" face =arial >Name</font></div></td> <td width="67%" bgcolor="#FFFFFF"><div align="left"> <input TYPE="text" NAME="comname" id="comname" size=30 maxlength=30> </div></td> </tr> <tr bgcolor =#FEF7E9> <td bgcolor="#E6F0F0"><div align="left"><font SIZE="2" COLOR="black" face =arial>Address</font></div></td> <td bgcolor="#E6F0F0"><div align="left"> <input NAME="comaddress" TYPE="text" id="comaddress" size=30 maxlength=50> </div></td> </tr> <tr bgcolor =#FEF7E9> <td bgcolor="#F2DFE2"><div align="left"><font SIZE="2" COLOR="black" face =arial>Post</font></div></td> <td bgcolor="#F2DFE2"><div align="left"> <input NAME="compost" TYPE="text" id="compost" size=30 maxlength=50> </div></td> </tr> <tr bgcolor =#FEF7E9> <td bgcolor="#F2DFE2"><div align="left"><font SIZE="2" COLOR="black" face =arial>Criteria</font></div></td> <td bgcolor="#F2DFE2"><div align="left"> <input NAME="comcriteria" TYPE="text" id="comcriteria" size=30 maxlength=50> </div></td> </tr> <tr wdth =100%> <td bgcolor="#FFFFFF"><div align="left"><font SIZE="2" COLOR="black" face =arial>Username</font></div></td> <td bgcolor="#FFFFFF"><div align="left"> <input TYPE="text" NAME="comusername" id="comusername"size=30 maxlength=30 value=''> </div></td> </tr> <tr wdth =100%> <td bgcolor="#E6F0F0"><div align="left"><font SIZE="2" COLOR="black" face =arial>Password</font></div></td> <td bgcolor="#E6F0F0"><div align="left"> <input TYPE="password" NAME="compassword" id="compassword" size=32 maxlength=30 value=''> </div></td>
72
</tr> <tr bgcolor =#FEF7E9> <td bgcolor="#F2DFE2"><div align="left"><font SIZE="2" COLOR="black" face =arial>Email_id</font></div></td> <td bgcolor="#F2DFE2"><div align="left"> <input TYPE="text" NAME="comemail" id="comemail" size=30 maxlength=30 value=''> </div></td> </tr> <tr> <td bgcolor="#FFFFFF"><div align="left"><font SIZE="2" COLOR="black" face =arial>Contact No:</font></div></td> <td bgcolor="#FFFFFF"><div align="left"> <input TYPE="text" NAME="comcontact" id="comcontact" size=10 maxlength=30 > <font SIZE="2" COLOR="#CC0000" face =arial> (STD-No.)</font></div></td> </tr> <tr bgcolor =#FEF7E9> <td bgcolor="#E6F0F0"><div align="left"><font SIZE="2" COLOR="black" face =arial>CutOff %</font></div></td> <td bgcolor="#E6F0F0"><div align="left"> <input TYPE="text" NAME="comcutoff" id="comcutoff" size=30 maxlength=30 value=''> </div></td> </tr> <tr> <td height="51" colspan=2 bgcolor="#F2DFE2" ><div align="center"><br> <input TYPE="reset"> <input TYPE="submit" value="Submit" onclick="return valid()"> </div> </td> </tr> </table> </form> </div> </td> </tr> </table> </body>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>www.CarrierMithr.com</title> <style type="text/css"> <!-.body { margin:0%; } a:link { color: #000066; text-decoration: underline; } a:visited { text-decoration: underline; color: #C0DCC0; } a:hover { text-decoration: none; color: #996666; } a:active { text-decoration: underline; color: #FF9999; } .style4 { color: #CC3333; font-weight: bold; } .style5 {color: #006699} --> </style> <script language="javascript"> function valid() { var a=document.form1.comname.value; var b=document.form1.compassword.value; var c=document.form1.comemail.value; var d=document.form1.comcontact.value; var e=document.form1.comcutoff.value; if(document.form1.comname.value=="") { alert("Enter Company Name"); document.form1.comname.focus();
74
return false; } else if(parseInt(a)) { alert("Company Name cannot be integer"); document.form1.comname.focus(); return false; } if(document.form1.comaddress.value=="") { alert("Enter Company Address"); document.form1.comaddress.focus(); return false; } if(document.form1.compost.value=="") { alert("Enter Company Post"); document.form1.compost.focus(); return false; } if(document.form1.comcriteria.value=="") { alert("Enter Company Criteria"); document.form1.comcriteria.focus(); return false; } if(document.form1.comusername.value=="") { alert("Enter Company Username"); document.form1.comusername.focus(); return false; } if(document.form1.compassword.value=="") { alert("Enter Company Password"); document.form1.compassword.focus(); return false; } if(b.length<8) { alert("Password should be minimum 8 characters"); document.form1.compassword.focus(); return false; } if(document.form1.comemail.value=="") {
75
alert("Enter Company Email"); document.form1.comemail.focus(); return false; } else if(c.indexOf('@')==-1) { alert("Enter Email Correctly"); document.form1.comemail.focus(); return false; } else if(c.indexOf('.')==-1) { alert("Enter Email Correctly"); document.form1.comemail.focus(); return false; } if(document.form1.comcontact.value=="") { alert("Enter Company Contact no:"); document.form1.comcontact.focus(); return false; } else if(!parseInt(d)) { alert("Enter ssinteger"); document.form1.comcontact.focus(); return false; } else if(((document.form1.comcontact.value.length)<6) || ((document.form1.comcontact.value.length)>11)) { alert("Phone no should contain atleast 6 integers "); document.form1.comcontact.focus(); return false; } if(document.form1.comcutoff.value=="") { alert("Enter Company Cutoff"); document.form1.comcutoff.focus(); return false; } else if(!parseInt(e)) { alert("Enter integer"); document.form1.comcutoff.focus(); return false;
76
} else if(parseInt(e)<0||parseInt(e)>100) { alert("Enter cutoff in %"); document.form1.comcutoff.focus(); return false; } return true; } </script> </head> <body style="margin:0px"> <table width="100%" height="390" border="1"> <tr> <td height="28" colspan="2" bgcolor="#624631"><jsp:include page="Header.jsp"/></td> </tr> <tr> <td width="7" height="354" valign="top" bgcolor="#624631"><jsp:include page="menu.html"/></td> <td width="99%" bgcolor="#F2DFE2" valign="top"> <div class="Reg" align="center"> <form action="savecompanydata.jsp" method="post" name="form1" id="form1"> <table width =85% border=0 cellpadding=3 cellspacing=0 bordercolor="#FFFFFF" > <tr bgcolor="" width=100%> <td colspan="2" bgcolor="#F2DFE2"> <div align="left" class="style4"> <div align="center" class="style5">Company Registration </div> </div></td> </tr> <tr bgcolor="" width=100%> <td width="33%" bgcolor="#FFFFFF"><div align="left"><font SIZE="2" COLOR="black" face =arial >Name</font></div></td> <td width="67%" bgcolor="#FFFFFF"><div align="left"> <input TYPE="text" NAME="comname" id="comname" size=30 maxlength=30> </div></td> </tr> <tr bgcolor =#FEF7E9> <td bgcolor="#E6F0F0"><div align="left"><font SIZE="2" COLOR="black" face =arial>Address</font></div></td> <td bgcolor="#E6F0F0"><div align="left">
77
<input NAME="comaddress" TYPE="text" id="comaddress" size=30 maxlength=50> </div></td> </tr> <tr bgcolor =#FEF7E9> <td bgcolor="#F2DFE2"><div align="left"><font SIZE="2" COLOR="black" face =arial>Post</font></div></td> <td bgcolor="#F2DFE2"><div align="left"> <input NAME="compost" TYPE="text" id="compost" size=30 maxlength=50> </div></td> </tr> <tr bgcolor =#FEF7E9> <td bgcolor="#F2DFE2"><div align="left"><font SIZE="2" COLOR="black" face =arial>Criteria</font></div></td> <td bgcolor="#F2DFE2"><div align="left"> <input NAME="comcriteria" TYPE="text" id="comcriteria" size=30 maxlength=50> </div></td> </tr> <tr wdth =100%> <td bgcolor="#FFFFFF"><div align="left"><font SIZE="2" COLOR="black" face =arial>Username</font></div></td> <td bgcolor="#FFFFFF"><div align="left"> <input TYPE="text" NAME="comusername" id="comusername"size=30 maxlength=30 value=''> </div></td> </tr> <tr wdth =100%> <td bgcolor="#E6F0F0"><div align="left"><font SIZE="2" COLOR="black" face =arial>Password</font></div></td> <td bgcolor="#E6F0F0"><div align="left"> <input TYPE="password" NAME="compassword" id="compassword" size=32 maxlength=30 value=''> </div></td> </tr> <tr bgcolor =#FEF7E9> <td bgcolor="#F2DFE2"><div align="left"><font SIZE="2" COLOR="black" face =arial>Email_id</font></div></td> <td bgcolor="#F2DFE2"><div align="left"> <input TYPE="text" NAME="comemail" id="comemail" size=30 maxlength=30 value=''> </div></td> </tr> <tr>
78
<td bgcolor="#FFFFFF"><div align="left"><font SIZE="2" COLOR="black" face =arial>Contact No:</font></div></td> <td bgcolor="#FFFFFF"><div align="left"> <input TYPE="text" NAME="comcontact" id="comcontact" size=10 maxlength=30 > <font SIZE="2" COLOR="#CC0000" face =arial> (STD-No.)</font></div></td> </tr> <tr bgcolor =#FEF7E9> <td bgcolor="#E6F0F0"><div align="left"><font SIZE="2" COLOR="black" face =arial>CutOff %</font></div></td> <td bgcolor="#E6F0F0"><div align="left"> <input TYPE="text" NAME="comcutoff" id="comcutoff" size=30 maxlength=30 value=''> </div></td> </tr> <tr> <td height="51" colspan=2 bgcolor="#F2DFE2" ><div align="center"><br> <input TYPE="reset"> <input TYPE="submit" value="Submit" onclick="return valid()"> </div> </td> </tr> </table> </form> </div> </td> </tr> </table> </body> </html> Login <%@page contentType="text/html" pageEncoding="UTF-8"%> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>www.CarrierMithr.com</title> <style type="text/css"> <!-.body { margin:0%; }
79
a:link { color: #003366; text-decoration: underline; } a:visited { text-decoration: underline; color: #660066; } a:hover { text-decoration: none; color: #CC6633; } a:active { text-decoration: underline; color: #990033; } .style10 { color: #993300; font-weight: bold; } .style11 { color: #993333; font-weight: bold; } .style12 {color: #339933} body,td,th { color: #336633; } --> </style> </head> <body style="margin:0px"> <table width="100%" height="492" border="1"> <tr valign="top"> <td height="120" colspan="2" bgcolor="#624631"><jsp:include page="Header.jsp"/></td> </tr> <td width="1" height="449" valign="top" bgcolor="#624631"><jsp:include page="menu.html"/></td> <td width="759" valign="top" bgcolor="#E8E1C7"> <div align="right" > <p><img src="Login.jpg" width="209" height="166"></p> </div> <form name="login" method="post" action="savelogindata.jsp"> <div align="right">
80
<table width="219" height="230" border="1" align="right"> <tr valign="top"> <td height="36" bgcolor="#668CCC"><p align="center" class="style10">Already a member???</p> </td> </tr> <tr> <td width="209" height="155" bgcolor="#93C2E6"> <div align="center"> <p><strong>Enter Username </strong><br> <input name="username" type="text" id="username" /> </p> </div> <p align="center"><strong>Enter Password <input name="password" type="password" id="password" /> </strong></p> <label></label> <div align="center"> <input type="submit" name="Submit" value="Login" /> </div></td> </tr> </table> </div></form> <p align="right"> </p> </td> </tr> </table> </tr> </table> </body> </html> Savelogindata <%@page import="java.io.*,java.sql.*"%> <%@page contentType="text/html" pageEncoding="UTF-8"%> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>www.CarrierMithr.com</title> </head> <body> <% try {
81
String s1 = request.getParameter("username"); String s2 = request.getParameter("password"); session.setAttribute("s1", s1); session.setAttribute("s2", s2); Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); Connection conn = DriverManager.getConnection("jdbc:odbc:OnlineExam"); Statement st = conn.createStatement(); Statement st2 = conn.createStatement(); String stat = ""; ResultSet rs; rs = st.executeQuery("select * from Login where Username='" + s1 + "' and Password='" + s2 + "'"); %> <!-- <input type= "hidden" name="id" value ="<%=s1%>"> <input type= "hidden" name="pass" value ="<%=s2%>">--> <% while (rs.next()) { stat = rs.getString("status"); } //while if (stat.equals("s")) { response.sendRedirect("CandidateHomePage.jsp"); } else if (stat.equals("c")) { response.sendRedirect("CompanyHomePage.jsp"); } else if (stat.equals("a")) { response.sendRedirect("AdminHomePage.jsp"); } else { response.sendRedirect("Login.jsp"); } }//try catch (Exception e) { out.println(e); } %> <!-- <input type="hidden" name = "hid" value="<%request.getParameter("username");%>" --> </body> </html> Candidate Change Password <%@page import="java.io.*,java.sql.*;"%> <%@page contentType="text/html" pageEncoding="UTF-8"%>
82
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>www.CarrierMithr.com</title> <style type="text/css"> <!-.style1 { color: #0000FF; font-weight: bold; } .style3 {color: #660066} .style4 {color: #D6C0C9} --> </style> <script language="javascript"> function check() { var a= document.form1.newpass2.value; var b= document.form1.newpass.value; if(document.form1.pass.value =="") { alert("Enter the old password"); document.form1.pass.focus(); return false; } if(document.form1.newpass2.value =="") { alert("Enter the new password"); document.form1.newpass2.focus(); return false; } else if(a.length<8) { alert("password should be minimum 8 characters"); document.form1.newpass2.focus(); return false; } if(document.form1.newpass.value=="") { alert("ReEnter the password"); document.form1.newpass.focus(); return false; }
83
else if(a!=b) { alert("Wrong password match"); document.form1.newpass.focus(); return false; } return true; } </script> </head> <body> <table width="100%" height="482" border="1"> <tr> <td height="55" colspan="2" bgcolor="#FFFFFF"><jsp:include page="CandidateHeader.jsp"/></td> </tr> <tr> <td width="1%"><jsp:include page="Candidatemenu.jsp"/></td> <td width="99%" valign="top" bgcolor="#D6C0C9"><p> </p> <p class="style4"> </p> <span class="style4"> <% try { // HttpSession s = request.getSession(); // String c1 = request.getParameter("id"); String c1 = (String) session.getAttribute("s1"); String c2 = (String) session.getAttribute("s2"); // session.getAttribute("c1", c1); Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); Connection con = DriverManager.getConnection("jdbc:odbc:OnlineExam"); Statement st = con.createStatement(); ResultSet rs = st.executeQuery("select * from Login where Username='" + c1 + "' and Password ='" + c2 + "'"); String s1 = null; String s2 = null; %> <% out.println(c1); out.println(c2); %> <%
84
while (rs.next()) { s1 = rs.getString(1); s2 = rs.getString(2); } %> </span> <form name="form1" method="post" action="savecanpass.jsp" onsubmit="return check()"> <table width="617" height="150" border="1" align="right" cellpadding="1" bordercolor="#CC99FF"> <tr> <td height="23" colspan="3" bordercolor="#CC6633" bgcolor="cc99cc"><div align="center" class="style10 style1"><strong>Change Password </strong></div></td> </tr> <tr> <td width="218" height="26" bordercolor="#CC6633" bgcolor="#9999cc"><span class="style15 style9"><strong> Username </strong></span></td> <td width="202" bordercolor="#CC6633" bgcolor="#FFFFFF"><input name="user" type="text" id="user" value="<%=s1%>" size="35"></td> <td width="175" rowspan="5" bordercolor="#CC6633" bgcolor="#FFFFFF"><img src="gI_0_OnlineMarketingForWomenEntrepreneurs[1] copy.jpg" width="175" height="140"></td> </tr> <tr> <td height="26" bordercolor="#CC6633" bgcolor="#9999cc"><span class="style15 style9"><strong>Old Password </strong></span></td> <td bordercolor="#CC6633" bgcolor="#FFFFFF"><input name="pass" type="password" id="pass" size="35"></td> </tr> <tr> <td height="26" bordercolor="#CC6633" bgcolor="#9999cc"><span class="style15 style9"><strong>New Password </strong></span></td> <td bordercolor="#CC6633" bgcolor="#FFFFFF"><input name="newpass2" type="password" id="newpass2" size="35"></td> </tr> <tr> <td height="26" bordercolor="#CC6633" bgcolor="#9999cc"><span class="style15 style9"><strong>Retype New Password</strong></span></td> <td bordercolor="#CC6633" bgcolor="#FFFFFF"><input name="newpass" type="password" id="newpass" size="35"></td> </tr> <tr> <td height="28" colspan="2" bordercolor="#CC6633" bgcolor="#9999cc"><div align="center"> <input name="Submit" type="submit" class="style9" value="Submit">
85
</div></td> </tr> </table> </form> <% }//try catch (Exception e) { out.println(e); } %> </td> </tr> </table> </body> </html> Candidate Delete <%@ page import="java.sql.*" %> <% String uname = request.getParameter("id"); try { Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); Connection con = DriverManager.getConnection("jdbc:odbc:OnlineExam"); Statement st = con.createStatement(); String sql = "delete from Com where CUsername='" + uname + "'"; int x = st.executeUpdate(sql); if (x > 0) { response.sendRedirect("AdminCompanyDetails.jsp"); } else { out.println("Error: cannot delete record"); } con.close(); } catch (Exception ex) { out.println(ex.getMessage()); } %> Candidate EditProfile <%@ page contentType="text/html; charset=utf-8" language="java" import="java.sql.*" errorPage="" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
86
<html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>www.CarrierMithr.com</title> </head> <body> <table width="104%" height="628" border="1"> <tr> <td height="23" colspan="2"><jsp:include page="CandidateHeader.jsp"/></td> </tr> <tr> <td height="597"><jsp:include page="Candidatemenu.jsp"/></td> <td bgcolor="#EBD9CD"> <% try { String c1 = (String) session.getAttribute("s1"); String c2 = (String) session.getAttribute("s2"); Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); Connection con = DriverManager.getConnection("jdbc:odbc:OnlineExam"); Statement st = con.createStatement(); ResultSet rs = st.executeQuery("select * from Details where Username='" + c1 + "'"); String s1 = null; String s2 = null; String s3 = null; String s4 = null; String s5 = null; String s6 = null; String s7 = null; String s8 = null; String s9 = null; String s10 = null; String s11 = null; String expyrs = "", company = "", desig = "", sal = "", comadd = "", category = ""; while (rs.next()) { s1 = rs.getString(2);//name s2 = rs.getString(5);//colg s3 = rs.getString(6);//colgph s4 = rs.getString(7);//colgemail
87
s5 = rs.getString(9);//mark s6 = rs.getString(11);//email s7 = rs.getString(12);//tph s8 = rs.getString(13);//add s9 = rs.getString(14);//state s10 = rs.getString(15);//pin s11 = rs.getString(16);//category } String sql = "select * from Experienced where Username='" + c1 + "'"; rs = st.executeQuery(sql); if (rs.next()) { expyrs = rs.getString(2); company = rs.getString(3); desig = rs.getString(4); sal = rs.getString(5); comadd = rs.getString(6); category = "Experienced"; } else { category = "Fresher"; } %> <form method="POST" action="savestudentedit.jsp" name="form1"> <table border=0 cellpadding=3 cellspacing=0 width =81% align=center> <tr bgcolor =#FEF7E9 wdth =100%> <td colspan="2" bgcolor="#E2E0CF"><div align="center"><font color="#386A78" size="5"><strong>Edit Profile</strong></font></div></td> </tr> <tr bgcolor =#FEF7E9 wdth =100%> <td width="48%" bgcolor="#F3E8DA"><strong><font color="#666600" size="3" face="Times New Roman, Times, serif">Name <font color="#993333">(as in academic records)</font> </font></strong></td> <td width="52%" bgcolor="#F3E8DA"><input TYPE="text" NAME="name" size=30 maxlength=30 value='<%=s1%>'> </td> </tr> <tr bgcolor =#FEF7E9> <td bgcolor="#F3E8DA"> <strong><font SIZE="3" COLOR="#666600" face ='Times New Roman, Times, serif'>College in which studying</font> </strong> </td> <td bgcolor="#F3E8DA"><input TYPE="text" NAME="college" size=30 maxlength=30 value='<%=s2%>'> </td> </tr>
88
<tr bgcolor =#FEF7E9> <td bgcolor="#F3E8DA"> <strong><font SIZE="3" COLOR="#666600" face ='Times New Roman, Times, serif'>College Phone</font> </strong> </td> <td bgcolor="#F3E8DA"><input TYPE="text" NAME="collegephone" size=30 maxlength=30 value='<%=s3%>'><font SIZE="2" COLOR="#CC0000" face =arial (STD-No.)> </td> </tr> <tr bgcolor="#FFFFFF"> <td> <strong><font SIZE="3" COLOR="#666600" face ='Times New Roman, Times, serif'>College Email</font> </strong> </td> <td><input TYPE="text" NAME="collegeemail" size=30 maxlength=50 value='<%=s4%>'> </td> </tr> <tr bgcolor =#FEF7E9> <td bgcolor="#F3E8DA"> <strong><font SIZE="3" COLOR="#666600" face ='Times New Roman, Times, serif'>% of Marks</font></strong> </td> <td bgcolor="#F3E8DA"> <table width="111" border=0 cellpadding=0 cellspacing=0> <tr> <td width="95"><div align="center"><font SIZE="2" COLOR="#3366CC" face =arial><strong>BCA / B.Sc. %</strong></font> </div></td> </tr> <tr> <td><input TYPE="text" NAME="markDegree" size=8 maxlength=8 value='<%=s5%>' onblur="checkDec('markBSC')"> </td> </tr> </table> </td> </tr> <tr bgcolor =#FEF7E9> <td bgcolor="#F3E8DA"> <strong><font SIZE="3" COLOR="#666600" face ='Times New Roman, Times, serif'>Email_id</font></strong> </td> <td bgcolor="#F3E8DA"><input TYPE="text" NAME="email" size=30 maxlength=30 value='<%=s6%>'></td> </tr> <tr bgcolor="#FFFFFF"> <td>
89
<strong><font SIZE="3" COLOR="#666600" face ='Times New Roman, Times, serif'>Telephone Number</font> </strong></td> <td><input NAME="telephone" TYPE="text" id="telephone" value="< %=s7%>"> <font SIZE="2" COLOR="#CC0000" face ='arial'>(STD-No.) </font> </td> </tr> <tr bgcolor =#FEF7E9> <td bgcolor="#F3E8DA" ><strong><font face="Times New Roman, Times, serif" color=#666600 size=3>Address</font> </strong></td> <td bgcolor="#F3E8DA"> <input class=USS_TEXT maxLength=30 name="address" size=40 value='<%=s8%>'><b><font face="ARIAL, HELVETICA" color=red size=+2></font></b> </td> </tr> <tr bgcolor="#FFFFFF"> <td><strong><font face="Times New Roman, Times, serif" color=#666600 size=3>State</font> </strong></td> <td><select name=state> <option selected value='<%=s9%>'>Select State</option> <option value=AP>Andhra Pradesh</option> <option value=AR>Arunachal Pradesh</option> <option value=AS>Assam</option> <option value=BR>Bihar</option> <option value=CH>Chandigarh</option> <option value=CG>Chattisgarh</option> <option value=DL>Delhi</option> <option value=GA>Goa</option> <option value=GJ>Gujarat</option> <option value=HR>Haryana</option> <option value=HP>Himachal Pradesh</option> <option value=JK>Jammu & Kashmir</option> <option value=JH>Jharkhand</option> <option value=KA>Karnataka</option> <option value=KL>Kerala</option> <option value=MP>Madhya Pradesh</option> <option value=MH>Maharashtra</option> <option value=MN>Manipur</option> <option value=ML>Meghalaya</option> <option value=MZ>Mizoram</option> <option value=NL>Nagaland</option> <option value=OR>Orissa</option> <option value=PY>Pondicherry</option> <option value=PB>Punjab</option> <option value=RJ>Rajasthan</option> <option value=SK>Sikkim</option>
90
<option value=TN>Tamilnadu</option> <option value=TR>Tripura</option> <option value=UA>Uttaranchal</option> <option value=UP>Uttar Pradesh</option> <option value=WB>West Bengal</option> <option value=XX>Others</option></select><br> </td> </tr> <tr bgcolor="#FFFFFF"> <td bgcolor="#F3E8DA"> <strong><FONT face="Times New Roman, Times, serif" color=#666600 size=3>Pincode</FONT> </strong> </td> <td bgcolor="#F3E8DA"><INPUT class=USS_TEXT maxLength=6 name="pin" size=6 value='<%=s10%>'><B><FONT face="ARIAL, HELVETICA" color=red size=+2></FONT></B> <input type="hidden" name="category" id="category" value="< %=category%>" /> </td> </tr> <% if (s11.equalsIgnoreCase("Fresher")) { %> <tr bgcolor="#FFFFFF"> <td> <strong><font SIZE="3" COLOR="#666600" face ='Times New Roman, Times, serif'>Category</font></strong> </td> <td align="left" > <input type="radio" name="cat" value='Experienced' onclick="setVal(this);" />Experienced </td> </tr> <% } %> <tr bgcolor =#FEF7E9> <td bgcolor="#F3E8DA"> <strong><font SIZE="3" COLOR="#666600" face ='Times New Roman, Times, serif'>Experienced Years</font></strong> </td> <td bgcolor="#F3E8DA"><input TYPE="text" NAME="expyears" size=30 maxlength=30 value="<%=expyrs%>"></td> </tr> <tr bgcolor =#FEF7E9> <td bgcolor="#F3E8DA"><strong><font SIZE="3" COLOR="#666600" face ='Times New Roman, Times, serif'>Company</font></strong></td> <td bgcolor="#F3E8DA"><input TYPE="text" NAME="company" size=30 maxlength=30 value="<%=company%>"></td>
91
</tr> <tr bgcolor =#FEF7E9> <td bgcolor="#F3E8DA"><strong><font SIZE="3" COLOR="#666600" face ='Times New Roman, Times, serif'>Designation </font></strong></td> <td bgcolor="#F3E8DA"><input TYPE="text" NAME="designation" size=30 maxlength=30 value="<%=desig%>"></td> </tr> <tr bgcolor =#FEF7E9> <td bgcolor="#F3E8DA"><strong><font SIZE="3" COLOR="#666600" face ='Times New Roman, Times, serif'>Salary</font></strong></td> <td bgcolor="#F3E8DA"><input TYPE="text" NAME="salary" size=30 maxlength=30 value="<%=sal%>"></td> </tr> <tr bgcolor =#FEF7E9> <td bgcolor="#F3E8DA"><strong><font SIZE="3" COLOR="#666600" face ='Times New Roman, Times, serif'>Company Address</font></strong></td> <td bgcolor="#F3E8DA"><input TYPE="text" NAME="comAddress" size=30 maxlength=30 value="<%=comadd%>"></td> </tr> <tr> <td height="49" colspan=2 align="center" ><input TYPE="submit" value=" Edit "></td> </tr> </table> </form> <%// }//while }//try catch (Exception e) { out.println(e); } %> </td> </tr> </table> </body> </html> Exam Conduct <%@page import="java.io.*,java.sql.*;"session="true"%> <%@page contentType="text/html" pageEncoding="UTF-8"%> <% Connection con = null; Statement st = null, st2 = null; ResultSet rs = null; String sql = null;
92
try { Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); con = DriverManager.getConnection("jdbc:odbc:OnlineExam"); st = con.createStatement(); } catch (Exception ex) { out.println("Error: " + ex.toString()); } %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>JSP Page</title> <style type="text/css"> <!-.style1 { font-size: 18px; font-weight: bold; color: #FF0000; } .style7 {color: #006666; font-weight: bold; } .style14 {color: #006699} --> </style> </head> <body style="margin:0px" bgcolor="#FFFFFF"> <table width="100%" border="1" bgcolor="#FFFFFF"> <tr> <td height="107" colspan="2"><jsp:include page="CandidateHeader.jsp"/></td> </tr> <tr> <td width="1" height="512"><jsp:include page="Candidatemenu.jsp"/></td> <td width="961" bgcolor="#D8E7E7" valign="top"> <table width="304" height="243" border="0" align="center"> <tr> <td colspan="2"><div align="center" class="style1"> <p>Exam</p> <p> </p> </div></td> </tr> <tr>
93
<% String jid = request.getParameter("jobid"); try { if (jid == null) { %> <form name="exam1" action ="ExamConduct.jsp"> <td width="167" height="42"><span class="style7">Select a JobID </span></td> <td width="112"> <select name="jobid"> <% rs = st.executeQuery("select * from JobDetails"); String s1 = null; // String s2=null; while (rs.next()) { s1 = rs.getString("JobId"); // s2=rs.getString("Post"); out.println("<option value='" + s1 + "'>" + s1 + "</option>"); }//while %> </select> </td> <tr><td> <div align="center"> <input type="submit" value="OK "> </div></td></tr> </form> <% }//if else { jid = request.getParameter("jobid"); sql = "select Post from Exam where JobID='" + jid + "'"; rs = st.executeQuery(sql); String post = null; if (rs.next()) { post = rs.getString("Post"); } rs.close(); %> <form name="examSelection" action ="11.jsp"> <tr> <td><span class="style7">Post Name :</span></td>
94
<td><%=post%></td> <td width="11"> </td> </tr> <tr> <td height="30" class="style7"> </td> <td> </td> <td> </td> </tr> <tr> <td height="30" class="style7">Select an Exam</td> <td><select name="examid"> <% sql = "select ExamID,ExamName from Exam where JobID='" + jid + "'"; rs = st.executeQuery(sql); String exname = null; String exid = null; while (rs.next()) { exid = rs.getString("ExamID"); exname = rs.getString("ExamName"); out.println("<option value='" + exid + "'>" + exname + "</option>"); } %> </select> </td> <td> </td> </tr> <tr> <td class="style7"><div align="center"> <input type="submit" value="OK "> </div></td> </tr> </form> </table> <p> </p> <% session.setAttribute("jobid", request.getParameter("jobid")); session.setAttribute("post", post); }//else }//try catch (Exception e) { out.println(e); }
95
%> </td> </tr> </table> </body> </html> Exam Creation <%@page import="java.io.*,java.sql.*"session="true"%> <%@page contentType="text/html" pageEncoding="UTF-8"%> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>www.CarrierMithr.com</title> <style type="text/css"> <!-.style1 { font-size: 18px; font-weight: bold; color: #FF0000; } .style7 {color: #CC3333; font-weight: bold; } .style14 {color: #006699} .style19 {color: #003366; font-weight: bold; } .style20 {color: #663366} --> </style> </head> <body style="margin:0px" bgcolor="#FFFFFF"> <table width="100%" border="1" bgcolor="#FFFFFF"> <tr> <td height="107" colspan="2"><jsp:include page="CompanyHeader.jsp"/></td> </tr> <tr> <td width="1" height="512"><jsp:include page="Companymenu.html"/></td> <td width="961" bgcolor="#B0CDD7" valign="top"> <table width="277" height="144" border="0" align="center"> <tr> <td colspan="2"><div align="center" class="style1"> <p class="style7 style14">Exam Creation </p>
96
</div></td> </tr> <tr> <% String jid = request.getParameter("jobid"); try { if (jid == null) { Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); Connection con = DriverManager.getConnection("jdbc:odbc:OnlineExam"); Statement st = con.createStatement(); %> <form name="form1" action="ExamCreation.jsp"> <td width="163" height="42"><span class="style19">Select a JobID </span></td> <td width="104"> <label> <select name="jobid"> <% ResultSet rs = st.executeQuery("select * from JobDetails"); String s1 = null; // String s2=null; while (rs.next()) { s1 = rs.getString("JobId"); // s2=rs.getString("Post"); %> <option value="<%=s1%>"><%=s1%></option> <% }//while %> </select> </label> </td> <tr><td> <div align="center"> <input type="submit" value="Show Details"> </div></td></tr> </form> <% }//if else { jid = request.getParameter("jobid"); Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); Connection con = DriverManager.getConnection("jdbc:odbc:OnlineExam"); Statement st = con.createStatement(); Statement st2 = con.createStatement(); ResultSet rs = st.executeQuery("select * from JobDetails where JobId='" + jid + "'"); String s2 = null; while (rs.next()) {
97
s2 = rs.getString("post"); %> <tr> <td><span class="style19">Post Name :</span></td> <td><%=s2%></td> </tr> </table> <p> </p> <form method="post" action="saveexamdetails.jsp"> <table width="318" height="166" border="1" align="center"> <tr> <td width="138" height="40" bordercolor="#666666" bgcolor="#B0CDD7"><div align="center" class="style4 style20"><strong>Exam ID</strong></div></td> <td width="164" bordercolor="#666666" bgcolor="#B0CDD7"><input type="text" name="examid"></td> </tr> <tr> <td height="40" bordercolor="#666666" bgcolor="#B0CDD7"><div align="center" class="style4 style20"><strong>Exam Name </strong></div></td> <td bordercolor="#666666" bgcolor="#B0CDD7"><input type="text" name="examname"></td> </tr> <tr> <td height="41" bordercolor="#666666" bgcolor="#B0CDD7"><div align="center" class="style4 style20"><strong>Cutoff %</strong></div></td> <td bordercolor="#666666" bgcolor="#B0CDD7"><input type="text" name="cutoff"></td> </tr> <tr> <td height="33" colspan="2" bordercolor="#666666" bgcolor="#B0CDD7"><div align="center"> <input type="submit" name="Submit" value="Submit"> </div> </td> </tr> </table> </form> <% }//while session.setAttribute("jobid", request.getParameter("jobid")); session.setAttribute("post", s2); }//else }//try
98
catch (Exception e) { out.println(e); } %> </td> </tr> </table> </body> </html> View Question <%@page import="java.io.*,java.sql.*;"%> <%@page contentType="text/html" pageEncoding="UTF-8"%> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>www.CarrierMithr.com</title> <style type="text/css"> <!-.style1 { font-size: 24px; color: #003399; font-weight: bold; } .style6 {color: #3399FF; font-weight: bold; } .style7 {color: #660099} .style10 {color: #663300; font-weight: bold; } .style11 {font-weight: bold} .style15 {color: #CC0066; font-weight: bold; } --> </style> </head> <body style="margin:0px" bgcolor="#FFFFFF"> <table width="100%" border="1" bgcolor="#FFFFFF"> <tr> <td height="85" colspan="2"><jsp:include page="CompanyHeader.jsp"/></td> </tr> <tr> <td width="1" height="512" valign="top"><jsp:include page="Companymenu.html"/></td> <td width="961" valign="top">
99
<form name="form1" action="ViewQues.jsp"> <table width="35%" height="97" border="0" align="center"> <tr> <td height="28" colspan="2" bgcolor="#FFFFFF"><div align="center" class="style1"> <p class="style6 style7">View Questions</p> </div></td> </tr> <tr> <% String jid = request.getParameter("jobid"); String eid = request.getParameter("examid"); //out.print(jid); try { if (eid == null) { Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); Connection con = DriverManager.getConnection("jdbc:odbc:OnlineExam"); Statement st = con.createStatement(); Statement st2 = con.createStatement(); %> <tr> <td width="129" height="32"><span class="style15">Select an JobID </span></td> <td width="118"><label> <select name="jobid"> <% ResultSet rs2 = st2.executeQuery("select * from JobDetails"); String s2 = null; // String s2=null; while (rs2.next()) { s2 = rs2.getString("jobid"); // s2=rs.getString("Post"); %> <option value="<%=s2%>"><%=s2%></option> <%}%> </select> </label> </td></tr> <td width="129" height="32"><span class="style15">Select an ExamID </span></td> <td width="118"><label> <select name="examid">
100
<% ResultSet rs = st.executeQuery("select * from Exam "); String s1 = null; // String s2=null; while (rs.next()) { s1 = rs.getString("examid"); // s2=rs.getString("Post"); %> <option value="<%=s1%>"><%=s1%></option> <%}%> </select> </label> </td></tr> <tr> <td><div align="center"> <input type="submit" value="Show Details"> </div></td> </tr> </table> </form> <p> <% } else { %> </p> <table width="99%" height="54" border="1" align="left"> <tr> <td width="149" bordercolor="#666699" bgcolor="#F1F0E2"><div align="center"><span class="style10">Question No: </span></div></td> <td width="149" height="23" bordercolor="#666699" bgcolor="#F1F0E2"><div align="center" class="style10"><span class="style11">Question</span></div></td> <td width="74" bordercolor="#666699" bgcolor="#F1F0E2"><div align="center" class="style10"><span class="style11">Option 1</span></div></td> <td width="85" bordercolor="#666699" bgcolor="#F1F0E2"><div align="center" class="style10"><span class="style11">Option 2</span></div></td> <td width="75" bordercolor="#666699" bgcolor="#F1F0E2"><div align="center" class="style10"><span class="style11">Option 3</span></div></td> <td width="78" bordercolor="#666699" bgcolor="#F1F0E2"><div align="center" class="style10"><span class="style11">Option 4</span></div></td> <td width="80" bordercolor="#666699" bgcolor="#F1F0E2"><div align="center" class="style10"><span class="style11">Answer</span></div></td>
101
<td width="77" bordercolor="#666699" bgcolor="#F1F0E2"><div align="center" class="style10"><span class="style11">Delete</span></div></td> </tr> <% Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); Connection con = DriverManager.getConnection("jdbc:odbc:OnlineExam"); Statement st3 = con.createStatement(); // Statement st2=con.createStatement(); ResultSet rs3 = st3.executeQuery("select QuestionNo,Question,Option1,Option2,Option3,Option4,Answer from Question where ExamID='" + eid + "' and JobID='" + jid + "'"); // String s2=null; while (rs3.next()) { String qno = rs3.getString("QuestionNo"); String ques = rs3.getString("Question"); String op1 = rs3.getString("Option1"); String op2 = rs3.getString("Option2"); String op3 = rs3.getString("Option3"); String op4 = rs3.getString("Option4"); String ans = rs3.getString("Answer");
%> <tr> <td bordercolor="#666699" bgcolor="#F1F0E2"><%=qno%></td> <td height="23" bordercolor="#666699" bgcolor="#F1F0E2"><div align="center"> <%=ques%> </div></td> <td height="23" bordercolor="#666699" bgcolor="#F1F0E2"><div align="center"> <%=op1%> </div></td> <td height="23" bordercolor="#666699" bgcolor="#F1F0E2"><div align="center"> <%=op2%> </div></td> <td height="23" bordercolor="#666699" bgcolor="#F1F0E2"><div align="center"> <%=op3%> </div></td>
102
<td height="23" bordercolor="#666699" bgcolor="#F1F0E2"><div align="center"> <%=op4%> </div></td> <td height="23" bordercolor="#666699" bgcolor="#F1F0E2"><div align="center"> <%=ans%> </div></td> <td height="23" bordercolor="#666699" bgcolor="#F1F0E2"><div align="center"><a href="DeleteQues.jsp?qno=<%=qno%>&jid=<%=jid%>&eid=<%=eid%>" >Delete</a></div></td> </tr> <% } con.close(); } } catch (Exception e) { out.println(e); } %> </table> </td> </tr> </table> </body> </html> Exam Result <%@page import="java.io.*" %> <%@page contentType="text/html" pageEncoding="UTF-8" session="true" import="java.sql.*"%> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>www.CarrierMithr.com</title> </head> <body> <table width="104%" height="628" border="1">
103
<tr> <td height="23" colspan="2"><jsp:include page="CandidateHeader.jsp"/></td> </tr> <tr> <td width="1" height="597"><jsp:include page="Candidatemenu.jsp"/></td> <td width="738" valign="top"> <% String uname = session.getAttribute("s1").toString(); String sql = ""; Connection con; Statement st; ResultSet rs = null; // out.println(uname); try { sql = "select * from Result where studentID='" + uname + "'"; Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); con = DriverManager.getConnection("jdbc:odbc:OnlineExam"); st = con.createStatement(); rs = st.executeQuery(sql); %> <table width="546" border="1" align="center"> <tr bgcolor="#CCCCCC"> <td bgcolor="#CCCCCC"><div align="center"><strong>Exam ID</strong></div></td> <td bgcolor="#CCCCCC"><div align="center"><strong>Job ID</strong></div></td> <td bgcolor="#CCCCCC"><div align="center"><strong>Mark</strong></div></td> </tr> <% while (rs.next()) { out.println("<tr>"); out.println("<td>" + rs.getString(2) + "</td>"); out.println("<td>" + rs.getString(3) + "</td>"); out.println("<td>" + rs.getString(4) + "</td>"); out.println("</tr>"); }%> </table> <% } catch (Exception ex) { out.println(ex.toString());
104
} %> </td> </tr> </table> </body> </html> Savestudentdata <%@page import="java.io.*,java.sql.*;" %> <%@page contentType="text/html" pageEncoding="UTF-8"%> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>www.CarrierMithr.com</title> </head> <body bgcolor="#D9EEFB"> <p> <% try { Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); Connection con = DriverManager.getConnection("jdbc:odbc:OnlineExam"); Statement st = con.createStatement(); Statement st2 = con.createStatement(); Statement st3 = con.createStatement(); String status = "s"; st2.executeUpdate("insert into Login values('" + request.getParameter("username") + "','" + request.getParameter("password") + "','" + status + "')"); st.executeUpdate("insert into Details values('" + request.getParameter("username") + "','" + request.getParameter("name") + "','" + request.getParameter("gender") + "','" + request.getParameter("dob") + "','" + request.getParameter("college") + "','" + request.getParameter("collegephone") + "','" + request.getParameter("collegeemail") + "','" + request.getParameter("branch") + "','" + request.getParameter("markDegree") + "','" + request.getParameter("degree") + "','" + request.getParameter("email") + "','" + request.getParameter("telephone") + "','" + request.getParameter("address") + "','" + request.getParameter("state") + "','" + request.getParameter("pin") + "','" + request.getParameter("sel_cat") + "')"); if (request.getParameter("sel_cat").equals("Experienced")) { st3.executeUpdate("insert into Experienced values('" + request.getParameter("username") + "','" + request.getParameter("expyears") + "','" + request.getParameter("company") + "','" + request.getParameter("designation") + "','" + request.getParameter("salary") + "','" + request.getParameter("comAddress") + "')");
105
} st.close(); st2.close(); st3.close(); } catch (Exception e) { out.println(e); } %> <font color="red" size="5"> You have registered successfully!!!<br> </font></p> <p><a href="Login.jsp"><strong>Go Forward</strong></a></p> </body> </html> Save job edit <%@page import="java.sql.*" %> <%@page import="java.io.*,java.sql.*,java.util.*,java.util.Vector;"%> <%@page contentType="text/html" pageEncoding="UTF-8"%> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <title>www.CarrierMithr.com</title> <style type="text/css"> <!-body { background-color: #E2EFD6; } --> </style></head> <body> <table> <% try { String jid = request.getParameter("jobid"); Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); Connection con = DriverManager.getConnection("jdbc:odbc:OnlineExam"); Statement st = con.createStatement(); st.executeUpdate("Update JobDetails set Post='" + request.getParameter("post") + "',Criteria='" + request.getParameter("criteria") + "',NoOfVacancies='" +
106
request.getParameter("vacancies") + "',Salary='" + request.getParameter("salary") + "',LastDate='" + request.getParameter("lastdate") + "' where JobId='" + jid + "'"); %> <font color="red" size="5"> <%out.println("You have Successfully Edited!!!"); %></font> <% } catch (Exception e) { out.println(e); } %> </table> <p> </p> <p><a href="CompanyHomePage.jsp"><strong>Goto Home</strong></a> </p> </body> </html>
107
9 .CONCLUSION
Now a days manual process of searching a job of the appropriate choice and searching the appropriate candidate for a specific job has become a huge task.And so for realizing the need of easy management of this process the site has been developed.Its very easy to update and maintain information through this site.The main features of this site includes flexibility, easy to manipulate informations, easy access searching, storage, reduce manual work in an efficient manner, a quick, convenient, reliable, timely and effective way to reach recruiting, search and employment professionals worldwide and most economical.The project could very well be enhanced further as per the requirements.
108
10. BOOKS
BIBLIOGRAPHY
1. Charles Hampfed(2000)Instant Java Server Pages University of Toranto 2. Herbert Schildt(2000) Java Complete Reference Tata McGrow Hill 3. John Zukowski(2000)Master in Java2 BPB Publications 4. Jamie Jaworsky J2EE Bible Techmedia 5. Stefen Denniger Enterprise JavaBeans 2.1 Authors Press
2. www.java.sun.com 3. www.codeguru.com
109
110
111