Ben,

Thanks for all the work!

I'm running this in Tomcat (Windows XP). The info.jsp works fine under 
Stripes-1.5.3 but result in an infinite loop when used with 
Strips-1.5.4-beta (Revision: 1236).


-----------------------------------------------------
These are the errors in the Tomcat log file:

May 19, 2010 6:58:53 PM org.apache.catalina.core.ApplicationContext log
INFO:

The server side component of the HTTP Monitor has detected a 
java.lang.StackOverflowError.
This happens when there is an infinite loop in the web module.
Correct the cause of the infinite loop before running the web module again.


May 19, 2010 6:58:53 PM org.apache.catalina.core.ApplicationDispatcher 
invoke
SEVERE: Servlet.service() for servlet jsp threw exception
java.lang.StackOverflowError
        at 
org.apache.catalina.session.StandardSession.isValid(StandardSession.java:559)
        at 
org.apache.catalina.connector.Request.doGetSession(Request.java:2350)
        at 
org.apache.catalina.connector.Request.getSession(Request.java:2098)
        at 
org.apache.catalina.connector.RequestFacade.getSession(RequestFacade.java:833)
        at 
javax.servlet.http.HttpServletRequestWrapper.getSession(HttpServletRequestWrapper.java:216)
        at 
org.apache.catalina.core.ApplicationHttpRequest.getSession(ApplicationHttpRequest.java:544)
        at 
javax.servlet.http.HttpServletRequestWrapper.getSession(HttpServletRequestWrapper.java:216)
        at 
org.apache.catalina.core.ApplicationHttpRequest.getSession(ApplicationHttpRequest.java:544)
        at 
javax.servlet.http.HttpServletRequestWrapper.getSession(HttpServletRequestWrapper.java:216)
(keeps repeating 216/544)


-----------------------------------------------------
info.jsp:

<%...@include file="/WEB-INF/jsp/common/Taglibs.jsp" %>
<s:layout-render name="/WEB-INF/jsp/layout/OneColumn.jsp"
title="My App links"
menu="com.myapp.action.info.InfoMenu">
<s:layout-component name="body">
    <h1>Informatie</h1>
    <a href="/faq.html">F.a.q.</a><br>
    <s:link 
beanclass="com.myapp.action.info.MethodCategoriesAction">Methods</s:link><br>
    <s:link beanclass="com.myapp.action.info.LinksAction">Links</s:link><br>
</s:layout-component>
</s:layout-render>


-----------------------------------------------------
OneColumn.jsp:

<%...@include file="/WEB-INF/jsp/common/Taglibs.jsp" %>
<s:layout-definition>
<s:layout-render name="/WEB-INF/jsp/layout/Base.jsp"
    title="${title}"
    metaTitle="${metaTitle}"
    metaDescription="${metaDescription}"
    metaKeywords="${metaKeywords}"
    metaCategory="${metaCategory}"
    metaRobots="${metaRobots}"
    menu="${menu}">
<s:layout-component name="head">
${head}
</s:layout-component>
<s:layout-component name="body">

<table border="0" align="center" cellpadding="0" cellspacing="0" 
class="container">
<tr><td><div class="contentcontainer"><div class="kolom0">
${body}
</div></div></td></tr></table>

</s:layout-component>
</s:layout-render>
</s:layout-definition>


-----------------------------------------------------
Base.jsp:

<%...@page contentType="text/html;charset=utf-8" language="java" %>
<%...@include file="/WEB-INF/jsp/common/Taglibs.jsp" %>
<s:layout-definition>
<s:layout-render name="/WEB-INF/jsp/layout/BaseHead.jsp"
    title="${title}"
    metaTitle="${metaTitle}"
    metaDescription="${metaDescription}"
    metaKeywords="${metaKeywords}"
    metaCategory="${metaCategory}"
    metaRobots="${metaRobots}"
    head="${head}"
    menu="${menu}"/>
<s:layout-component name="body"/>
<s:layout-render name="/WEB-INF/jsp/layout/BaseFoot.jsp" />
</s:layout-definition>


-----------------------------------------------------
BaseHead.jsp:

<%...@page contentType="text/html;charset=utf-8" language="java" %>
<%...@include file="/WEB-INF/jsp/common/Taglibs.jsp" %>
<s:layout-definition>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>
<html dir="ltr">
<head>
<title>${title}</title>
<meta http-equiv="Content-Type" content="text/html;charset=uft-8"/>
<meta http-equiv="Content-Style-Type" content="text/css"/>
etc,etc,etc,
<s:layout-component name="head"/>
<script type="text/javascript" 
src="http://www.google-analytics.com/urchin.js";></script>
</head>
<body>

bla bla bla....
<s:layout-render name="/WEB-INF/jsp/layout/Menu.jsp" menu="${menu}" />

<%-- Private message popup --%>
<s:layout-render name="/WEB-INF/jsp/layout/PrivateMessagesPopup.jsp"/>
</s:layout-definition>


-----------------------------------------------------
Basefoot.jsp:

<%...@page contentType="text/html;charset=utf-8" language="java" %>
<%...@include file="/WEB-INF/jsp/common/Taglibs.jsp" %>
<s:layout-definition>

some html tags to close the page

</body>
</html>
</s:layout-definition>


-----------------------------------------------------
Menu.jsp (url to menu controller)

<%...@include file="/WEB-INF/jsp/common/Taglibs.jsp" %>
<s:layout-definition>
    <s:url var="url" beanclass="${menu}" prependContext="false">
    </s:url>
    <jsp:include page="${url}" />
</s:layout-definition>




------------------------------------------------------------------------------

_______________________________________________
Stripes-users mailing list
Stripes-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/stripes-users

Reply via email to