diff options
| author | Thomas Lenz <tlenz@iaik.tugraz.at> | 2013-07-26 17:07:15 +0200 | 
|---|---|---|
| committer | Thomas Lenz <tlenz@iaik.tugraz.at> | 2013-07-26 17:07:15 +0200 | 
| commit | 99694b29f82f858f5b6163e6a3d6c11caaeb487e (patch) | |
| tree | b46883533cd71c9f47047c38b5c43469a311a731 /id/ConfigWebTool/src/main/webapp | |
| parent | cc2e2e4ecf5bd8c4bbe16edba5a7d63fa808adcb (diff) | |
| download | moa-id-spss-99694b29f82f858f5b6163e6a3d6c11caaeb487e.tar.gz moa-id-spss-99694b29f82f858f5b6163e6a3d6c11caaeb487e.tar.bz2 moa-id-spss-99694b29f82f858f5b6163e6a3d6c11caaeb487e.zip | |
Configuration Web-Application
Diffstat (limited to 'id/ConfigWebTool/src/main/webapp')
| -rw-r--r-- | id/ConfigWebTool/src/main/webapp/WEB-INF/log4j.properties | 20 | ||||
| -rw-r--r-- | id/ConfigWebTool/src/main/webapp/WEB-INF/web.xml | 83 | ||||
| -rw-r--r-- | id/ConfigWebTool/src/main/webapp/css/index.css | 68 | ||||
| -rw-r--r-- | id/ConfigWebTool/src/main/webapp/error.jsp | 22 | ||||
| -rw-r--r-- | id/ConfigWebTool/src/main/webapp/index.action | 0 | ||||
| -rw-r--r-- | id/ConfigWebTool/src/main/webapp/index.jsp | 24 | ||||
| -rw-r--r-- | id/ConfigWebTool/src/main/webapp/jsp/listOAs.jsp | 42 | ||||
| -rw-r--r-- | id/ConfigWebTool/src/main/webapp/jsp/mainpage.jsp | 27 | ||||
| -rw-r--r-- | id/ConfigWebTool/src/main/webapp/jsp/snippets/footer.jsp | 9 | ||||
| -rw-r--r-- | id/ConfigWebTool/src/main/webapp/jsp/snippets/header_userinfos.jsp | 12 | ||||
| -rw-r--r-- | id/ConfigWebTool/src/main/webapp/jsp/snippets/main_menu.jsp | 35 | 
11 files changed, 342 insertions, 0 deletions
| diff --git a/id/ConfigWebTool/src/main/webapp/WEB-INF/log4j.properties b/id/ConfigWebTool/src/main/webapp/WEB-INF/log4j.properties new file mode 100644 index 000000000..3ca86f404 --- /dev/null +++ b/id/ConfigWebTool/src/main/webapp/WEB-INF/log4j.properties @@ -0,0 +1,20 @@ +# Set root category priority to INFO and its only appender to CONSOLE. +log4j.rootCategory=INFO, CONSOLE +#log4j.rootCategory=INFO, CONSOLE, LOGFILE + +# Set the enterprise logger category to FATAL and its only appender to CONSOLE. +log4j.logger.org.apache.axis.enterprise=FATAL, CONSOLE + +# CONSOLE is set to be a ConsoleAppender using a PatternLayout. +log4j.appender.CONSOLE=org.apache.log4j.ConsoleAppender +log4j.appender.CONSOLE.Threshold=INFO +log4j.appender.CONSOLE.layout=org.apache.log4j.PatternLayout +log4j.appender.CONSOLE.layout.ConversionPattern=- %m%n + +# LOGFILE is set to be a File appender using a PatternLayout. +log4j.appender.LOGFILE=org.apache.log4j.FileAppender +log4j.appender.LOGFILE.File=axis.log +log4j.appender.LOGFILE.Append=true +log4j.appender.LOGFILE.Threshold=INFO +log4j.appender.LOGFILE.layout=org.apache.log4j.PatternLayout +log4j.appender.LOGFILE.layout.ConversionPattern=%-4r [%t] %-5p %c %x - %m%n diff --git a/id/ConfigWebTool/src/main/webapp/WEB-INF/web.xml b/id/ConfigWebTool/src/main/webapp/WEB-INF/web.xml new file mode 100644 index 000000000..c680c875e --- /dev/null +++ b/id/ConfigWebTool/src/main/webapp/WEB-INF/web.xml @@ -0,0 +1,83 @@ +<?xml version="1.0" encoding="UTF-8"?> +<web-app id="WebApp_ID" version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"> +	<display-name>DemoAppMandates</display-name> + +	 +	<filter> +		<filter-name>AuthenicationFiler</filter-name> +		<filter-class>at.gv.egovernment.moa.id.configuration.filter.AuthenticationFilter</filter-class> +		<init-param> +			<param-name>loginPage</param-name> +			<param-value>index.action</param-value> +		</init-param> +		<init-param> +			<param-name>errorPage</param-name> +			<param-value>error.action</param-value> +		</init-param> +		<init-param> +			<param-name>sessionLostPage</param-name> +			<param-value>/</param-value> +		</init-param> +		<init-param> +			<param-name>authenticatedPage</param-name> +			<param-value>main.action</param-value> +		</init-param> +		<init-param> +			<param-name>allowed</param-name> +			<param-value>^.*((/index.action)|(/error.action)|(/jsp/.*)|(/css/.*)|(/images/.*)|(/js/.*))$</param-value> +		</init-param> +	</filter> +	<filter-mapping> +		<filter-name>AuthenicationFiler</filter-name> +		<url-pattern>/*</url-pattern> +	</filter-mapping> +	 +	 +<!--   	 + 	<filter> +	    <filter-name>sitemash</filter-name> +	    <filter-class>com.opensymphony.sitemesh.webapp.SiteMeshFilter</filter-class> +	</filter> --> +	 	 +	<filter> +		<filter-name>struts2</filter-name> +		<filter-class>org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter</filter-class> +  </filter> +   +<!--   <filter> +		<filter-name>EncodingFilter</filter-name> +		<filter-class>at.iaik.commons.webapp.filter.encoding.EncodingFilter</filter-class> +		<init-param> +			<param-name>encoding</param-name> +			<param-value>UTF-8</param-value> +		</init-param> + 		<init-param> +			<param-name>setResponseEncoding</param-name> +			<param-value>true</param-value> +    	</init-param> +    	<init-param> +      		<param-name>forceResponseEncoding</param-name> +      		<param-value>true</param-value> +		</init-param> +	</filter> --> +	 +<!--  	<filter-mapping> +	    <filter-name>sitemash</filter-name> +	    <url-pattern>/*</url-pattern> +	</filter-mapping> --> +	 +  <filter-mapping> +		<filter-name>struts2</filter-name> +		<url-pattern>*.action</url-pattern> +  </filter-mapping> +   +<!--   <filter-mapping> +		<filter-name>EncodingFilter</filter-name> +		<url-pattern>/*</url-pattern> +	</filter-mapping> --> +  	 +   +	<welcome-file-list> +    	<welcome-file>/index.action</welcome-file> +  	</welcome-file-list> +</web-app> diff --git a/id/ConfigWebTool/src/main/webapp/css/index.css b/id/ConfigWebTool/src/main/webapp/css/index.css new file mode 100644 index 000000000..838080186 --- /dev/null +++ b/id/ConfigWebTool/src/main/webapp/css/index.css @@ -0,0 +1,68 @@ +@CHARSET "UTF-8"; + +#header_area { +	height: 40px; +	background-color: green; +	display: block; +} + +#header_area>p { +	font-size: 20px; +  margin-left: 25px; +  padding-top: 8px; +} + +#menu_area { +	margin-top: 25px; +	border-color: black; +	border-style: solid; +	border-width: 2px; +	width: 250px; +  margin-left: 15px; +	position: relative; +	padding-left: 15px; +	float: left; +	background-color: gray; +	  +} + +.menu_element { +	margin-top: 15px; +	margin-bottom: 15px; +	font-size: 20px; +	display: block; +	background-color: red; +	margin-right: 18px; +	margin-top: 5px; +	height: 30px; +	border-radius: 10px; +	padding-top: 5px; +} + +.menu_element>a { +	padding: 5px;	 +	margin-left: 5px; +} + +#information_area { +	float: left; +	padding-left: 25px; +} + + +#footer_area { +    background-color: green; +    clear: both; +    display: block; +    height: 40px; +    margin-top: 15px; +    padding-left: 30px; +    position: relative; +    top: 15px; +} + +#footer_area>p { +	font-size: 20px; +	text-align: center; +  padding-top: 8px; +} diff --git a/id/ConfigWebTool/src/main/webapp/error.jsp b/id/ConfigWebTool/src/main/webapp/error.jsp new file mode 100644 index 000000000..79e701c76 --- /dev/null +++ b/id/ConfigWebTool/src/main/webapp/error.jsp @@ -0,0 +1,22 @@ +<%@page import="at.gv.egovernment.moa.id.configuration.helper.LanguageHelper"%> + +<%@ 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=ISO-8859-1"> +		<link rel="stylesheet" type="text/css" href="css/index.css"> +		<title><%=LanguageHelper.getGUIString("title", request) %></title> +	</head> +	 +	<body> +		<h1><%=LanguageHelper.getGUIString("webpages.error.header", request) %></h1> +		 +		<div id="information_area"> +		 +		</div> +		 +	</body> +</html>
\ No newline at end of file diff --git a/id/ConfigWebTool/src/main/webapp/index.action b/id/ConfigWebTool/src/main/webapp/index.action new file mode 100644 index 000000000..e69de29bb --- /dev/null +++ b/id/ConfigWebTool/src/main/webapp/index.action diff --git a/id/ConfigWebTool/src/main/webapp/index.jsp b/id/ConfigWebTool/src/main/webapp/index.jsp new file mode 100644 index 000000000..45587a9a8 --- /dev/null +++ b/id/ConfigWebTool/src/main/webapp/index.jsp @@ -0,0 +1,24 @@ +<%@page import="at.gv.egovernment.moa.id.configuration.helper.LanguageHelper"%> + +<%@ 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=ISO-8859-1"> +		<link rel="stylesheet" type="text/css" href="css/index.css"> +		<title><%=LanguageHelper.getGUIString("title", request) %></title> +	</head> +	 +	<body> +		<h1><%=LanguageHelper.getGUIString("webpages.index.header", request) %></h1> +		 +		<div id="information_area"> +			<p><%=LanguageHelper.getGUIString("webpages.index.desciption.head", request) %></p> +			<br/> +			<a href="main.action">Login</a> +		</div> +		 +	</body> +</html>
\ No newline at end of file diff --git a/id/ConfigWebTool/src/main/webapp/jsp/listOAs.jsp b/id/ConfigWebTool/src/main/webapp/jsp/listOAs.jsp new file mode 100644 index 000000000..8e7b531c1 --- /dev/null +++ b/id/ConfigWebTool/src/main/webapp/jsp/listOAs.jsp @@ -0,0 +1,42 @@ +<%@page import="at.gv.egovernment.moa.id.configuration.helper.LanguageHelper"%> + +<%@ 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=ISO-8859-1"> +		<link rel="stylesheet" type="text/css" href="css/index.css"> +		<title><%=LanguageHelper.getGUIString("title", request) %></title> +	</head> +	 +	<body> +		 + 		<jsp:include page="snippets/header_userinfos.jsp"></jsp:include> + +		<jsp:include page="snippets/main_menu.jsp"></jsp:include> +		 +		<div id="information_area"> +			<s:if test="hasActionErrors()"> +   			<div id="error_area"> +   				<label><%=LanguageHelper.getGUIString("error.title", request) %></label> +      			<s:actionerror/> +   			</div> +			</s:if>	 +			 +			<div id="list_area"> +				<s:iterator var="OAelement" value="formOAs"> +					<div class="listElement"> +						<s:property value="oaIdentifier"/>  <s:property value="oaFriendlyName"/>  <s:property value="isActive"/> +					</div> +					 +				</s:iterator> +			</div> +			 +		</div> +		 +		<jsp:include page="snippets/footer.jsp"></jsp:include> +		 +	</body> +</html>
\ No newline at end of file diff --git a/id/ConfigWebTool/src/main/webapp/jsp/mainpage.jsp b/id/ConfigWebTool/src/main/webapp/jsp/mainpage.jsp new file mode 100644 index 000000000..798fdb742 --- /dev/null +++ b/id/ConfigWebTool/src/main/webapp/jsp/mainpage.jsp @@ -0,0 +1,27 @@ +<%@page import="at.gv.egovernment.moa.id.configuration.helper.LanguageHelper"%> + +<%@ 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=ISO-8859-1"> +		<link rel="stylesheet" type="text/css" href="css/index.css"> +		<title><%=LanguageHelper.getGUIString("title", request) %></title> +	</head> +	 +	<body> +		 + 		<jsp:include page="snippets/header_userinfos.jsp"></jsp:include> + +		<jsp:include page="snippets/main_menu.jsp"></jsp:include> +		 +		<div id="information_area"> +			<p>das ist ein Test Text</p> +		</div> +		 +		<jsp:include page="snippets/footer.jsp"></jsp:include> +		 +	</body> +</html>
\ No newline at end of file diff --git a/id/ConfigWebTool/src/main/webapp/jsp/snippets/footer.jsp b/id/ConfigWebTool/src/main/webapp/jsp/snippets/footer.jsp new file mode 100644 index 000000000..a0f12eed4 --- /dev/null +++ b/id/ConfigWebTool/src/main/webapp/jsp/snippets/footer.jsp @@ -0,0 +1,9 @@ +<%@page import="at.gv.egovernment.moa.id.configuration.helper.LanguageHelper"%> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> +<%@ taglib prefix="s" uri="/struts-tags" %> + +<html> +	<div id="footer_area">  +		<p>MOA-ID 2.x Configuration Tool</p> +	</div> +</html>  
\ No newline at end of file diff --git a/id/ConfigWebTool/src/main/webapp/jsp/snippets/header_userinfos.jsp b/id/ConfigWebTool/src/main/webapp/jsp/snippets/header_userinfos.jsp new file mode 100644 index 000000000..a10b6e202 --- /dev/null +++ b/id/ConfigWebTool/src/main/webapp/jsp/snippets/header_userinfos.jsp @@ -0,0 +1,12 @@ +<%@page import="at.gv.egovernment.moa.id.configuration.helper.LanguageHelper"%> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> +<%@ taglib prefix="s" uri="/struts-tags" %> + +<html> +	<div id="header_area">  +		<p><%=LanguageHelper.getGUIString("webpages.header.info", request) %>  +			<s:property value="authUser.givenName"/> <s:property value="authUser.familyName"/>,     +		 	<%=LanguageHelper.getGUIString("webpages.header.lastlogin", request) %> <s:property value="authUser.lastLogin"/> +		</p> +	</div> +</html>  
\ No newline at end of file diff --git a/id/ConfigWebTool/src/main/webapp/jsp/snippets/main_menu.jsp b/id/ConfigWebTool/src/main/webapp/jsp/snippets/main_menu.jsp new file mode 100644 index 000000000..99447f4ca --- /dev/null +++ b/id/ConfigWebTool/src/main/webapp/jsp/snippets/main_menu.jsp @@ -0,0 +1,35 @@ +<%@page import="at.gv.egovernment.moa.id.configuration.helper.LanguageHelper"%> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> +<%@ taglib prefix="s" uri="/struts-tags" %> + +<html> +		<div id="menu_area"> +			<div class="menu_element"> +					<a href=""><%=LanguageHelper.getGUIString("webpages.mainpage.menu.oa.insert", request) %></a> +			</div> +			<div class="menu_element"> +					<a href=""><%=LanguageHelper.getGUIString("webpages.mainpage.menu.oa.search", request) %></a> +			</div> +			<div class="menu_element"> +					<s:url action="listallapplications.action" var="listAllOAs"/> +					<a href="<s:property value="#listAllOAs" />"><%=LanguageHelper.getGUIString("webpages.mainpage.menu.oa.display", request) %></a> +			</div> +			 +			<s:if test="authUser.isAdmin()"> +				<div class="menu_element"> +						<a href=""><%=LanguageHelper.getGUIString("webpages.mainpage.menu.general.config.moaid", request) %></a> +				</div> +				<div class="menu_element"> +						<a href=""><%=LanguageHelper.getGUIString("webpages.mainpage.menu.general.importexport", request) %></a> +				</div> +				<div class="menu_element"> +						<a href=""><%=LanguageHelper.getGUIString("webpages.mainpage.menu.general.usermanagement", request) %></a> +				</div> +			</s:if> +			 +				<div class="menu_element"> +						<a href=""><%=LanguageHelper.getGUIString("webpages.mainpage.menu.general.user", request) %></a>			 +				</div> + +		</div>   +</html>
\ No newline at end of file | 
