serverMsg.jsp 2.11 KB
Newer Older
CED SA's avatar
CED SA committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67
<%
/*
 * Created on 18-gen-2007
 *
 * Copyright (c) EldaSoft S.p.A.
 * Tutti i diritti sono riservati.
 *
 * Questo codice sorgente e' materiale confidenziale di proprieta' di EldaSoft S.p.A.
 * In quanto tale non puo' essere distribuito liberamente ne' utilizzato a meno di 
 * aver prima formalizzato un accordo specifico con EldaSoft.
 */
 
 // PAGINA CHE CONTIENE LA GENERAZIONE DEI MESSAGGI DI ERRORI LATO SERVER
%>
<!-- Parte generale per la visualizzazione dei messaggi javascript-->
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic" %>

<c:set var="contextPath" value="${pageContext.request.contextPath}" />

<logic:messagesPresent message="true">
<div class="errori-javascript-titolo">
	<div><img src="${contextPath}/img/jsMsgOn.gif" alt="Messaggi" />Messaggi</div>
	<div class="errori-javascript-dettaglio">
	<ul>
	<html:messages id="error" message="true" property="error">
		<li class="errori-javascript-err">ERRORE:<small>
			<c:choose>
				<c:when test='${fn:startsWith( error, "<HTML>" )}'>
					${fn:substringAfter(error, "<HTML>")}
				</c:when>
				<c:otherwise>
					<c:out value="${error}"/>
				</c:otherwise>
			</c:choose>
		</small></li>
	</html:messages>
	<html:messages id="warning" message="true" property="warning">
		<li class="errori-javascript-war">ATTENZIONE:<small>
			<c:choose>
				<c:when test='${fn:startsWith( warning, "<HTML>")}'>
					${fn:substringAfter(warning, "<HTML>")}
				</c:when>
				<c:otherwise>
					<c:out value="${warning}"/>
				</c:otherwise>
			</c:choose>
		</small></li>
	</html:messages>
	<html:messages id="info" message="true" property="info">
		<li class="errori-javascript-msg">NOTA:<small>
			<c:choose>
				<c:when test='${fn:startsWith( info, "<HTML>")}'>
					${fn:substringAfter(info, "<HTML>")}
				</c:when>
				<c:otherwise>
					<c:out value="${info}"/>
				</c:otherwise>
			</c:choose>
		</small></li>
	</html:messages>
	</ul>
	</div>
</div>
</logic:messagesPresent>