-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit ea68b55
Showing
62 changed files
with
474 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,99 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<classpath> | ||
<classpathentry kind="src" path="src"/> | ||
<classpathentry exported="true" kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/java-8-openjdk-amd64"> | ||
<attributes> | ||
<attribute name="owner.project.facets" value="java"/> | ||
</attributes> | ||
</classpathentry> | ||
<classpathentry exported="true" kind="con" path="org.eclipse.jst.server.core.container/org.jboss.ide.eclipse.as.core.server.runtime.runtimeTarget/JBoss AS 4.2 Runtime"> | ||
<attributes> | ||
<attribute name="owner.project.facets" value="jst.web"/> | ||
</attributes> | ||
</classpathentry> | ||
<classpathentry exported="true" kind="con" path="org.eclipse.jst.j2ee.internal.web.container"/> | ||
<classpathentry exported="true" kind="con" path="org.eclipse.jst.j2ee.internal.module.container"/> | ||
<classpathentry exported="true" kind="lib" path="/home/rachit/Downloads/jars/xwork-core-2.1.6.jar"/> | ||
<classpathentry exported="true" kind="lib" path="/home/rachit/Downloads/jars/xerces-2.6.2.jar"/> | ||
<classpathentry exported="true" kind="lib" path="/home/rachit/Downloads/jars/tiles-jsp-2.0.6.jar"/> | ||
<classpathentry exported="true" kind="lib" path="/home/rachit/Downloads/jars/tiles-core-2.0.6.jar"/> | ||
<classpathentry exported="true" kind="lib" path="/home/rachit/Downloads/jars/tiles-api-2.0.6.jar"/> | ||
<classpathentry exported="true" kind="lib" path="/home/rachit/Downloads/jars/struts2-tiles-plugin-2.1.8.1.jar"/> | ||
<classpathentry exported="true" kind="lib" path="/home/rachit/Downloads/jars/struts2-json-plugin-2.1.8.1.jar"/> | ||
<classpathentry exported="true" kind="lib" path="/home/rachit/Downloads/jars/struts2-embeddedjsp-plugin-2.1.8.1.jar"/> | ||
<classpathentry exported="true" kind="lib" path="/home/rachit/Downloads/jars/struts2-dojo-plugin-2.1.8.1.jar"/> | ||
<classpathentry exported="true" kind="lib" path="/home/rachit/Downloads/jars/struts2-core-2.1.8.1.jar"/> | ||
<classpathentry exported="true" kind="lib" path="/home/rachit/Downloads/jars/struts2-convention-plugin-2.1.8.1.jar"/> | ||
<classpathentry exported="true" kind="lib" path="/home/rachit/Downloads/jars/sslext-1.2-0.jar"/> | ||
<classpathentry exported="true" kind="lib" path="/home/rachit/Downloads/jars/oro-2.0.8.jar"/> | ||
<classpathentry exported="true" kind="lib" path="/home/rachit/Downloads/jars/ognl-2.7.3.jar"/> | ||
<classpathentry exported="true" kind="lib" path="/home/rachit/Downloads/jars/mysql-connector.jar"/> | ||
<classpathentry exported="true" kind="lib" path="/home/rachit/Downloads/jars/mysq.jar"/> | ||
<classpathentry exported="true" kind="lib" path="/home/rachit/Downloads/jars/log4j-1.2.11.jar"/> | ||
<classpathentry exported="true" kind="lib" path="/home/rachit/Downloads/jars/jta.jar"/> | ||
<classpathentry exported="true" kind="lib" path="/home/rachit/Downloads/jars/json-lib-2.1.jar"/> | ||
<classpathentry exported="true" kind="lib" path="/home/rachit/Downloads/jars/jdbc2_0-stdext.jar"/> | ||
<classpathentry exported="true" kind="lib" path="/home/rachit/Downloads/jars/hibernate-validator.jar"/> | ||
<classpathentry exported="true" kind="lib" path="/home/rachit/Downloads/jars/hibernate-commons-annotations.jar"/> | ||
<classpathentry exported="true" kind="lib" path="/home/rachit/Downloads/jars/hibernate-annotations.jar"/> | ||
<classpathentry exported="true" kind="lib" path="/home/rachit/Downloads/jars/hibernate3.jar"/> | ||
<classpathentry exported="true" kind="lib" path="/home/rachit/Downloads/jars/freemarker-2.3.15.jar"/> | ||
<classpathentry exported="true" kind="lib" path="/home/rachit/Downloads/jars/dom4j-1.6.1.jar"/> | ||
<classpathentry exported="true" kind="lib" path="/home/rachit/Downloads/jars/commons-validator-1.3.1.jar"/> | ||
<classpathentry exported="true" kind="lib" path="/home/rachit/Downloads/jars/commons-logging-api-1.1.jar"/> | ||
<classpathentry exported="true" kind="lib" path="/home/rachit/Downloads/jars/commons-logging-1.0.4.jar"/> | ||
<classpathentry exported="true" kind="lib" path="/home/rachit/Downloads/jars/commons-lang-2.3.jar"/> | ||
<classpathentry exported="true" kind="lib" path="/home/rachit/Downloads/jars/commons-io-1.3.2.jar"/> | ||
<classpathentry exported="true" kind="lib" path="/home/rachit/Downloads/jars/commons-fileupload-1.2.1.jar"/> | ||
<classpathentry exported="true" kind="lib" path="/home/rachit/Downloads/jars/commons-collections-3.2.jar"/> | ||
<classpathentry exported="true" kind="lib" path="/home/rachit/Downloads/jars/commons-chain-1.2.jar"/> | ||
<classpathentry exported="true" kind="lib" path="/home/rachit/Downloads/jars/cglib-2.1.3.jar"/> | ||
<classpathentry exported="true" kind="lib" path="/home/rachit/Downloads/jars/c3p0-0.9.1.jar"/> | ||
<classpathentry exported="true" kind="lib" path="/home/rachit/Downloads/jars/asm-attrs.jar"/> | ||
<classpathentry exported="true" kind="lib" path="/home/rachit/Downloads/jars/asm.jar"/> | ||
<classpathentry exported="true" kind="lib" path="/home/rachit/Downloads/jars/antlr-2.7.2.jar"> | ||
<attributes> | ||
<attribute name="org.eclipse.jst.component.dependency" value="/WEB-INF/lib"/> | ||
</attributes> | ||
</classpathentry> | ||
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/antlr-2.7.2.jar"/> | ||
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/asm-attrs.jar"/> | ||
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/asm.jar"/> | ||
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/c3p0-0.9.1.jar"/> | ||
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/cglib-2.1.3.jar"/> | ||
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/commons-chain-1.2.jar"/> | ||
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/commons-collections-3.2.jar"/> | ||
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/commons-fileupload-1.2.1.jar"/> | ||
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/commons-io-1.3.2.jar"/> | ||
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/commons-lang-2.3.jar"/> | ||
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/commons-logging-1.0.4.jar"/> | ||
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/commons-logging-api-1.1.jar"/> | ||
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/commons-validator-1.3.1.jar"/> | ||
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/dom4j-1.6.1.jar"/> | ||
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/freemarker-2.3.15.jar"/> | ||
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/hibernate-annotations.jar"/> | ||
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/hibernate-commons-annotations.jar"/> | ||
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/hibernate-validator.jar"/> | ||
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/hibernate3.jar"/> | ||
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/jdbc2_0-stdext.jar"/> | ||
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/json-lib-2.1.jar"/> | ||
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/jta.jar"/> | ||
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/log4j-1.2.11.jar"/> | ||
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/mysq.jar"/> | ||
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/mysql-connector.jar"/> | ||
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/ognl-2.7.3.jar"/> | ||
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/oro-2.0.8.jar"/> | ||
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/sslext-1.2-0.jar"/> | ||
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/struts2-convention-plugin-2.1.8.1.jar"/> | ||
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/struts2-core-2.1.8.1.jar"/> | ||
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/struts2-dojo-plugin-2.1.8.1.jar"/> | ||
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/struts2-embeddedjsp-plugin-2.1.8.1.jar"/> | ||
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/struts2-json-plugin-2.1.8.1.jar"/> | ||
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/struts2-tiles-plugin-2.1.8.1.jar"/> | ||
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/tiles-api-2.0.6.jar"/> | ||
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/tiles-core-2.0.6.jar"/> | ||
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/tiles-jsp-2.0.6.jar"/> | ||
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/xerces-2.6.2.jar"/> | ||
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/xwork-core-2.1.6.jar"/> | ||
<classpathentry kind="output" path="build/classes"/> | ||
</classpath> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<projectDescription> | ||
<name>portal</name> | ||
<comment></comment> | ||
<projects> | ||
</projects> | ||
<buildSpec> | ||
<buildCommand> | ||
<name>org.eclipse.jdt.core.javabuilder</name> | ||
<arguments> | ||
</arguments> | ||
</buildCommand> | ||
<buildCommand> | ||
<name>org.eclipse.wst.common.project.facet.core.builder</name> | ||
<arguments> | ||
</arguments> | ||
</buildCommand> | ||
<buildCommand> | ||
<name>org.eclipse.wst.validation.validationbuilder</name> | ||
<arguments> | ||
</arguments> | ||
</buildCommand> | ||
</buildSpec> | ||
<natures> | ||
<nature>org.eclipse.jem.workbench.JavaEMFNature</nature> | ||
<nature>org.eclipse.wst.common.modulecore.ModuleCoreNature</nature> | ||
<nature>org.eclipse.wst.common.project.facet.core.nature</nature> | ||
<nature>org.eclipse.jdt.core.javanature</nature> | ||
<nature>org.eclipse.wst.jsdt.core.jsNature</nature> | ||
</natures> | ||
</projectDescription> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<classpath> | ||
<classpathentry excluding="**/bower_components/*|**/node_modules/*|**/*.min.js" kind="src" path="WebContent"/> | ||
<classpathentry kind="con" path="org.eclipse.wst.jsdt.launching.JRE_CONTAINER"/> | ||
<classpathentry kind="con" path="org.eclipse.wst.jsdt.launching.WebProject"> | ||
<attributes> | ||
<attribute name="hide" value="true"/> | ||
</attributes> | ||
</classpathentry> | ||
<classpathentry kind="con" path="org.eclipse.wst.jsdt.launching.baseBrowserLibrary"/> | ||
<classpathentry kind="output" path=""/> | ||
</classpath> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<?xml version="1.0" encoding="UTF-8"?><project-modules id="moduleCoreId" project-version="1.5.0"> | ||
<wb-module deploy-name="portal"> | ||
<wb-resource deploy-path="/" source-path="/WebContent" tag="defaultRootSource"/> | ||
<wb-resource deploy-path="/WEB-INF/classes" source-path="/src"/> | ||
<property name="context-root" value="portal"/> | ||
<property name="java-output-path" value="/portal/build/classes"/> | ||
</wb-module> | ||
</project-modules> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<faceted-project> | ||
<runtime name="JBoss AS 4.2 Runtime"/> | ||
<fixed facet="java"/> | ||
<fixed facet="jst.web"/> | ||
<fixed facet="wst.jsdt.web"/> | ||
<installed facet="java" version="1.5"/> | ||
<installed facet="jst.web" version="2.5"/> | ||
<installed facet="wst.jsdt.web" version="1.0"/> | ||
</faceted-project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
org.eclipse.wst.jsdt.launching.baseBrowserLibrary |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Window |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{ | ||
"plugins": { | ||
"guess-types": { | ||
|
||
}, | ||
"outline": { | ||
|
||
} | ||
}, | ||
"libs": [ | ||
"ecma5", | ||
"browser" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
Manifest-Version: 1.0 | ||
Class-Path: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE struts PUBLIC | ||
"-//Apache Software Foundation//DTD Struts Configuration 2.0//EN" | ||
"http://struts.apache.org/dtds/struts-2.0.dtd"> | ||
|
||
<struts> | ||
<constant name="struts.devMode" value="true" /> | ||
|
||
<package name="myhibernate" extends="struts-default"> | ||
|
||
<action name="addPlayer" method="execute" class="com.portal.AddActionPlayer"> | ||
<result name="success" type="redirect">/student.jsp</result> | ||
</action> | ||
</package> | ||
</struts> | ||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" id="WebApp_ID" version="2.5"> | ||
|
||
<display-name>portal</display-name> | ||
<welcome-file-list> | ||
<welcome-file>student.jsp</welcome-file> | ||
</welcome-file-list> | ||
|
||
<filter> | ||
<filter-name>struts2</filter-name> | ||
<filter-class>org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter</filter-class> | ||
</filter> | ||
|
||
<filter-mapping> | ||
<filter-name>struts2</filter-name> | ||
<url-pattern>/*</url-pattern> | ||
</filter-mapping> | ||
|
||
</web-app> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<%@ page language="java" contentType="text/html; charset=UTF-8" | ||
pageEncoding="UTF-8"%> | ||
<%@ taglib prefix="s" uri="/struts-tags" %> | ||
|
||
<!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>portal</title> | ||
</head> | ||
<body> | ||
<s:form action="addPlayer"> | ||
<s:textfield name="name" lable="Player's Name " /> | ||
<s:textfield name="email" lable="Email "/> | ||
<s:textfield name="password" lable="Password "/> | ||
<s:textfield name="phoneno" lable="Phone No "/> | ||
<s:submit /> | ||
</s:form> | ||
|
||
</body> | ||
</html> |
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE hibernate-configuration PUBLIC | ||
"-//Hibernate/Hibernate Configuration DTD 3.0//EN" | ||
"http://www.hibernate.org/dtd/hibernate-configuration-3.0.dtd"> | ||
|
||
<hibernate-configuration> | ||
<session-factory> | ||
<property name="hibernate.dialect">org.hibernate.dialect.MySQLDialect</property> | ||
<property name="hibernate.connection.driver_class">com.mysql.jdbc.Driver</property> | ||
|
||
<!-- Assume test is the database name --> | ||
<property name="hibernate.connection.url">jdbc:mysql://localhost:3306/rachit</property> | ||
<property name="hibernate.connection.username">root</property> | ||
<property name="hibernate.connection.password">time</property> | ||
|
||
<property name="hibernate.connection.pool_size">10</property> | ||
<property name="show_sql">true</property> | ||
<property name="hibernate.hbm2ddl.auto">update</property> | ||
|
||
|
||
<!-- List of XML mapping files --> | ||
<mapping resource="player.hbm.xml"/> | ||
|
||
</session-factory> | ||
</hibernate-configuration> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<?xml version="1.0"?> | ||
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN" | ||
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd"> | ||
<!-- Generated 6 Jul, 2017 11:13:19 AM by Hibernate Tools 3.5.0.Final --> | ||
<hibernate-mapping> | ||
<class name="com.portal.Player" table="login"> | ||
<id name="loginid" type="int"> | ||
<column name="loginid" /> | ||
<generator class="assigned" /> | ||
</id> | ||
<property name="name" type="java.lang.String"> | ||
<column name="name" /> | ||
</property> | ||
<property name="email" type="java.lang.String"> | ||
<column name="email" /> | ||
</property> | ||
<property name="password" type="java.lang.String"> | ||
<column name="password" /> | ||
</property> | ||
<property name="phoneno" type="int"> | ||
<column name="phoneno" /> | ||
</property> | ||
</class> | ||
</hibernate-mapping> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 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; | ||
} | ||
|
||
} |
Oops, something went wrong.