<tr>
<td>
<p>
- <p align="center"><font color="red">${errorstring}</font>
+ <p align="center"><font color="red">${data.errorstring}</font>
<p>
</td>
</tr>
- virtually no CSS functions
- all paths relative to /
- no complicated freemarker code
-</comment>
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+</comment><!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=${config["Mir.DefaultHTMLCharset"]}">
* OpenMir.java - main servlet for open posting and comment feature to articles
*
* @author RK 1999-2001, the mir-coders group
- * @version $Id: OpenMir.java,v 1.35.2.3 2004/11/21 22:07:13 zapata Exp $
+ * @version $Id: OpenMir.java,v 1.35.2.4 2005/01/22 23:27:36 zapata Exp $
*
*/
ServletModuleDispatch.dispatch(ServletModuleOpenIndy.getInstance(), aRequest, aResponse);
}
catch (Throwable e) {
+ logger.warn("Error in open publishing", e);
+
Throwable cause = ExceptionFunctions.traceCauseException(e);
if (cause instanceof ServletModuleUserExc)
public void debug(Object o, String s);
public void info(Object o, String s);
public void warn(Object o, String s);
+ public void warn(Object o, String s, Throwable anException);
public void error(Object o, String s);
public void error(Object o, String s, Throwable anException);
public void fatal(Object o, String s);
loggerInstance.warn(o, s);
}
+ public static void warn(Object o, String s, Throwable anException) {
+ loggerInstance.warn(o, s, anException);
+ }
+
public static void error(Object o, String s) {
loggerInstance.error(o, s);
}
LoggerEngine.warn(object, aMessage);
};
+ public void warn(String aMessage, Throwable anException) {
+ LoggerEngine.warn(object, aMessage, anException);
+ };
+
public void error( String aMessage ) {
LoggerEngine.error(object, aMessage);
};
}
/** {@inheritDoc} */
+ public void warn(Object o, String s, Throwable anException) {
+ this.getLogger(o).warn(s, anException);
+ }
+
+ /** {@inheritDoc} */
public void error(Object o, String s) {
this.getLogger(o).error(s);
}
filterGroups.clear();\r
idToFilterGroup.clear();\r
\r
- Iterator i = new EntityIteratorAdapter("", "priority asc", 100, model, "filterGroup");\r
+ try {\r
+ Iterator i = new EntityIteratorAdapter("", "priority asc", 100, model, "filterGroup");\r
+ while (i.hasNext()) {\r
+ EntityAdapter entityAdapter = (EntityAdapter) i.next();\r
+ List filters = new ArrayList();\r
+ Iterator j = (Iterator) entityAdapter.get("to_filters");\r
+ while (j.hasNext()) {\r
+ filters.add(((EntityAdapter) j.next()).getEntity());\r
+ }\r
\r
- while (i.hasNext()) {\r
- EntityAdapter entityAdapter = (EntityAdapter) i.next();\r
- List filters = new ArrayList();\r
- Iterator j = (Iterator) entityAdapter.get("to_filters");\r
- while (j.hasNext()) {\r
- filters.add(((EntityAdapter) j.next()).getEntity());\r
+ FilterGroup filterGroup = new FilterGroup(entityAdapter.getEntity(), filters);\r
+ introduceFilterGroup(filterGroup);\r
}\r
-\r
- FilterGroup filterGroup = new FilterGroup(entityAdapter.getEntity(), filters);\r
- introduceFilterGroup(filterGroup);\r
+ }\r
+ catch (Throwable e) {\r
+ logger.error("Can't load filters: " + e.getMessage());\r
}\r
}\r
\r