diff --git a/.classpath b/.classpath
new file mode 100644
index 0000000..6f45c17
--- /dev/null
+++ b/.classpath
@@ -0,0 +1,99 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/.project b/.project
new file mode 100644
index 0000000..f27e284
--- /dev/null
+++ b/.project
@@ -0,0 +1,31 @@
+
+
+ portal
+
+
+
+
+
+ org.eclipse.jdt.core.javabuilder
+
+
+
+
+ org.eclipse.wst.common.project.facet.core.builder
+
+
+
+
+ org.eclipse.wst.validation.validationbuilder
+
+
+
+
+
+ org.eclipse.jem.workbench.JavaEMFNature
+ org.eclipse.wst.common.modulecore.ModuleCoreNature
+ org.eclipse.wst.common.project.facet.core.nature
+ org.eclipse.jdt.core.javanature
+ org.eclipse.wst.jsdt.core.jsNature
+
+
diff --git a/.settings/.jsdtscope b/.settings/.jsdtscope
new file mode 100644
index 0000000..92e666d
--- /dev/null
+++ b/.settings/.jsdtscope
@@ -0,0 +1,12 @@
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/.settings/org.eclipse.jdt.core.prefs b/.settings/org.eclipse.jdt.core.prefs
new file mode 100644
index 0000000..af0f20f
--- /dev/null
+++ b/.settings/org.eclipse.jdt.core.prefs
@@ -0,0 +1,7 @@
+eclipse.preferences.version=1
+org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
+org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5
+org.eclipse.jdt.core.compiler.compliance=1.5
+org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
+org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
+org.eclipse.jdt.core.compiler.source=1.5
diff --git a/.settings/org.eclipse.wst.common.component b/.settings/org.eclipse.wst.common.component
new file mode 100644
index 0000000..6250705
--- /dev/null
+++ b/.settings/org.eclipse.wst.common.component
@@ -0,0 +1,8 @@
+
+
+
+
+
+
+
+
diff --git a/.settings/org.eclipse.wst.common.project.facet.core.xml b/.settings/org.eclipse.wst.common.project.facet.core.xml
new file mode 100644
index 0000000..e53f035
--- /dev/null
+++ b/.settings/org.eclipse.wst.common.project.facet.core.xml
@@ -0,0 +1,10 @@
+
+
+
+
+
+
+
+
+
+
diff --git a/.settings/org.eclipse.wst.jsdt.ui.superType.container b/.settings/org.eclipse.wst.jsdt.ui.superType.container
new file mode 100644
index 0000000..3bd5d0a
--- /dev/null
+++ b/.settings/org.eclipse.wst.jsdt.ui.superType.container
@@ -0,0 +1 @@
+org.eclipse.wst.jsdt.launching.baseBrowserLibrary
\ No newline at end of file
diff --git a/.settings/org.eclipse.wst.jsdt.ui.superType.name b/.settings/org.eclipse.wst.jsdt.ui.superType.name
new file mode 100644
index 0000000..05bd71b
--- /dev/null
+++ b/.settings/org.eclipse.wst.jsdt.ui.superType.name
@@ -0,0 +1 @@
+Window
\ No newline at end of file
diff --git a/.tern-project b/.tern-project
new file mode 100644
index 0000000..66ea919
--- /dev/null
+++ b/.tern-project
@@ -0,0 +1,14 @@
+{
+ "plugins": {
+ "guess-types": {
+
+ },
+ "outline": {
+
+ }
+ },
+ "libs": [
+ "ecma5",
+ "browser"
+ ]
+}
\ No newline at end of file
diff --git a/WebContent/META-INF/MANIFEST.MF b/WebContent/META-INF/MANIFEST.MF
new file mode 100644
index 0000000..254272e
--- /dev/null
+++ b/WebContent/META-INF/MANIFEST.MF
@@ -0,0 +1,3 @@
+Manifest-Version: 1.0
+Class-Path:
+
diff --git a/WebContent/WEB-INF/classes/struts.xml b/WebContent/WEB-INF/classes/struts.xml
new file mode 100644
index 0000000..90b8df1
--- /dev/null
+++ b/WebContent/WEB-INF/classes/struts.xml
@@ -0,0 +1,16 @@
+
+
+
+
+
+
+
+
+
+ /student.jsp
+
+
+
+
diff --git a/WebContent/WEB-INF/lib/antlr-2.7.2.jar b/WebContent/WEB-INF/lib/antlr-2.7.2.jar
new file mode 100644
index 0000000..8850fc6
Binary files /dev/null and b/WebContent/WEB-INF/lib/antlr-2.7.2.jar differ
diff --git a/WebContent/WEB-INF/lib/asm-attrs.jar b/WebContent/WEB-INF/lib/asm-attrs.jar
new file mode 100644
index 0000000..f07bcb2
Binary files /dev/null and b/WebContent/WEB-INF/lib/asm-attrs.jar differ
diff --git a/WebContent/WEB-INF/lib/asm.jar b/WebContent/WEB-INF/lib/asm.jar
new file mode 100644
index 0000000..ee0c7cc
Binary files /dev/null and b/WebContent/WEB-INF/lib/asm.jar differ
diff --git a/WebContent/WEB-INF/lib/c3p0-0.9.1.jar b/WebContent/WEB-INF/lib/c3p0-0.9.1.jar
new file mode 100644
index 0000000..693667a
Binary files /dev/null and b/WebContent/WEB-INF/lib/c3p0-0.9.1.jar differ
diff --git a/WebContent/WEB-INF/lib/cglib-2.1.3.jar b/WebContent/WEB-INF/lib/cglib-2.1.3.jar
new file mode 100644
index 0000000..ddfbdb0
Binary files /dev/null and b/WebContent/WEB-INF/lib/cglib-2.1.3.jar differ
diff --git a/WebContent/WEB-INF/lib/commons-chain-1.2.jar b/WebContent/WEB-INF/lib/commons-chain-1.2.jar
new file mode 100644
index 0000000..20fa4c5
Binary files /dev/null and b/WebContent/WEB-INF/lib/commons-chain-1.2.jar differ
diff --git a/WebContent/WEB-INF/lib/commons-collections-3.2.jar b/WebContent/WEB-INF/lib/commons-collections-3.2.jar
new file mode 100644
index 0000000..75580be
Binary files /dev/null and b/WebContent/WEB-INF/lib/commons-collections-3.2.jar differ
diff --git a/WebContent/WEB-INF/lib/commons-fileupload-1.2.1.jar b/WebContent/WEB-INF/lib/commons-fileupload-1.2.1.jar
new file mode 100644
index 0000000..7db423e
Binary files /dev/null and b/WebContent/WEB-INF/lib/commons-fileupload-1.2.1.jar differ
diff --git a/WebContent/WEB-INF/lib/commons-io-1.3.2.jar b/WebContent/WEB-INF/lib/commons-io-1.3.2.jar
new file mode 100644
index 0000000..865c9e4
Binary files /dev/null and b/WebContent/WEB-INF/lib/commons-io-1.3.2.jar differ
diff --git a/WebContent/WEB-INF/lib/commons-lang-2.3.jar b/WebContent/WEB-INF/lib/commons-lang-2.3.jar
new file mode 100644
index 0000000..c33b353
Binary files /dev/null and b/WebContent/WEB-INF/lib/commons-lang-2.3.jar differ
diff --git a/WebContent/WEB-INF/lib/commons-logging-1.0.4.jar b/WebContent/WEB-INF/lib/commons-logging-1.0.4.jar
new file mode 100644
index 0000000..b73a80f
Binary files /dev/null and b/WebContent/WEB-INF/lib/commons-logging-1.0.4.jar differ
diff --git a/WebContent/WEB-INF/lib/commons-logging-api-1.1.jar b/WebContent/WEB-INF/lib/commons-logging-api-1.1.jar
new file mode 100644
index 0000000..d1abcbb
Binary files /dev/null and b/WebContent/WEB-INF/lib/commons-logging-api-1.1.jar differ
diff --git a/WebContent/WEB-INF/lib/commons-validator-1.3.1.jar b/WebContent/WEB-INF/lib/commons-validator-1.3.1.jar
new file mode 100644
index 0000000..55b12b1
Binary files /dev/null and b/WebContent/WEB-INF/lib/commons-validator-1.3.1.jar differ
diff --git a/WebContent/WEB-INF/lib/dom4j-1.6.1.jar b/WebContent/WEB-INF/lib/dom4j-1.6.1.jar
new file mode 100644
index 0000000..c8c4dbb
Binary files /dev/null and b/WebContent/WEB-INF/lib/dom4j-1.6.1.jar differ
diff --git a/WebContent/WEB-INF/lib/freemarker-2.3.15.jar b/WebContent/WEB-INF/lib/freemarker-2.3.15.jar
new file mode 100644
index 0000000..8b93b17
Binary files /dev/null and b/WebContent/WEB-INF/lib/freemarker-2.3.15.jar differ
diff --git a/WebContent/WEB-INF/lib/hibernate-annotations.jar b/WebContent/WEB-INF/lib/hibernate-annotations.jar
new file mode 100644
index 0000000..0037278
Binary files /dev/null and b/WebContent/WEB-INF/lib/hibernate-annotations.jar differ
diff --git a/WebContent/WEB-INF/lib/hibernate-commons-annotations.jar b/WebContent/WEB-INF/lib/hibernate-commons-annotations.jar
new file mode 100644
index 0000000..8284aa2
Binary files /dev/null and b/WebContent/WEB-INF/lib/hibernate-commons-annotations.jar differ
diff --git a/WebContent/WEB-INF/lib/hibernate-validator.jar b/WebContent/WEB-INF/lib/hibernate-validator.jar
new file mode 100644
index 0000000..c27183c
Binary files /dev/null and b/WebContent/WEB-INF/lib/hibernate-validator.jar differ
diff --git a/WebContent/WEB-INF/lib/hibernate3.jar b/WebContent/WEB-INF/lib/hibernate3.jar
new file mode 100644
index 0000000..597f91c
Binary files /dev/null and b/WebContent/WEB-INF/lib/hibernate3.jar differ
diff --git a/WebContent/WEB-INF/lib/jdbc2_0-stdext.jar b/WebContent/WEB-INF/lib/jdbc2_0-stdext.jar
new file mode 100644
index 0000000..ddafa13
Binary files /dev/null and b/WebContent/WEB-INF/lib/jdbc2_0-stdext.jar differ
diff --git a/WebContent/WEB-INF/lib/json-lib-2.1.jar b/WebContent/WEB-INF/lib/json-lib-2.1.jar
new file mode 100644
index 0000000..28880c4
Binary files /dev/null and b/WebContent/WEB-INF/lib/json-lib-2.1.jar differ
diff --git a/WebContent/WEB-INF/lib/jta.jar b/WebContent/WEB-INF/lib/jta.jar
new file mode 100644
index 0000000..e0822a9
Binary files /dev/null and b/WebContent/WEB-INF/lib/jta.jar differ
diff --git a/WebContent/WEB-INF/lib/log4j-1.2.11.jar b/WebContent/WEB-INF/lib/log4j-1.2.11.jar
new file mode 100644
index 0000000..b603fe6
Binary files /dev/null and b/WebContent/WEB-INF/lib/log4j-1.2.11.jar differ
diff --git a/WebContent/WEB-INF/lib/mysq.jar b/WebContent/WEB-INF/lib/mysq.jar
new file mode 100644
index 0000000..15874a5
Binary files /dev/null and b/WebContent/WEB-INF/lib/mysq.jar differ
diff --git a/WebContent/WEB-INF/lib/mysql-connector.jar b/WebContent/WEB-INF/lib/mysql-connector.jar
new file mode 100644
index 0000000..0170c3e
Binary files /dev/null and b/WebContent/WEB-INF/lib/mysql-connector.jar differ
diff --git a/WebContent/WEB-INF/lib/ognl-2.7.3.jar b/WebContent/WEB-INF/lib/ognl-2.7.3.jar
new file mode 100644
index 0000000..6517028
Binary files /dev/null and b/WebContent/WEB-INF/lib/ognl-2.7.3.jar differ
diff --git a/WebContent/WEB-INF/lib/oro-2.0.8.jar b/WebContent/WEB-INF/lib/oro-2.0.8.jar
new file mode 100644
index 0000000..23488d2
Binary files /dev/null and b/WebContent/WEB-INF/lib/oro-2.0.8.jar differ
diff --git a/WebContent/WEB-INF/lib/sslext-1.2-0.jar b/WebContent/WEB-INF/lib/sslext-1.2-0.jar
new file mode 100644
index 0000000..5d7175f
Binary files /dev/null and b/WebContent/WEB-INF/lib/sslext-1.2-0.jar differ
diff --git a/WebContent/WEB-INF/lib/struts2-convention-plugin-2.1.8.1.jar b/WebContent/WEB-INF/lib/struts2-convention-plugin-2.1.8.1.jar
new file mode 100644
index 0000000..c1aacac
Binary files /dev/null and b/WebContent/WEB-INF/lib/struts2-convention-plugin-2.1.8.1.jar differ
diff --git a/WebContent/WEB-INF/lib/struts2-core-2.1.8.1.jar b/WebContent/WEB-INF/lib/struts2-core-2.1.8.1.jar
new file mode 100644
index 0000000..1439f17
Binary files /dev/null and b/WebContent/WEB-INF/lib/struts2-core-2.1.8.1.jar differ
diff --git a/WebContent/WEB-INF/lib/struts2-dojo-plugin-2.1.8.1.jar b/WebContent/WEB-INF/lib/struts2-dojo-plugin-2.1.8.1.jar
new file mode 100644
index 0000000..fb50198
Binary files /dev/null and b/WebContent/WEB-INF/lib/struts2-dojo-plugin-2.1.8.1.jar differ
diff --git a/WebContent/WEB-INF/lib/struts2-embeddedjsp-plugin-2.1.8.1.jar b/WebContent/WEB-INF/lib/struts2-embeddedjsp-plugin-2.1.8.1.jar
new file mode 100644
index 0000000..068149e
Binary files /dev/null and b/WebContent/WEB-INF/lib/struts2-embeddedjsp-plugin-2.1.8.1.jar differ
diff --git a/WebContent/WEB-INF/lib/struts2-json-plugin-2.1.8.1.jar b/WebContent/WEB-INF/lib/struts2-json-plugin-2.1.8.1.jar
new file mode 100644
index 0000000..c4090bc
Binary files /dev/null and b/WebContent/WEB-INF/lib/struts2-json-plugin-2.1.8.1.jar differ
diff --git a/WebContent/WEB-INF/lib/struts2-tiles-plugin-2.1.8.1.jar b/WebContent/WEB-INF/lib/struts2-tiles-plugin-2.1.8.1.jar
new file mode 100644
index 0000000..ca7c71d
Binary files /dev/null and b/WebContent/WEB-INF/lib/struts2-tiles-plugin-2.1.8.1.jar differ
diff --git a/WebContent/WEB-INF/lib/tiles-api-2.0.6.jar b/WebContent/WEB-INF/lib/tiles-api-2.0.6.jar
new file mode 100644
index 0000000..76721f6
Binary files /dev/null and b/WebContent/WEB-INF/lib/tiles-api-2.0.6.jar differ
diff --git a/WebContent/WEB-INF/lib/tiles-core-2.0.6.jar b/WebContent/WEB-INF/lib/tiles-core-2.0.6.jar
new file mode 100644
index 0000000..8fff43c
Binary files /dev/null and b/WebContent/WEB-INF/lib/tiles-core-2.0.6.jar differ
diff --git a/WebContent/WEB-INF/lib/tiles-jsp-2.0.6.jar b/WebContent/WEB-INF/lib/tiles-jsp-2.0.6.jar
new file mode 100644
index 0000000..ff4f246
Binary files /dev/null and b/WebContent/WEB-INF/lib/tiles-jsp-2.0.6.jar differ
diff --git a/WebContent/WEB-INF/lib/xerces-2.6.2.jar b/WebContent/WEB-INF/lib/xerces-2.6.2.jar
new file mode 100644
index 0000000..14c3162
Binary files /dev/null and b/WebContent/WEB-INF/lib/xerces-2.6.2.jar differ
diff --git a/WebContent/WEB-INF/lib/xwork-core-2.1.6.jar b/WebContent/WEB-INF/lib/xwork-core-2.1.6.jar
new file mode 100644
index 0000000..bd5996b
Binary files /dev/null and b/WebContent/WEB-INF/lib/xwork-core-2.1.6.jar differ
diff --git a/WebContent/WEB-INF/web.xml b/WebContent/WEB-INF/web.xml
new file mode 100644
index 0000000..3670efe
--- /dev/null
+++ b/WebContent/WEB-INF/web.xml
@@ -0,0 +1,19 @@
+
+
+
+ portal
+
+ student.jsp
+
+
+
+ struts2
+ org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter
+
+
+
+ struts2
+ /*
+
+
+
\ No newline at end of file
diff --git a/WebContent/student.jsp b/WebContent/student.jsp
new file mode 100644
index 0000000..223cd3f
--- /dev/null
+++ b/WebContent/student.jsp
@@ -0,0 +1,21 @@
+<%@ page language="java" contentType="text/html; charset=UTF-8"
+ pageEncoding="UTF-8"%>
+<%@ taglib prefix="s" uri="/struts-tags" %>
+
+
+
+
+
+portal
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/build/classes/com/portal/AddActionPlayer.class b/build/classes/com/portal/AddActionPlayer.class
new file mode 100644
index 0000000..e27c386
Binary files /dev/null and b/build/classes/com/portal/AddActionPlayer.class differ
diff --git a/build/classes/com/portal/Player.class b/build/classes/com/portal/Player.class
new file mode 100644
index 0000000..ea25c6d
Binary files /dev/null and b/build/classes/com/portal/Player.class differ
diff --git a/build/classes/com/portal/PlayerDao.class b/build/classes/com/portal/PlayerDao.class
new file mode 100644
index 0000000..25e70ae
Binary files /dev/null and b/build/classes/com/portal/PlayerDao.class differ
diff --git a/build/classes/hibernate.cfg.xml b/build/classes/hibernate.cfg.xml
new file mode 100644
index 0000000..367f2c8
--- /dev/null
+++ b/build/classes/hibernate.cfg.xml
@@ -0,0 +1,25 @@
+
+
+
+
+
+ org.hibernate.dialect.MySQLDialect
+ com.mysql.jdbc.Driver
+
+
+ jdbc:mysql://localhost:3306/rachit
+ root
+ time
+
+ 10
+ true
+ update
+
+
+
+
+
+
+
diff --git a/build/classes/player.hbm.xml b/build/classes/player.hbm.xml
new file mode 100644
index 0000000..5771de4
--- /dev/null
+++ b/build/classes/player.hbm.xml
@@ -0,0 +1,24 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/com/portal/AddActionPlayer.java b/src/com/portal/AddActionPlayer.java
new file mode 100644
index 0000000..742d9ac
--- /dev/null
+++ b/src/com/portal/AddActionPlayer.java
@@ -0,0 +1,30 @@
+package com.portal;
+
+import com.opensymphony.xwork2.ActionSupport;
+import com.opensymphony.xwork2.ModelDriven;
+
+public class AddActionPlayer extends ActionSupport implements ModelDriven {
+
+ Player player=new Player();
+ PlayerDao dao=new PlayerDao();
+
+
+ public Player getModel() {
+ return player;
+ }
+
+ public String execute(){
+ dao.addPlayer(player);
+
+ return "success";
+ }
+
+ public Player getPlayer(){
+ return player;
+ }
+
+ public void setPlayer(Player player){
+ this.player=player;
+ }
+
+}
diff --git a/src/com/portal/Player.java b/src/com/portal/Player.java
new file mode 100644
index 0000000..25fd150
--- /dev/null
+++ b/src/com/portal/Player.java
@@ -0,0 +1,60 @@
+package com.portal;
+
+public class Player {
+ private int loginid;
+ private String name;
+ private String email;
+ private String password;
+ private int phoneno;
+
+ public Player(){}
+
+ public Player(int loginid, String name, String email, String password, int phoneno) {
+ this.loginid = loginid;
+ this.name = name;
+ this.email = email;
+ this.password = password;
+ this.phoneno = phoneno;
+ }
+
+ public int getLoginid() {
+ return loginid;
+ }
+
+ public void setLoginid(int loginid) {
+ this.loginid = loginid;
+ }
+
+ public String getName() {
+ return name;
+ }
+
+ public void setName(String name) {
+ this.name = name;
+ }
+
+ public String getEmail() {
+ return email;
+ }
+
+ public void setEmail(String email) {
+ this.email = email;
+ }
+
+ public String getPassword() {
+ return password;
+ }
+
+ public void setPassword(String password) {
+ this.password = password;
+ }
+
+ public int getPhoneno() {
+ return phoneno;
+ }
+
+ public void setPhoneno(int phoneno) {
+ this.phoneno = phoneno;
+ }
+
+}
\ No newline at end of file
diff --git a/src/com/portal/PlayerDao.java b/src/com/portal/PlayerDao.java
new file mode 100644
index 0000000..425715a
--- /dev/null
+++ b/src/com/portal/PlayerDao.java
@@ -0,0 +1,44 @@
+package com.portal;
+
+import org.hibernate.HibernateException;
+import org.hibernate.Session;
+import org.hibernate.SessionFactory;
+import org.hibernate.Transaction;
+import org.hibernate.cfg.Configuration;
+
+
+
+public class PlayerDao {
+ private static SessionFactory factory;
+
+ public PlayerDao(){
+ try{
+ factory = new Configuration().configure().buildSessionFactory();
+ }catch (Throwable ex) {
+ System.err.println("Failed to create sessionFactory object." + ex);
+ throw new ExceptionInInitializerError(ex);
+ }
+ }
+
+
+
+ public Integer addPlayer(Player player){
+ Session session = factory.openSession();
+ Transaction tx = null;
+ Integer playerID = null;
+ try{
+ tx = session.beginTransaction();
+ playerID = (Integer) session.save(player);
+ tx.commit();
+ }catch (HibernateException e) {
+ if (tx!=null)
+ tx.rollback();
+ e.printStackTrace();
+ }finally {
+ session.close();
+ }
+ return playerID;
+ }
+
+
+}
diff --git a/src/hibernate.cfg.xml b/src/hibernate.cfg.xml
new file mode 100644
index 0000000..367f2c8
--- /dev/null
+++ b/src/hibernate.cfg.xml
@@ -0,0 +1,25 @@
+
+
+
+
+
+ org.hibernate.dialect.MySQLDialect
+ com.mysql.jdbc.Driver
+
+
+ jdbc:mysql://localhost:3306/rachit
+ root
+ time
+
+ 10
+ true
+ update
+
+
+
+
+
+
+
diff --git a/src/player.hbm.xml b/src/player.hbm.xml
new file mode 100644
index 0000000..5771de4
--- /dev/null
+++ b/src/player.hbm.xml
@@ -0,0 +1,24 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+