initial commit
This commit is contained in:
BIN
target/JakiWiki-1.0-SNAPSHOT.war
Normal file
BIN
target/JakiWiki-1.0-SNAPSHOT.war
Normal file
Binary file not shown.
2
target/JakiWiki-1.0-SNAPSHOT/META-INF/context.xml
Normal file
2
target/JakiWiki-1.0-SNAPSHOT/META-INF/context.xml
Normal file
@@ -0,0 +1,2 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<Context antiJARLocking="true" path="/JakiWiki"/>
|
||||
9
target/JakiWiki-1.0-SNAPSHOT/WEB-INF/actions.properties
Normal file
9
target/JakiWiki-1.0-SNAPSHOT/WEB-INF/actions.properties
Normal file
@@ -0,0 +1,9 @@
|
||||
# To change this license header, choose License Headers in Project Properties.
|
||||
# To change this template file, choose Tools | Templates
|
||||
# and open the template in the editor.
|
||||
|
||||
main=it.jee_book.jakiwiki.actions.VediPaginaAction
|
||||
edit=it.jee_book.jakiwiki.actions.ModificaPaginaAction
|
||||
pulsantiera=it.jee_book.jakiwiki.actions.PulsantieraAction
|
||||
salva-pagina=it.jee_book.jakiwiki.actions.SalvaPaginaAction
|
||||
invia-mail=it.jee_book.jakiwiki.actions.InviaMailAction
|
||||
@@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<persistence version="2.0" xmlns="http://java.sun.com/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd">
|
||||
<persistence-unit name="defaultPersistenceUnit" transaction-type="JTA">
|
||||
<provider>org.hibernate.ejb.HibernatePersistence</provider>
|
||||
<jta-data-source>java:jboss/datasources/ExampleDS</jta-data-source>
|
||||
<class>it.jee_book.jakiwiki.model.Pagina</class>
|
||||
</persistence-unit>
|
||||
</persistence>
|
||||
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.
10
target/JakiWiki-1.0-SNAPSHOT/WEB-INF/glassfish-web.xml
Normal file
10
target/JakiWiki-1.0-SNAPSHOT/WEB-INF/glassfish-web.xml
Normal file
@@ -0,0 +1,10 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE glassfish-web-app PUBLIC "-//GlassFish.org//DTD GlassFish Application Server 3.1 Servlet 3.0//EN" "http://glassfish.org/dtds/glassfish-web-app_3_0-1.dtd">
|
||||
<glassfish-web-app error-url="">
|
||||
<class-loader delegate="true"/>
|
||||
<jsp-config>
|
||||
<property name="keepgenerated" value="true">
|
||||
<description>Keep a copy of the generated servlet class' java code.</description>
|
||||
</property>
|
||||
</jsp-config>
|
||||
</glassfish-web-app>
|
||||
21
target/JakiWiki-1.0-SNAPSHOT/WEB-INF/jakiwiki.tld
Normal file
21
target/JakiWiki-1.0-SNAPSHOT/WEB-INF/jakiwiki.tld
Normal file
@@ -0,0 +1,21 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE taglib PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.2//EN"
|
||||
"http://java.sun.com/dtd/web-jsptaglibrary_1_2.dtd">
|
||||
|
||||
<taglib>
|
||||
|
||||
<tlib-version>1.0</tlib-version>
|
||||
<jsp-version>2.0</jsp-version>
|
||||
<short-name>JakiWiki taglibs</short-name>
|
||||
|
||||
<tag>
|
||||
<name>lista_pagine</name>
|
||||
<tag-class>it.jee_book.jakiwiki.tag.ListaPagine</tag-class>
|
||||
<attribute>
|
||||
<name>pagine</name>
|
||||
<required>true</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
</tag>
|
||||
|
||||
</taglib>
|
||||
4
target/JakiWiki-1.0-SNAPSHOT/WEB-INF/jboss-web.xml
Normal file
4
target/JakiWiki-1.0-SNAPSHOT/WEB-INF/jboss-web.xml
Normal file
@@ -0,0 +1,4 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<jboss-web version="8.0" xmlns="http://www.jboss.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.jboss.com/xml/ns/javaee http://www.jboss.org/schema/jbossas/jboss-web_8_0.xsd">
|
||||
<context-root>/JakiWiki</context-root>
|
||||
</jboss-web>
|
||||
BIN
target/JakiWiki-1.0-SNAPSHOT/WEB-INF/lib/antlr-2.7.7.jar
Normal file
BIN
target/JakiWiki-1.0-SNAPSHOT/WEB-INF/lib/antlr-2.7.7.jar
Normal file
Binary file not shown.
BIN
target/JakiWiki-1.0-SNAPSHOT/WEB-INF/lib/commons-lang3-3.4.jar
Normal file
BIN
target/JakiWiki-1.0-SNAPSHOT/WEB-INF/lib/commons-lang3-3.4.jar
Normal file
Binary file not shown.
BIN
target/JakiWiki-1.0-SNAPSHOT/WEB-INF/lib/dom4j-1.6.1.jar
Normal file
BIN
target/JakiWiki-1.0-SNAPSHOT/WEB-INF/lib/dom4j-1.6.1.jar
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
target/JakiWiki-1.0-SNAPSHOT/WEB-INF/lib/jandex-1.1.0.Final.jar
Normal file
BIN
target/JakiWiki-1.0-SNAPSHOT/WEB-INF/lib/jandex-1.1.0.Final.jar
Normal file
Binary file not shown.
BIN
target/JakiWiki-1.0-SNAPSHOT/WEB-INF/lib/javassist-3.18.1-GA.jar
Normal file
BIN
target/JakiWiki-1.0-SNAPSHOT/WEB-INF/lib/javassist-3.18.1-GA.jar
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
target/JakiWiki-1.0-SNAPSHOT/WEB-INF/lib/xml-apis-1.0.b2.jar
Normal file
BIN
target/JakiWiki-1.0-SNAPSHOT/WEB-INF/lib/xml-apis-1.0.b2.jar
Normal file
Binary file not shown.
8
target/JakiWiki-1.0-SNAPSHOT/WEB-INF/views.properties
Normal file
8
target/JakiWiki-1.0-SNAPSHOT/WEB-INF/views.properties
Normal file
@@ -0,0 +1,8 @@
|
||||
# To change this license header, choose License Headers in Project Properties.
|
||||
# To change this template file, choose Tools | Templates
|
||||
# and open the template in the editor.
|
||||
|
||||
main=WEB-INF/views/main.jsp
|
||||
edit=WEB-INF/views/edit.jsp
|
||||
list=WEB-INF/views/list.jsp
|
||||
email=WEB-INF/views/email.jsp
|
||||
43
target/JakiWiki-1.0-SNAPSHOT/WEB-INF/views/edit.jsp
Normal file
43
target/JakiWiki-1.0-SNAPSHOT/WEB-INF/views/edit.jsp
Normal file
@@ -0,0 +1,43 @@
|
||||
<%--
|
||||
Document : edit
|
||||
Created on : 25-mag-2016, 21.15.50
|
||||
Author : morgoth
|
||||
--%>
|
||||
|
||||
<%@page contentType="text/html" pageEncoding="UTF-8"%>
|
||||
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<title>JakiWiki: Modifica di ${titolo}</title>
|
||||
</head>
|
||||
<body style="font-family: Verdana; font-size: 16px;">
|
||||
<div id="title" style="font-family: Verdana; font-size: 32px; font-variant: small-caps;" >
|
||||
JakiWiki: modifica '${titolo}'
|
||||
</div>
|
||||
<table style="width: 80%; height: 600px;">
|
||||
<form action="salva-pagina.action" method="post">
|
||||
<tr>
|
||||
<td>
|
||||
<textarea name="contenuto" cols="110" rows="15">
|
||||
<c:out value="${contenuto}" />
|
||||
</textarea>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="height: 60px">
|
||||
<input type="hidden" name="titolo" value="${titolo}" />
|
||||
<input type="submit" style="font-family: Verdana; font-size: 16px" value="Salva" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<hr>
|
||||
<c:import url="fragments/pulsantiera.jsp" />
|
||||
</td>
|
||||
</tr>
|
||||
</form>
|
||||
</table>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,29 @@
|
||||
<%--
|
||||
Document : pulsantiera
|
||||
Created on : 22-mag-2016, 15.54.39
|
||||
Author : morgoth
|
||||
--%>
|
||||
|
||||
<%@page contentType="text/html" pageEncoding="UTF-8"%>
|
||||
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
|
||||
<!DOCTYPE html>
|
||||
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<title>JSP Page</title>
|
||||
</head>
|
||||
<body>
|
||||
<form method="post" action="pulsantiera.action" name="pulsantieraForm">
|
||||
<input type="hidden" name="titolo" value="${titolo}" />
|
||||
<input type="submit" name="principale" style="font-family: Verdana; font-size: 16px;" value="PRINCIPALE" />
|
||||
<input type="submit" name="tutte" style="font-family: Verdana; font-size: 16px;" value="TUTTE" />
|
||||
<input type="submit" name="recenti" style="font-family: Verdana; font-size: 16px;" value="RECENTI" />
|
||||
<input type="submit" id="email" name="email" style="font-family: Verdana; font-size: 16px;" value="EMAIL" disabled="true" />
|
||||
</form>
|
||||
<br />
|
||||
<div id="title" style="font-family: Verdana; font-size: 16px;" >
|
||||
JakiWiki - a cool Java Wiki
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
35
target/JakiWiki-1.0-SNAPSHOT/WEB-INF/views/list.jsp
Normal file
35
target/JakiWiki-1.0-SNAPSHOT/WEB-INF/views/list.jsp
Normal file
@@ -0,0 +1,35 @@
|
||||
<%--
|
||||
Document : list
|
||||
Created on : 25-mag-2016, 21.57.11
|
||||
Author : morgoth
|
||||
--%>
|
||||
|
||||
<%@page contentType="text/html" pageEncoding="UTF-8"%>
|
||||
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
|
||||
<%@taglib uri="/WEB-INF/jakiwiki.tld" prefix="jakiwiki" %>
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<title>JakiWiki: ${intestazione}</title>
|
||||
</head>
|
||||
<body style="font-family: Verdana; font-size: 16px;">
|
||||
<div id="title" style="font-family: Verdana; font-size: 16px; font-variant: small-caps;">
|
||||
JakiWiki: ${intestazione}
|
||||
</div>
|
||||
|
||||
<table style="width: 80%; height: 600px;">
|
||||
<tr>
|
||||
<td>
|
||||
<jakiwiki:lista_pagine pagine="${lista}"/>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<hr>
|
||||
<c:import url="fragments/pulsantiera.jsp" />
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</body>
|
||||
</html>
|
||||
45
target/JakiWiki-1.0-SNAPSHOT/WEB-INF/views/main.jsp
Normal file
45
target/JakiWiki-1.0-SNAPSHOT/WEB-INF/views/main.jsp
Normal file
@@ -0,0 +1,45 @@
|
||||
<%--
|
||||
Document : main
|
||||
Created on : 22-mag-2016, 15.37.31
|
||||
Author : morgoth
|
||||
--%>
|
||||
|
||||
<%@page contentType="text/html" pageEncoding="UTF-8"%>
|
||||
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
|
||||
<!DOCTYPE html>
|
||||
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<title>JakiWiki: ${titolo}</title>
|
||||
</head>
|
||||
<body onload="document.getElementById('email').disabled = false;"
|
||||
style="font-family: Verdana; font-size: 16px;">
|
||||
|
||||
<div id="title" style="font-family: Verdana; font-size: 32px; font-variant: small-caps;" >
|
||||
JakiWiki: ${titolo}
|
||||
</div>
|
||||
|
||||
<table style="width: 80%; height: 600px;">
|
||||
<tr>
|
||||
<td>
|
||||
<form name="modificaForm" action="edit.action" method="post">
|
||||
<input type="hidden" name="titolo" value="${titolo}" />
|
||||
<input type="submit" style="font-family: Verdana; font-size: 11px" value="Modifica" />
|
||||
</form>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<c:out value="${contenuto}" default="" escapeXml="false" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<hr>
|
||||
<c:import url="fragments/pulsantiera.jsp" />
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</body>
|
||||
</html>
|
||||
28
target/JakiWiki-1.0-SNAPSHOT/WEB-INF/web.xml
Normal file
28
target/JakiWiki-1.0-SNAPSHOT/WEB-INF/web.xml
Normal file
@@ -0,0 +1,28 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
|
||||
<display-name>JakiWiki</display-name>
|
||||
<description>JakiWiki, un wiki in Java</description>
|
||||
|
||||
<servlet>
|
||||
<servlet-name>MainController</servlet-name>
|
||||
<servlet-class>it.jee_book.jakiwiki.servlet.MainController</servlet-class>
|
||||
</servlet>
|
||||
|
||||
<servlet-mapping>
|
||||
<servlet-name>MainController</servlet-name>
|
||||
<url-pattern>*.action</url-pattern>
|
||||
</servlet-mapping>
|
||||
|
||||
<ejb-local-ref>
|
||||
<ejb-ref-name>ejb/PaginaManager</ejb-ref-name>
|
||||
<ejb-ref-type>Session</ejb-ref-type>
|
||||
<local>it.jee_book.jakiwiki.business.pagine.PaginaManager</local>
|
||||
</ejb-local-ref>
|
||||
|
||||
<ejb-local-ref>
|
||||
<ejb-ref-name>ejb/EmailManager</ejb-ref-name>
|
||||
<ejb-ref-type>Session</ejb-ref-type>
|
||||
<local>it.jee_book.jakiwiki.business.email.EmailManager</local>
|
||||
</ejb-local-ref>
|
||||
|
||||
</web-app>
|
||||
10
target/JakiWiki-1.0-SNAPSHOT/gfv3ee6.dpf
Normal file
10
target/JakiWiki-1.0-SNAPSHOT/gfv3ee6.dpf
Normal file
@@ -0,0 +1,10 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE glassfish-web-app PUBLIC "-//GlassFish.org//DTD GlassFish Application Server 3.1 Servlet 3.0//EN" "http://glassfish.org/dtds/glassfish-web-app_3_0-1.dtd">
|
||||
<glassfish-web-app error-url="">
|
||||
<class-loader delegate="true"/>
|
||||
<jsp-config>
|
||||
<property name="keepgenerated" value="true">
|
||||
<description>Keep a copy of the generated servlet class' java code.</description>
|
||||
</property>
|
||||
</jsp-config>
|
||||
</glassfish-web-app>
|
||||
8
target/classes/META-INF/persistence.xml
Normal file
8
target/classes/META-INF/persistence.xml
Normal file
@@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<persistence version="2.0" xmlns="http://java.sun.com/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd">
|
||||
<persistence-unit name="defaultPersistenceUnit" transaction-type="JTA">
|
||||
<provider>org.hibernate.ejb.HibernatePersistence</provider>
|
||||
<jta-data-source>java:jboss/datasources/ExampleDS</jta-data-source>
|
||||
<class>it.jee_book.jakiwiki.model.Pagina</class>
|
||||
</persistence-unit>
|
||||
</persistence>
|
||||
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.
BIN
target/classes/it/jee_book/jakiwiki/context/RequestObject.class
Normal file
BIN
target/classes/it/jee_book/jakiwiki/context/RequestObject.class
Normal file
Binary file not shown.
Binary file not shown.
BIN
target/classes/it/jee_book/jakiwiki/context/ResponseObject.class
Normal file
BIN
target/classes/it/jee_book/jakiwiki/context/ResponseObject.class
Normal file
Binary file not shown.
BIN
target/classes/it/jee_book/jakiwiki/context/ViewDispatcher.class
Normal file
BIN
target/classes/it/jee_book/jakiwiki/context/ViewDispatcher.class
Normal file
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.
BIN
target/classes/it/jee_book/jakiwiki/model/Pagina.class
Normal file
BIN
target/classes/it/jee_book/jakiwiki/model/Pagina.class
Normal file
Binary file not shown.
BIN
target/classes/it/jee_book/jakiwiki/servlet/MainController.class
Normal file
BIN
target/classes/it/jee_book/jakiwiki/servlet/MainController.class
Normal file
Binary file not shown.
BIN
target/classes/it/jee_book/jakiwiki/tag/ListaPagine.class
Normal file
BIN
target/classes/it/jee_book/jakiwiki/tag/ListaPagine.class
Normal file
Binary file not shown.
BIN
target/classes/it/jee_book/jakiwiki/utils/TextConverter.class
Normal file
BIN
target/classes/it/jee_book/jakiwiki/utils/TextConverter.class
Normal file
Binary file not shown.
5
target/maven-archiver/pom.properties
Normal file
5
target/maven-archiver/pom.properties
Normal file
@@ -0,0 +1,5 @@
|
||||
#Generated by Maven
|
||||
#Mon Jun 13 21:22:56 CEST 2016
|
||||
version=1.0-SNAPSHOT
|
||||
groupId=it.jee_book
|
||||
artifactId=JakiWiki
|
||||
@@ -0,0 +1,6 @@
|
||||
Manifest-Version: 1.0
|
||||
Archiver-Version: Plexus Archiver
|
||||
Created-By: Apache Maven
|
||||
Built-By: morgoth
|
||||
Build-Jdk: 1.8.0_91
|
||||
|
||||
@@ -0,0 +1,2 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<Context antiJARLocking="true" path="/JakiWiki"/>
|
||||
@@ -0,0 +1,5 @@
|
||||
#Generated by Maven
|
||||
#Mon Jun 13 20:52:07 CEST 2016
|
||||
version=1.0-SNAPSHOT
|
||||
groupId=it.jee_book
|
||||
artifactId=JakiWiki
|
||||
@@ -0,0 +1,112 @@
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
||||
<groupId>it.jee_book</groupId>
|
||||
<artifactId>JakiWiki</artifactId>
|
||||
<packaging>war</packaging>
|
||||
<version>1.0-SNAPSHOT</version>
|
||||
|
||||
<name>JakiWiki</name>
|
||||
<url>http://maven.apache.org</url>
|
||||
|
||||
<repositories>
|
||||
<repository> <!-- for javaee:javaee-api -->
|
||||
<id>java.net2</id>
|
||||
<url>http://download.java.net/maven/2/</url>
|
||||
</repository>
|
||||
</repositories>
|
||||
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>javax.servlet</groupId>
|
||||
<artifactId>servlet-api</artifactId>
|
||||
<version>2.5</version>
|
||||
<scope>provided</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>javax.servlet.jsp</groupId>
|
||||
<artifactId>jsp-api</artifactId>
|
||||
<version>2.1</version>
|
||||
<scope>provided</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.commons</groupId>
|
||||
<artifactId>commons-lang3</artifactId>
|
||||
<version>3.4</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.eclipse.persistence</groupId>
|
||||
<artifactId>eclipselink</artifactId>
|
||||
<version>2.5.2</version>
|
||||
<scope>provided</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.hibernate</groupId>
|
||||
<artifactId>hibernate-entitymanager</artifactId>
|
||||
<version>4.3.1.Final</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.hibernate.javax.persistence</groupId>
|
||||
<artifactId>hibernate-jpa-2.1-api</artifactId>
|
||||
<version>1.0.0.Final</version>
|
||||
</dependency>
|
||||
<!-- http://mvnrepository.com/artifact/mysql/mysql-connector-java -->
|
||||
<dependency>
|
||||
<groupId>mysql</groupId>
|
||||
<artifactId>mysql-connector-java</artifactId>
|
||||
<version>6.0.2</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.seleniumhq.selenium</groupId>
|
||||
<artifactId>selenium-java</artifactId>
|
||||
<scope>test</scope>
|
||||
<version>2.44.0</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.opera</groupId>
|
||||
<artifactId>operadriver</artifactId>
|
||||
<scope>test</scope>
|
||||
<version>1.5</version>
|
||||
<exclusions>
|
||||
<exclusion>
|
||||
<groupId>org.seleniumhq.selenium</groupId>
|
||||
<artifactId>selenium-remote-driver</artifactId>
|
||||
</exclusion>
|
||||
</exclusions>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>junit</groupId>
|
||||
<artifactId>junit</artifactId>
|
||||
<scope>test</scope>
|
||||
<version>4.11</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>javaee</groupId>
|
||||
<artifactId>javaee-api</artifactId>
|
||||
<version>5</version>
|
||||
<scope>provided</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>it.jee_book</groupId>
|
||||
<artifactId>JakiWiki</artifactId>
|
||||
<version>1.0-SNAPSHOT</version>
|
||||
<type>war</type>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
||||
<build>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-compiler-plugin</artifactId>
|
||||
<version>2.0.2</version>
|
||||
<configuration>
|
||||
<source>1.5</source>
|
||||
<target>1.5</target>
|
||||
<showDeprecation>true</showDeprecation>
|
||||
</configuration>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
</project>
|
||||
@@ -0,0 +1,9 @@
|
||||
# To change this license header, choose License Headers in Project Properties.
|
||||
# To change this template file, choose Tools | Templates
|
||||
# and open the template in the editor.
|
||||
|
||||
main=it.jee_book.jakiwiki.actions.VediPaginaAction
|
||||
edit=it.jee_book.jakiwiki.actions.ModificaPaginaAction
|
||||
pulsantiera=it.jee_book.jakiwiki.actions.PulsantieraAction
|
||||
salva-pagina=it.jee_book.jakiwiki.actions.SalvaPaginaAction
|
||||
invia-mail=it.jee_book.jakiwiki.actions.InviaMailAction
|
||||
@@ -0,0 +1,15 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<persistence version="2.0" xmlns="http://java.sun.com/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd">
|
||||
<persistence-unit name="defaultPersistenceUnit" transaction-type="JTA">
|
||||
<provider>org.hibernate.ejb.HibernatePersistence</provider>
|
||||
<jta-data-source>jdbc/sample</jta-data-source>
|
||||
<class>it.jee_book.jakiwiki.model.Pagina</class>
|
||||
<properties>
|
||||
<property name="hibernate.connection.driver_class" value="com.mysql.jdbc.Driver"/>
|
||||
<property name="hibernate.connection.password" value="root"/>
|
||||
<property name="hibernate.connection.url" value="jdbc:mysql://localhost:3306/jaki_wiki"/>
|
||||
<property name="hibernate.connection.username" value="root"/>
|
||||
<property name="hibernate.dialect" value="org.hibernate.dialect.MySQLDialect"/>
|
||||
</properties>
|
||||
</persistence-unit>
|
||||
</persistence>
|
||||
Binary file not shown.
Binary file not shown.
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user