I'm using tiles, and some of the tiles are summary pages.  For instance a payment 
summary, it just shows the date and the amount.  While the detail page shows how the 
payment was applied (how much to interest etc.)
So my tiles definition looks like:
<definition name="mainLayout" path="/layout/layout2.jsp">
        <put name="title"  value="This is a title" />
        <putList name="headerList">             
                <add value="/errorMessages.jsp"/>
                <add value="/successMessages.jsp"/>
                <add value="/showMessages.do"/> 
        </putList>
        <putList name="leftSideList">
                <add value="/showBorrowerDemographics.do?detail=summary"/>
                <add value="/showSwiftPay.do"/>
                <add value="/showPaymentHistory.do?detail=summary"/>
        </putList>
        <putList name="centerList">
                <add value="/layout/body.jsp"/>
        </putList>
        <putList name="rightSideList">                  
                <add value="/resources.jsp"/>
                <add value="/layout/links.jsp"/> 
                <add value="/showDeferments.do"/> 
                <add value="/showForebearances.do"/>            
        </putList>
        <putList name="footerList">
                <add value="/layout/footer.jsp"/>
        </putList>
    </definition>

Okay, this works... now let's say /showPaymentHistory.do encounters something 
catastrophic, like DB down etc.  So, it throws a BusinessObjectException.  Cool.. that 
works....
Now, I've never used the exception handling stuff in struts-config.xml.... so here's 
the definition:
<exception type="com.sssc.csr.businessObjects.BusinessObjectExeception" 
        key="errors.applicationFailure" 
        handler="com.sssc.csr.web.exceptionHandlers.BusinessObjectExceptionHandler" 
        path="/applicationFailure.do">
</exception>

And the handler says:
LogWrapper.logAlert( "Business Object Exception: " + ex.getMessage());
        ActionForward forward = mapping.findForward( "applicationFailure");
        return forward;
and the forward has redirect = true in the struts-config.xml

So..... I would expect that even though the summary pagelet is throwing the exception, 
that it would forward to the applicationFailure tiles definition.  What I didn't 
expect was for the entire page to end up nested inside the original page being 
requested.
Shouldn't redirect=true do what I expect with regards to tiles?  and pop to a new 
tiles definition rather then include it?

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to