Professional Documents
Culture Documents
CHAPTER-1
1. INTRODUCTION
This project CORPORATE CONNECTIONS is an
online website in which jobseekers can see the
complete information regarding any company they want
to peruse corporate connections provides online help to
users all over the world. In this user can get all the
information regarding the company like it's workplace
environment, opinions of present workers, and ex-
workers, all the pros and cons including the information
present at Wikipedia like when founded, founder.
revenue etc. Instead of searching on different websites
user can explore about a company using this single
website and find the job which best suits to the user.
Those who want to get updated about their workplace
before joining or want to set target for their dream job
or want to know about new company from here the
planning begins and it is the best suited place to begin
with. Corporate Connections enable the users to add on
reviews and their opinion by registering themselves. It
resolves the issue of fakeness among the upgrading
industries and to maintain crystal clear image of the
company for inside and outside world which will
maintain the enthusiasm among the fresher’s and
jobseekers. Each company register itself and can add on
fresh notification about their upcoming events or any
job recruitment in the company. This multiplatform
solution brings in by default the basic intelligence and
immense possibilities for further extension of the
application as required by the users. The system make it
friendly to distribute, share and manage the companies
with higher efficiency and easiness. The objective of
this website is serve as a common meeting ground for
jobseekers and employers, both locally and globally
where candidates can find their green jobs and recruiter
1
Corporate Connections
2
Corporate Connections
CHAPTER-2
2. SYSTEM ANALYSIS
2.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.
2.2 DESCRIPTION OF PRESENT SYSTEM
Presently to find information regarding company, for
its basic details we have to search Wikipedia, for details
like pros and cons, reviews regarding a company we
have to via other website.
2.3 LIMITIONS OF THE PRESENT SYSYTEM
Presently to find information this task of searching and
gathering information regarding a company is time
consuming and hectic work. This website is convenient
for job seekers and good at managing all companies
related data.
2.4 PROPOSED SYSTEM
Corporate Connections aimed at developing a web-
based centralized source of information regarding the
companies where companies whether upcoming or
3
Corporate Connections
4
Corporate Connections
_
Process
_
Storage
5
Corporate Connections
6
Corporate Connections
CHAPTER-3
3.1. TABLE SPECIFICATION:
Figure3.1.1: Review
Database
Figure3.1.2-SignUp
7
Corporate Connections
Figure3.1.3-Wall
8
Corporate Connections
CHAPTER-4
9
Corporate Connections
10
Corporate Connections
11
Corporate Connections
12
Corporate Connections
CHAPTER-5
5.1 J2EE COMPONENTS
J2EE applications are made up of components. A J2EE
component is a self-contained 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.
13
Corporate Connections
14
Corporate Connections
15
Corporate Connections
16
Corporate Connections
17
Corporate Connections
Platform: Eclipse
18
Corporate Connections
CHAPTER-6
6. APPENDIX
6.1 SCREEN LAYOUT
Figure 6.1.1 About
Figure-6.1.2 Workplace
19
Corporate Connections
Figure6.1.3 Reviews
20
Corporate Connections
21
Corporate Connections
Figure6.1.7 Sign In
22
Corporate Connections
23
Corporate Connections
<result name="input">doit.jsp</result>
</action>
<action name="signin" class="Sign_in" >
<result name="success">home1.jsp</result>
<result name="failure">signIn.jsp</result>
<result name="input">signIn.jsp</result>
</action>
<action name="update" class="update">
<result name="success">logout.jsp</result>
<result name="input">/update.jsp</result>
</action>
<action name="newpassword" class="newpassword">
<result name="success">logout.jsp</result>
<result name="input">newpassword.jsp</result>
</action>
<action name="wallpost" class="Wall">
<result name="success">logout.jsp</result>
<result name="input">wallpost.jsp</result>
</action>
<action name="logout" class="logout">
<result name="success">index.jsp</result>
</action>
24
Corporate Connections
25
Corporate Connections
Sign _up.java
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import org.hibernate.classic.Session;
import org.hibernate.SessionFactory;
import org.hibernate.cfg.Configuration;
import com.opensymphony.xwork2.ActionSupport;
@Entity
public class Sign_up extends ActionSupport {
@Id
@GeneratedValue(strategy=GenerationType.AUTO)
int id;
String
type,founded,key_people,headquarters,locations,service
s,revenue,no_of_employees,website,name,loc,password
;
public String getType() {
return type }
public String getFounded() {
return founded;
}
26
Corporate Connections
27
Corporate Connections
28
Corporate Connections
this.headquarters = headquarters;
}
public void setLocations(String locations) {
this.locations = locations;
}
public void setServices(String services) {
this.services = services;
}
public void setRevenue(String revenue) {
this.revenue = revenue;
}
public void setNo_of_employees(String
no_of_employees) {
this.no_of_employees = no_of_employees;
}
public void setWebsite(String website) {
this.website = website;
}
public void setName(String name) {
this.name = name;
}
public void setLoc(String loc) {
29
Corporate Connections
this.loc = loc;
}
public void setPassword(String password) {
this.password = password;
}
public void setId(int id) {
this.id = id;
}
@Override
public String execute() throws Exception {
Sign_up obj= new Sign_up();
obj.setType(type);
obj.setFounded(founded);
obj.setKey_people(key_people);
obj.setHeadquarters(headquarters);
obj.setLocations(locations);
obj.setServices(services);
obj.setRevenue(revenue);
obj.setNo_of_employees(no_of_employees);
obj.setWebsite(website);
obj.setName(name);
obj.setLoc(loc);
30
Corporate Connections
obj.setPassword(password);
SessionFactory sf= new
Configuration().configure().buildSessionFactory();
Session ses= sf.openSession();
ses.beginTransaction();
ses.save(obj);
ses.getTransaction().commit();
return "success";
}
}
SignIn.java
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.Statement;
import java.util.Map;
import org.apache.struts2.interceptor.SessionAware;
import com.opensymphony.xwork2.ActionSupport;
public class Sign_in extends ActionSupport implements
SessionAware {
String
name,location,type,founded,key_people,headquarters,lo
cations,services,revenue,no_of_employees,website,id,p
assword;
31
Corporate Connections
32
Corporate Connections
33
Corporate Connections
this.locations = locations;
}
public void setRevenue(String revenue) {
this.revenue = revenue;
}
public void setNo_of_employees(String
no_of_employees) {
this.no_of_employees = no_of_employees;
}
public void setWebsite(String website) {
this.website = website;
}
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public String getName() {
return name;
}
public String getPassword() {
34
Corporate Connections
return password;
}
35
Corporate Connections
Connection
con=DriverManager.getConnection("jdbc:oracle:thin:@
localhost:1521:xe","SYSTEM","oracle");
Statement st=con.createStatement();
ResultSet rs=st.executeQuery("select * from Sign_up
where name='"+(name)+"' and
password='"+password+"'");
if(rs.next())
{
id=rs.getString(1);
name=rs.getString(7);
type=rs.getString(12);
founded=rs.getString(2);
key_people=rs.getString(4);
headquarters=rs.getString(3);
locations=rs.getString(6);
services=rs.getString(11);
revenue=rs.getString(10);
no_of_employees=rs.getString(8);
website=rs.getString(13);
session.put("id", id);
session.put("name", name);
session.put("founded", founded);
session.put("key_people", key_people);
36
Corporate Connections
session.put("headquarters", headquarters);
session.put("services", services);
session.put("revenue", revenue);
session.put("no_of_employees", no_of_employees);
session.put("website", website);
session.put("locations", locations);
System.out.println("done ");
return "success";
}
else
return "failure";
}
@Override
public void setSession(Map<String, Object> arg0) {
// TODO Auto-generated method stub
session=arg0;
}
}
Update.java
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.Statement;
37
Corporate Connections
import java.util.Map;
import org.apache.struts2.interceptor.SessionAware;
import com.opensymphony.xwork2.ActionSupport;
public class update extends ActionSupport implements
SessionAware {
String
type,founded,key_people,headquarters,locations,service
s,revenue,no_of_employees,website,name,loc,password
,id;
Map<String, Object> session;
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public String getType() {
return type;
}
public String getFounded() {
return founded;
}
public String getKey_people() {
return key_people;
38
Corporate Connections
}
public String getHeadquarters() {
return headquarters;
}
public String getLocations() {
return locations;
}
public String getServices() {
return services;
}
public String getRevenue() {
return revenue;
}
public String getNo_of_employees() {
return no_of_employees;
}
public String getWebsite() {
return website;
}
public String getName() {
return name;
}
39
Corporate Connections
40
Corporate Connections
this.services = services;
}
public void setRevenue(String revenue) {
this.revenue = revenue;
}
public void setNo_of_employees(String
no_of_employees) {
this.no_of_employees = no_of_employees;
}
public void setWebsite(String website) {
this.website = website;
}
public void setName(String name) {
this.name = name;
}
public void setLoc(String loc) {
this.loc = loc;
}
public void setPassword(String password) {
this.password = password;
}
@Override
41
Corporate Connections
}
}
42
Corporate Connections
@Override
public void setSession(Map<String, Object> arg0) {
// TODO Auto-generated method stub
session=arg0;
}
}
Newpassword.java
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.Statement;
import java.util.Map;
import org.apache.struts2.interceptor.SessionAware;
import com.opensymphony.xwork2.ActionSupport;
public class newpassword extends ActionSupport
implements SessionAware {
String name,password,id;
Map session;
public String getId() {
return id;
}
public void setId(String id) {
43
Corporate Connections
this.id = id;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getPassword() {
return password;
}
public void setPassword(String password) {
this.password = password;
}
@Override
public String execute() throws Exception {
Class.forName("oracle.jdbc.driver.OracleDriver");
Connection
con=DriverManager.getConnection("jdbc:oracle:thin:@
localhost:1521:xe","SYSTEM","oracle");
Statement st=con.createStatement();
setId((String) session.get("id"));
System.out.println("id"+id);
44
Corporate Connections
45
Corporate Connections
return "success";
}
else
return "failure";
}
@Override
public void setSession(Map<String, Object> arg0) {
// TODO Auto-generated method stub
session=arg0;
}}
About.java
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import java.util.Map;
import org.apache.struts2.interceptor.SessionAware;
import com.opensymphony.xwork2.ActionSupport;
46
Corporate Connections
@SuppressWarnings("serial")
public class MyAction extends ActionSupport
implements SessionAware{
Map<String, Object> session;
String
company,location,type,founded,key_people,headquarter
s,locations,services,revenue,employees,website,id;
47
Corporate Connections
48
Corporate Connections
49
Corporate Connections
50
Corporate Connections
51
Corporate Connections
{
System.out.println("c : "+company);
System.out.println("l : "+location);
Class.forName("oracle.jdbc.driver.OracleDriver");
Connection
con=DriverManager.getConnection("jdbc:oracle:thin:@
localhost:1521:xe","SYSTEM","oracle");
Statement st=con.createStatement();
if(location.equals(""))
52
Corporate Connections
{
rs=st.executeQuery("select headquarters from Sign_up
where name='"+(company)+"'");
if(rs.next())
location=rs.getString(1);
}
key_people=rs.getString(4);
53
Corporate Connections
headquarters=rs.getString(3);
locations=rs.getString(6);
services=rs.getString(11);
revenue=rs.getString(10);
employees=rs.getString(8);
website=rs.getString(13);
location=rs.getString(5);
System.out.println("ID 2 : "+id);
return "success";
}
else
return "failure";
}@Override
public void setSession(Map<String, Object> arg0) {
session=arg0;
}}
Wall.java
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.SQLException;
54
Corporate Connections
import java.sql.Statement;
import java.util.ArrayList;
import java.util.Map;
import org.apache.struts2.interceptor.SessionAware;
import com.opensymphony.xwork2.ActionSupport;
@SuppressWarnings("serial")
public class MyAction3 extends ActionSupport
implements SessionAware{
Map<String, Object> session;
String id,message;
55
Corporate Connections
56
Corporate Connections
{
System.out.println("IDee = "+ id);
57
Corporate Connections
}}
AddReview.java:
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import java.sql.SQLException;
import java.util.Map;
58
Corporate Connections
import org.apache.struts2.interceptor.SessionAware;
import com.opensymphony.xwork2.ActionSupport;
@SuppressWarnings("serial")
public class MyAction4 extends ActionSupport
implements SessionAware{
String estatus,years,rating,name,title,pros,cons,id;
59
Corporate Connections
60
Corporate Connections
61
Corporate Connections
62
Corporate Connections
st.executeUpdate();
System.out.println("Add Review");
return "success";
}
@Override
public void setSession(Map<String, Object> arg0) {
session=arg0;
}
}
63
Corporate Connections
Review.java
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import java.util.ArrayList;
import java.util.Map;
import org.apache.struts2.interceptor.SessionAware;
import com.opensymphony.xwork2.ActionSupport;
64
Corporate Connections
String id,estatus,year,name,title,pros,cons,rating;
65
Corporate Connections
66
Corporate Connections
67
Corporate Connections
68
Corporate Connections
Statement st=con.createStatement();
69
Corporate Connections
list.add(review);
System.out.println("ID 2 : "+id);
System.out.println("good");
}
return "success";
}
return "failure";
}
@Override
public void setSession(Map<String, Object> arg0) {
session=arg0;
}
}
70