You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@roller.apache.org by sn...@apache.org on 2006/11/08 05:08:09 UTC

svn commit: r472382 - /incubator/roller/trunk/web/index.jsp

Author: snoopdave
Date: Tue Nov  7 20:08:08 2006
New Revision: 472382

URL: http://svn.apache.org/viewvc?view=rev&rev=472382
Log:
Tomcat 5.5.X requires session creation before response is committed

Modified:
    incubator/roller/trunk/web/index.jsp

Modified: incubator/roller/trunk/web/index.jsp
URL: http://svn.apache.org/viewvc/incubator/roller/trunk/web/index.jsp?view=diff&rev=472382&r1=472381&r2=472382
==============================================================================
--- incubator/roller/trunk/web/index.jsp (original)
+++ incubator/roller/trunk/web/index.jsp Tue Nov  7 20:08:08 2006
@@ -20,12 +20,15 @@
 String frontpageBlog =
         RollerRuntimeConfig.getProperty("site.frontpage.weblog.handle");
 
-if(frontpageBlog != null && !"".equals(frontpageBlog.trim())) {
+if (frontpageBlog != null && !"".equals(frontpageBlog.trim())) {
     // dispatch to frontpage blog
     RequestDispatcher homepage =
             request.getRequestDispatcher("/roller-ui/rendering/page/"+frontpageBlog);
     homepage.forward(request, response);
     return;
+} else {
+    // need to create a session before response is committed
+    request.getSession(true);
 }
 
 // otherwise, show the "Here's how to finish your Roller install page"