Author: ssmiweve
Date: 2007-05-03 14:24:28 +0200 (Thu, 03 May 2007)
New Revision: 4987
Modified:
branches/2.12/core-api/src/main/java/no/schibstedsok/searchportal/view/output/SyndicationGenerator.java
Log:
SEARCH-1973 - request.getSession().getAttribute(DataModel.KEY);
Modified:
branches/2.12/core-api/src/main/java/no/schibstedsok/searchportal/view/output/SyndicationGenerator.java
===================================================================
---
branches/2.12/core-api/src/main/java/no/schibstedsok/searchportal/view/output/SyndicationGenerator.java
2007-05-03 11:16:11 UTC (rev 4986)
+++
branches/2.12/core-api/src/main/java/no/schibstedsok/searchportal/view/output/SyndicationGenerator.java
2007-05-03 12:24:28 UTC (rev 4987)
@@ -45,6 +45,7 @@
import com.sun.syndication.feed.synd.SyndFeedImpl;
import com.sun.syndication.io.FeedException;
import com.sun.syndication.io.SyndFeedOutput;
+import no.schibstedsok.searchportal.datamodel.DataModel;
import
no.schibstedsok.searchportal.view.output.syndication.modules.SearchResultModuleImpl;
/** Used by the rssDecorator.jsp to print out the results in rss format.
@@ -55,6 +56,9 @@
* and simplify other things as well (such as date handling)
* The only problem is to get rid of leading whitespace generated before the
xml declaration
* by the jsp. JSP 2.1 has page property to do this.
+ *
+ * @todo this class should be more based off the datamodel and less the
request and response.
+ * Infact it should be completely request and response independent.
*
*/
public final class SyndicationGenerator {
@@ -285,6 +289,7 @@
}
cxt.put("query", query);
+ cxt.put("datamodel",
request.getSession().getAttribute(DataModel.KEY));
final String origUri = uri.replaceAll("&?output=[^&]+",
"").replaceAll("&?feedtype=[^&]+", "");
cxt.put("uri", origUri);
_______________________________________________
Kernel-commits mailing list
[email protected]
http://sesat.no/mailman/listinfo/kernel-commits