<?xml version="1.0" encoding="UTF-8"?>

<%@ page import="com.sap.slm.web.jnet.DataGenerator" %>
<%@ page contentType="text/xml; charset=UTF-8" %>

<%

/*
 * @(#)jneterror.xml Created on: May 05, 2004
 *
 * Copyright (c) 2003 SAP AG,
 * Neurottstr. 16, 69190 Walldorf, Germany
 * All Rights Reserved.
 *
 * The file is used to return errors to JNet.
 *
 * @version $Revision$ $Date$
 * @author Metodi Mladenov
 */

 %>

<%
	Exception e = (Exception) request.getAttribute(DataGenerator.ATTR_EXCEPTION);
	String type = e.getClass().getName();
	String msg = "Error occured while loading data!";
	String htmlMsg = "<html><body><p>The following error occured while retrieving data for graphical presentation:<br>" +
				"<br><b>Error type:</b> '" + type + "'" +
				"<br><b>Concrete message:</b> '" + e.getMessage() + "'" +
				"<br><b>Please check your configuration or contact the support.</b></body></html>";
%>

<SAPJNetData version="1.0">
	<JNet>
		<Error severity="ERROR" message="<%=msg %>">
			<![CDATA[<%=htmlMsg %>]]>
		</Error>
	</JNet>
</SAPJNetData>
