[opencms-dev] News 2.1, One channel, 3 messages, no error, no output
Thomas Gagné
tgagne at wideopenwest.com
Fri Feb 13 17:44:02 CET 2004
I've inserted the following into one of my templates, and made minor
modifications to news.jsp, but No news is displayed. I've checked the
page source (inside the browser) and there's simply nothing. I've
confirmed the parameters are passed properly, but therre's still no output.
Off to the archives!
BTW- I've read other recent postings about empty news output but they're
unanswered.
<%
java.util.HashMap includeParameters = new java.util.HashMap();
CmsJspActionElement cms = new CmsJspActionElement(pageContext,
request, response);
String filename = cms.getRequestContext().getUri();
// out.print("filename=" + filename);
// if (filename.equals("/main.html")) {
includeParameters.clear();
includeParameters.put("channel", "1");
out.print("<table width=\"100%\"
border=\"0\"><tr><td><h2>News</h2></td><td></td></tr>");
out.print("<tr><td valign=\"top\">");
cms.include("/system/modules/gagne.tgagne/resources/news.jsp",null,includeParameters);
out.print("</td><td valign=\"top\">");
out.print("</td></tr></table>");
// }
%>
More information about the opencms-dev
mailing list