Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Comparing changes

Choose two branches to see what's changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
...
Checking mergeability… Don't worry, you can still create the pull request.
  • 2 commits
  • 13 files changed
  • 0 commit comments
  • 1 contributor
Showing with 321 additions and 95 deletions.
  1. +2 −2 entando-plugins-community/entando-plugin-jpcasclient/pom.xml
  2. +7 −1 ...lient/src/main/java/com/agiletec/plugins/jpcasclient/aps/system/services/config/CasClientConfigManager.java
  3. +69 −0 ...ty/entando-plugin-jpcasclient/src/main/java/com/agiletec/plugins/jpcasclient/aps/tag/CasConfigParamTag.java
  4. +23 −0 ...munity/entando-plugin-jpcasclient/src/main/java/com/agiletec/plugins/jpcasclient/apsadmin/common/common.xml
  5. +15 −1 ...do-plugin-jpcasclient/src/main/java/com/agiletec/plugins/jpcasclient/apsadmin/global-messages_en.properties
  6. +15 −1 ...do-plugin-jpcasclient/src/main/java/com/agiletec/plugins/jpcasclient/apsadmin/global-messages_it.properties
  7. +2 −0  entando-plugins-community/entando-plugin-jpcasclient/src/main/resources/japs-struts-plugin.xml
  8. +28 −0 entando-plugins-community/entando-plugin-jpcasclient/src/main/tld/plugins/jpcasclient/jpcasclient-core.tld
  9. +6 −8 ...tando-plugin-jpcasclient/src/main/webapp/WEB-INF/plugins/jpcasclient/aps/jsp/showlets/jpcasclient_login.jsp
  10. +137 −0 ...munity/entando-plugin-jpcasclient/src/main/webapp/WEB-INF/plugins/jpcasclient/apsadmin/jsp/common/login.jsp
  11. +10 −1 ...ando-plugin-jpcasclient/src/main/webapp/WEB-INF/plugins/jpcasclient/apsadmin/jsp/config/configConfirmed.jsp
  12. +7 −7 ...y/entando-plugin-jpcasclient/src/main/webapp/WEB-INF/plugins/jpcasclient/apsadmin/jsp/config/configEdit.jsp
  13. +0 −74 ...ins-community/entando-plugin-jpcasclient/src/main/webapp/WEB-INF/plugins/jpcasclient/apsadmin/jsp/login.jsp
View
4 entando-plugins-community/entando-plugin-jpcasclient/pom.xml
@@ -4,14 +4,14 @@
<parent>
<artifactId>entando-plugins-parent</artifactId>
<groupId>org.entando.entando.plugins</groupId>
- <version>2.4.0.1</version>
+ <version>2.4.0.2-SNAPSHOT</version>
</parent>
<artifactId>entando-plugin-jpcasclient</artifactId>
<groupId>org.entando.entando.plugins</groupId>
<version>1.3.0-SNAPSHOT</version>
<packaging>war</packaging>
<name>Entando Plugin: Cas Client</name>
- <description>CHANGE ME! Enter some quick and useful info</description>
+ <description>provide the Entando CAS client for CAS server authentication</description>
<developers>
<developer>
<id>gcocco</id>
View
8 ...nt/src/main/java/com/agiletec/plugins/jpcasclient/aps/system/services/config/CasClientConfigManager.java
@@ -16,7 +16,12 @@ public void init() throws Exception {
CasClientConfig casClientConfig = configDOM.extractConfig(configItem);
this.setClientConfig(casClientConfig);
}
-
+
+ @Override
+ protected void release() {
+ this.setClientConfig(null);
+ }
+
@Override
public void updateConfig(CasClientConfig config) throws ApsSystemException {
ConfigDOM configDOM = new ConfigDOM();
@@ -24,6 +29,7 @@ public void updateConfig(CasClientConfig config) throws ApsSystemException {
try {
configurationItem = configDOM.createConfigXml(config);
this.getConfigManager().updateConfigItem(CasClientPluginSystemCostants.JPCASCLIENT_CONFIG_ITEM, configurationItem);
+ this.setClientConfig(config);
} catch (ApsSystemException t) {
ApsSystemUtils.logThrowable(t, this, "updateConfig");
throw new ApsSystemException("Errore in fase di aggiornamento configurazione mail", t);
View
69 ...entando-plugin-jpcasclient/src/main/java/com/agiletec/plugins/jpcasclient/aps/tag/CasConfigParamTag.java
@@ -0,0 +1,69 @@
+package com.agiletec.plugins.jpcasclient.aps.tag;
+
+import java.io.IOException;
+
+import javax.servlet.jsp.JspException;
+import javax.servlet.jsp.tagext.TagSupport;
+
+import com.agiletec.aps.system.ApsSystemUtils;
+import com.agiletec.aps.util.ApsWebApplicationUtils;
+import com.agiletec.plugins.jpcasclient.CasClientPluginSystemCostants;
+import com.agiletec.plugins.jpcasclient.aps.system.services.config.CasClientConfig;
+import com.agiletec.plugins.jpcasclient.aps.system.services.config.ICasClientConfigManager;
+
+public class CasConfigParamTag extends TagSupport {
+
+ @Override
+ public int doStartTag() throws JspException {
+ ICasClientConfigManager clientConfigManager =
+ (ICasClientConfigManager) ApsWebApplicationUtils.getBean(CasClientPluginSystemCostants.JPCASCLIENT_CONFIG_MANAGER, this.pageContext);
+ CasClientConfig casClientConfig = clientConfigManager.getClientConfig();
+ String param = null;
+ try {
+ if (_param.equals("active")) {
+ boolean isActive = casClientConfig.isActive();
+ param = String.valueOf(isActive);
+ } else if (_param.equals("casLoginURL")) {
+ param = casClientConfig.getCasLoginURL();
+ } else if (_param.equals("casLogoutURL")) {
+ param = casClientConfig.getCasLogoutURL();
+ } else if (_param.equals("casValidateURL")) {
+ param = casClientConfig.getCasValidateURL();
+ } else if (_param.equals("serverBaseURL")) {
+ param = casClientConfig.getServerBaseURL();
+ } else if (_param.equals("notAuthPage")) {
+ param = casClientConfig.getNotAuthPage();
+ } else if (_param.equals("realm")) {
+ param = casClientConfig.getRealm();
+ }
+ if (null != this.getVar() && this.getVar().length() > 0) {
+ this.pageContext.setAttribute(this.getVar(), param);
+ } else {
+ this.pageContext.getOut().print(param);
+ }
+ } catch (IOException e) {
+ ApsSystemUtils.logThrowable(e, this, "doStartTag");
+ throw new JspException("Error closing tag ", e);
+ }
+ return SKIP_BODY;
+ }
+
+
+ public String getParam() {
+ return _param;
+ }
+ public void setParam(String param) {
+ this._param = param;
+ }
+
+ public String getVar() {
+ return _var;
+ }
+ public void setVar(String var) {
+ this._var = var;
+ }
+
+ private String _var;
+ private String _param;
+
+}
View
23 ...ity/entando-plugin-jpcasclient/src/main/java/com/agiletec/plugins/jpcasclient/apsadmin/common/common.xml
@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE struts PUBLIC
+ "-//Apache Software Foundation//DTD Struts Configuration 2.1//EN"
+ "http://struts.apache.org/dtds/struts-2.1.dtd">
+
+<struts>
+
+ <package name="jpcasclient_core_do" namespace="/do" extends="core_do">
+
+ <action name="login">
+ <result>/WEB-INF/plugins/jpcasclient/apsadmin/jsp/common/login.jsp</result>
+ </action>
+
+ <action name="doLogin" class="dispatchAction" method="doLogin">
+ <result name="input">/WEB-INF/plugins/jpcasclient/apsadmin/jsp/common/login.jsp</result>
+ <result type="redirectAction">main</result>
+ <interceptor-ref name="japsLoginStack" />
+ <interceptor-ref name="backendGuiClient" />
+ </action>
+
+ </package>
+
+</struts>
View
16 ...plugin-jpcasclient/src/main/java/com/agiletec/plugins/jpcasclient/apsadmin/global-messages_en.properties
@@ -7,4 +7,18 @@ jpcasclient.admin.menu=CAS Client
jpcasclient.admin.menu.config=Configuration
jpcasclient.label.casclientConfig=CAS Client configuration
-jpcasclient.label.casclientConfig.intro=intro....
+jpcasclient.label.casclientConfig.intro=intro....
+
+
+
+jpcasclient.label.active=active
+jpcasclient.label.casLoginURL=CAS Server login URL
+jpcasclient.label.casLogoutURL=CAS Server logout URL
+jpcasclient.label.casValidateURL=CAS Server validate URL
+jpcasclient.label.serverBaseURL=Portal Server Base URL
+jpcasclient.label.notAuthPage=page for user not authorized localy
+jpcasclient.label.realm=realm
+jpcasclient.label.casclientConfig.confirm=Configuration updated
+
+jpcasclient.legend.configuration=Configuration
+jpcasclient.legend.status=status
View
16 ...plugin-jpcasclient/src/main/java/com/agiletec/plugins/jpcasclient/apsadmin/global-messages_it.properties
@@ -7,4 +7,18 @@ jpcasclient.admin.menu=Client CAS
jpcasclient.admin.menu.config=Configurazione
jpcasclient.label.casclientConfig=CAS Client configuration
-jpcasclient.label.casclientConfig.intro=intro....
+jpcasclient.label.casclientConfig.intro=intro....
+
+
+
+jpcasclient.label.active=attivo
+jpcasclient.label.casLoginURL=login URL del CAS Server
+jpcasclient.label.casLogoutURL=logout URL del CAS Server
+jpcasclient.label.casValidateURL=URL di validazione del CAS Server
+jpcasclient.label.serverBaseURL=URL base del portale
+jpcasclient.label.notAuthPage=pagina per gli utenti non autorizzati localmente
+jpcasclient.label.realm=realm
+jpcasclient.label.casclientConfig.confirm=Configurazione aggiornata
+
+jpcasclient.legend.configuration=Configurazione
+jpcasclient.legend.status=stato
View
2  entando-plugins-community/entando-plugin-jpcasclient/src/main/resources/japs-struts-plugin.xml
@@ -7,5 +7,7 @@
<!-- ### jpcasclient ### -->
<include file="com/agiletec/plugins/jpcasclient/apsadmin/config/configAction.xml"/>
+ <include file="com/agiletec/plugins/jpcasclient/apsadmin/common/common.xml"/>
+
</struts>
View
28 entando-plugins-community/entando-plugin-jpcasclient/src/main/tld/plugins/jpcasclient/jpcasclient-core.tld
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<taglib xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="2.0" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-jsptaglibrary_2_0.xsd">
+ <description><![CDATA["jpcasclient core tag library"]]></description>
+ <display-name>"jpcasclient core tag library"</display-name>
+ <tlib-version>2.2</tlib-version>
+ <short-name>jpcasc</short-name>
+ <uri>/jpcasclient</uri>
+
+ <tag>
+ <description>
+ insert in the pagecontext the var with the value of the cas plugin configuration
+ </description>
+ <name>CasConfigParamTag</name>
+ <tag-class>com.agiletec.plugins.jpcasclient.aps.tag.CasConfigParamTag</tag-class>
+ <body-content>empty</body-content>
+ <attribute>
+ <name>var</name>
+ <description>the name of the variable for loading the param in page context</description>
+ <required>false</required>
+ </attribute>
+ <attribute>
+ <name>param</name>
+ <description>the param of the CAS client plugin configuration to read</description>
+ <required>true</required>
+ </attribute>
+ </tag>
+
+</taglib>
View
14 ...do-plugin-jpcasclient/src/main/webapp/WEB-INF/plugins/jpcasclient/aps/jsp/showlets/jpcasclient_login.jsp
@@ -1,7 +1,8 @@
<%@ taglib prefix="wp" uri="/aps-core" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
+<%@ taglib prefix="jpcc" uri="/jpcasclient" %>
-<wp:info key="systemParam" var="isCasActive" paramName="jpcasclient_isactive" />
+<jpcc:CasConfigParamTag var="jpcasclient_is_active" param="active" />
<c:choose>
<c:when test="${sessionScope.currentUser != 'guest'}">
@@ -31,13 +32,13 @@
<c:otherwise>
<c:if test="${accountExpired}">
- <div><p>UTENTE SCADUTO. Contatta Gnappo</p></div>
+ <div><p>UTENTE SCADUTO. Contatta l'ammnistratore.</p></div>
</c:if>
<c:if test="${wrongAccountCredential}">
<div><p>CREDENZIALI NON VALIDE</p></div>
</c:if>
- <c:if test="${isCasActive != 'true'}">
+ <c:if test="${!jpcasclient_is_active}">
<form id="loginForm" action="<wp:url/>" method="post">
<fieldset>
<div class="formPair">
@@ -53,12 +54,9 @@
</form>
</c:if>
- <c:if test="${isCasActive == 'true'}">
+ <c:if test="${jpcasclient_is_active}">
<p>
- <%--
- <a href="<wp:info key="systemParam" paramName="jpcasclient_casLoginURL" />?service=<wp:url />" title="<wp:i18n key="LOGIN_TITLE" />" ><wp:i18n key="LOGIN" /></a>
- --%>
- <a href="<wp:info key="systemParam" paramName="jpcasclient_casLoginURL" />?service=<wp:url paramRepeat="true" />"><wp:i18n key="LOGIN" /></a>
+ <a href="<jpcc:CasConfigParamTag param="casLoginURL"/>?service=<wp:url paramRepeat="true" />"><wp:i18n key="LOGIN" /></a>
</p>
</c:if>
View
137 ...ity/entando-plugin-jpcasclient/src/main/webapp/WEB-INF/plugins/jpcasclient/apsadmin/jsp/common/login.jsp
@@ -0,0 +1,137 @@
+<%@ taglib prefix="tiles" uri="http://tiles.apache.org/tags-tiles" %>
+<%@ taglib prefix="s" uri="/struts-tags" %>
+<%@ taglib prefix="wpsf" uri="/apsadmin-form" %>
+<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
+<%@ taglib prefix="wp" uri="/aps-core" %>
+<%@ taglib prefix="jpcc" uri="/jpcasclient" %>
+
+<wp:contentNegotiation mimeType="application/xhtml+xml" charset="utf-8"/>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
+"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="it">
+<head>
+ <title>Entando - Login</title>
+ <link rel="stylesheet" type="text/css" href="<wp:resourceURL />administration/common/css/administration.css" media="screen" />
+ <link rel="stylesheet" type="text/css" href="<wp:resourceURL />administration/common/css/layout-general.css" media="screen" />
+ <!--[if IE 7]>
+ <link rel="stylesheet" type="text/css" href="<wp:resourceURL />administration/common/css/layout-general-ie7.css" media="screen" />
+ <![endif]-->
+
+ <link rel="stylesheet" type="text/css" href="<wp:resourceURL />administration/basic/css/administration.css" media="screen" />
+ <link rel="stylesheet" type="text/css" href="<wp:resourceURL />administration/basic/css/layout-general.css" media="screen" />
+
+ <script type="text/javascript" src="<wp:resourceURL />administration/common/js/mootools-core-1.3-full-compat-yc.js"></script>
+ <script type="text/javascript" src="<wp:resourceURL />administration/common/js/mootools-more-1.3-full-compat-yc.js"></script>
+ <script type="text/javascript" src="<wp:resourceURL />administration/common/js/login.js" ></script>
+
+</head>
+<body>
+
+<h1 class="raw centerText">Entando &ndash; <s:text name="title.login.intro" /></h1>
+<s:form action="doLogin" >
+
+ <s:if test="hasActionErrors()">
+ <div id="actionErrorsBox" class="message message_error">
+ <h2><s:text name="message.title.ActionErrors" /></h2>
+ <ul>
+ <s:iterator value="actionErrors">
+ <li><s:property /></li>
+ </s:iterator>
+ </ul>
+ </div>
+ </s:if>
+
+ <s:if test="hasFieldErrors()">
+ <div id="fieldErrorsBox" class="message message_error">
+ <h2><s:text name="message.title.FieldErrors" /></h2>
+ <ul>
+ <s:iterator value="fieldErrors">
+ <s:iterator value="value">
+ <li><s:property escape="false"/></li>
+ </s:iterator>
+ </s:iterator>
+ </ul>
+ </div>
+ </s:if>
+
+<s:if test="#session.currentUser != null && #session.currentUser.username != 'guest'">
+<div class="whiteBox">
+<p>
+ <em><s:text name="note.userbar.welcome"/></em>,
+ <strong> <s:property value="#session.currentUser" /></strong>!
+</p>
+
+<%--
+<s:if test="!#session.currentUser.accountNotExpired && #session.currentUser.username != 'admin'">
+<p>
+ <s:text name="note.login.expiredAccount" />.
+</p>
+</s:if>
+--%>
+
+<s:if test="!#session.currentUser.credentialsNotExpired">
+<p>
+ <s:text name="note.login.expiredPassword.intro" />&#32;<a href="<s:url action="editPassword" />" ><s:text name="note.login.expiredPassword.outro" /></a>.
+</p>
+</s:if>
+
+<s:else>
+<wp:ifauthorized permission="enterBackend" var="checkEnterBackend" />
+
+<c:choose>
+ <c:when test="${checkEnterBackend}">
+ <p>
+ <s:text name="note.login.yetLogged" />,<br />
+ <a href="<s:url action="main" />" ><s:text name="note.goToMain" /></a> | <a href="<s:url action="logout" namespace="/do" />" ><s:text name="menu.exit"/></a>
+ </p>
+ </c:when>
+ <c:otherwise>
+ <p>
+ <s:text name="note.login.notAllowed" />, <a href="<s:url action="logout" namespace="/do" />" ><s:text name="menu.exit"/></a>
+ </p>
+
+ </c:otherwise>
+</c:choose>
+
+</s:else>
+
+</div>
+</s:if>
+
+<s:else>
+<div class="login">
+<fieldset id="fieldset_space"><legend><s:text name="login.authenticationInfo" /></legend>
+ <p><label for="username"><s:text name="label.username" />:</label><br />
+ <wpsf:textfield useTabindexAutoIncrement="true" name="username" id="username" cssClass="text" /></p>
+ <p><label for="password"><s:text name="label.password" />:</label><br />
+ <wpsf:password useTabindexAutoIncrement="true" name="password" id="password" cssClass="text" /></p>
+ <p><label for="request_locale"><s:text name="label.languages" />:</label><br />
+ <%-- TODO: deve diventare un foreach sulle lingue configurate in amministrazione? --%>
+ <select id="request_locale" name="request_locale" class="text">
+ <option value="en" selected="selected">English</option>
+ <option value="it">Italiano</option>
+ </select></p>
+</fieldset>
+
+ <%-- OPZIONE PER INTERFACCIA ALL MENTA --%>
+ <p class="centerText">
+ <s:submit cssClass="button uppercase" name="backend_client_gui" value="normal" />
+ <s:submit cssClass="button uppercase" name="backend_client_gui" value="advanced" />
+ <!-- <wpsf:radio useTabindexAutoIncrement="true" name="backend_client_gui" id="client-normal" value="normal" checked="true" /><label for="client-normal" class="right"><s:text name="name.client.basic" /></label><br />
+ <wpsf:radio useTabindexAutoIncrement="true" name="backend_client_gui" id="client-advanced" value="advanced" /><label for="client-advanced" class="right"><s:text name="name.client.mint" /></label> -->
+ </p>
+
+ <jpcc:CasConfigParamTag var="jpcasclient_is_active" param="active" />
+ <c:if test="${jpcasclient_is_active}">
+ <p class="centerText" >
+
+ <a href="<jpcc:CasConfigParamTag param="casLoginURL" />?service=<wp:url paramRepeat="true" />"><wp:i18n key="CAS_LOGIN" /></a>
+ </p>
+ </c:if>
+
+</div>
+</s:else>
+</s:form>
+</body>
+</html>
View
11 ...o-plugin-jpcasclient/src/main/webapp/WEB-INF/plugins/jpcasclient/apsadmin/jsp/config/configConfirmed.jsp
@@ -1 +1,10 @@
-config Confirmed
+<%@ taglib prefix="s" uri="/struts-tags" %>
+
+<h1><s:text name="jpcasclient.title.casConfigManagement" /></h1>
+<div id="main">
+
+ <h2 class="margin-bit-bottom"><s:text name="jpcasclient.label.casclientConfig" /></h2>
+ <p>
+ <s:text name="jpcasclient.label.casclientConfig.confirm" />
+ </p>
+</div>
View
14 ...ntando-plugin-jpcasclient/src/main/webapp/WEB-INF/plugins/jpcasclient/apsadmin/jsp/config/configEdit.jsp
@@ -39,7 +39,7 @@
<fieldset class="margin-more-top">
<legend><s:text name="jpcasclient.legend.status" /></legend>
<p>
- <wpsf:checkbox useTabindexAutoIncrement="true" name="config.active" id="active" cssClass="radiocheck" />&nbsp;<label for="active"><s:text name="label.active" /></label>
+ <wpsf:checkbox useTabindexAutoIncrement="true" name="config.active" id="active" cssClass="radiocheck" />&nbsp;<label for="active"><s:text name="jpcasclient.label.active" /></label>
</p>
</fieldset>
@@ -47,27 +47,27 @@
<legend><s:text name="jpcasclient.legend.configuration" /></legend>
<p>
- <label for="casLoginURL" class="basic-mint-label"><s:text name="casLoginURL" />:</label>
+ <label for="casLoginURL" class="basic-mint-label"><s:text name="jpcasclient.label.casLoginURL" />:</label>
<wpsf:textfield useTabindexAutoIncrement="true" name="config.casLoginURL" id="casLoginURL" cssClass="text" />
</p>
<p>
- <label for="casLogoutURL" class="basic-mint-label"><s:text name="label.casLogoutURL" />:</label>
+ <label for="casLogoutURL" class="basic-mint-label"><s:text name="jpcasclient.label.casLogoutURL" />:</label>
<wpsf:textfield useTabindexAutoIncrement="true" name="config.casLogoutURL" id="casLogoutURL" cssClass="text" />
</p>
<p>
- <label for="casValidateURL" class="basic-mint-label"><s:text name="label.casValidateURL" />:</label>
+ <label for="casValidateURL" class="basic-mint-label"><s:text name="jpcasclient.label.casValidateURL" />:</label>
<wpsf:textfield useTabindexAutoIncrement="true" name="config.casValidateURL" id="casValidateURL" cssClass="text" />
</p>
<p>
- <label for="serverBaseURL" class="basic-mint-label"><s:text name="label.serverBaseURL" />:</label>
+ <label for="serverBaseURL" class="basic-mint-label"><s:text name="jpcasclient.label.serverBaseURL" />:</label>
<wpsf:textfield useTabindexAutoIncrement="true" name="config.serverBaseURL" id="serverBaseURL" cssClass="text" />
</p>
<p>
- <label for="notAuthPage" class="basic-mint-label"><s:text name="label.notAuthPage" />:</label>
+ <label for="notAuthPage" class="basic-mint-label"><s:text name="jpcasclient.label.notAuthPage" />:</label>
<wpsf:textfield useTabindexAutoIncrement="true" name="config.notAuthPage" id="notAuthPage" cssClass="text" />
</p>
<p>
- <label for="realm" class="basic-mint-label"><s:text name="label.realm" />:</label>
+ <label for="realm" class="basic-mint-label"><s:text name="jpcasclient.label.realm" />:</label>
<wpsf:textfield useTabindexAutoIncrement="true" name="config.realm" id="realm" cssClass="text" />
</p>
View
74 ...-community/entando-plugin-jpcasclient/src/main/webapp/WEB-INF/plugins/jpcasclient/apsadmin/jsp/login.jsp
@@ -1,74 +0,0 @@
-<%@ taglib uri="http://tiles.apache.org/tags-tiles" prefix="tiles" %>
-<%@ taglib prefix="s" uri="/struts-tags" %>
-<%@ taglib prefix="wpsf" uri="/apsadmin-form" %>
-<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
-<%@ taglib prefix="wp" uri="/aps-core" %>
-<wp:contentNegotiation mimeType="application/xhtml+xml" charset="utf-8"/>
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
-"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
-
-<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="it">
-<head>
- <title>jAPS 2.0 - Login
-
- <%
-
- String user = request.getRemoteUser();
- out.println( user );
-
- %>
- </title>
- <link rel="stylesheet" type="text/css" href="<wp:resourceURL />administration/css/administration.css" />
- <link rel="stylesheet" type="text/css" href="<wp:resourceURL />administration/css/layout.css" />
- <!--[if lte IE 6]>
- <link rel="stylesheet" type="text/css" href="<wp:resourceURL />administration/css/layout_ie6.css" />
- <![endif]-->
-
- <%-- <script type="text/javascript" src="<wp:resourceURL />administration/js/mootools-beta-1.2b2.js"></script> --%>
- <script type="text/javascript" src="<wp:resourceURL />administration/js/mootools-1.2-core.js"></script>
- <script type="text/javascript" src="<wp:resourceURL />administration/js/mootools-1.2-more.js"></script>
-
-
-<script type="text/javascript">
-<!--//--><![CDATA[//><!--
-window.addEvent('domready', function(){
- $('username').focus();
-});
-//--><!]]></script>
-
-</head>
-<body>
-
-<h1>jAPS 2.0 - Authorization Required</h1>
-
-<p>This server could not verify that you are authorized to access the document requested. Either you supplied the wrong credentials (e.g., bad password), or your browser doesn't understand how to supply the credentials required.</p>
-
-
-<s:if test="hasActionErrors()">
-<div class="message message_error">
-<h2><s:text name="message.title.ActionErrors" /></h2>
-<ul>
- <s:iterator value="actionErrors">
- <li><s:property/></li>
- </s:iterator>
-</ul>
-</div>
-</s:if>
-
-
-<s:if test="hasFieldErrors()">
-<div class="message message_error">
-<h2><s:text name="message.title.FieldErrors" /></h2>
-<ul>
- <s:iterator value="fieldErrors">
- <s:iterator value="value">
- <li><s:property/></li>
- </s:iterator>
- </s:iterator>
-</ul>
-</div>
-</s:if>
-
-
-</body>
-</html>

No commit comments for this range

Something went wrong with that request. Please try again.