Roberto thanks...that doesn't help something else is really wrong here. I
wish I could maybe post a picture here or something I could take a screen
shot I am not sure if I am allowed to attach things in this email list but
here's my tiles.xml

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE tiles-definitions PUBLIC "-//Apache Software Foundation//DTDTiles
Configuration 2.0//EN"
 "http://tiles.apache.org/dtds/tiles-config_2_0.dtd";>

 <tiles-definitions>
    <definition name="login_tile"
template="/WEB-INF/jsp/common/layout/page_layout.jsp">
        <put-attribute name="header"
value="/WEB-INF/jsp/common/unauthenticated_header.jsp"></put-attribute>
        <put-attribute name="navigation"
value="/WEB-INF/jsp/common/navigation_date.jsp"></put-attribute>
        <put-attribute name="body"
value="/WEB-INF/jsp/body/login/login_entry-body.jsp"></put-attribute>
        <put-attribute name="footer"
value="/WEB-INF/jsp/common/footer.jsp"></put-attribute>
    </definition>

    <definition name="temporary_password_entry-tile"
template="/WEB-INF/jsp/common/layout/page_layout.jsp">
        <put-attribute name="header"
value="/WEB-INF/jsp/common/authenticated_header.jsp"></put-attribute>
        <put-attribute name="navigation"
value="/WEB-INF/jsp/common/navigation_app.jsp"></put-attribute>
        <put-attribute name="body"
value="/WEB-INF/jsp/body/login/temporary_password_entry-body.jsp
"></put-attribute>
        <put-attribute name="footer"
value="/WEB-INF/jsp/common/footer.jsp"></put-attribute>
    </definition>

    <definition name="home-tile"
template="/WEB-INF/jsp/common/layout/page_layout.jsp">
        <put-attribute name="header"
value="/WEB-INF/jsp/common/authenticated_header.jsp"></put-attribute>
        <put-attribute name="navigation"
value="/WEB-INF/jsp/common/navigation_app.jsp"></put-attribute>
        <put-attribute name="body" value="/WEB-INF/jsp/body/home-body.jsp
"></put-attribute>
        <put-attribute name="footer"
value="/WEB-INF/jsp/common/footer.jsp"></put-attribute>
    </definition>

    <definition name="agency_entry-tile"
template="/WEB-INF/jsp/common/layout/page_layout.jsp">
        <put-attribute name="header"
value="/WEB-INF/jsp/common/unauthenticated_header.jsp"></put-attribute>
        <put-attribute name="navigation"
value="/WEB-INF/jsp/common/navigation_app.jsp"></put-attribute>
        <put-attribute name="body"
value="/WEB-INF/jsp/body/login/agency_entry-body.jsp"></put-attribute>
        <put-attribute name="footer"
value="/WEB-INF/jsp/common/footer.jsp"></put-attribute>
    </definition>

</tiles-definitions>

and here's my struts.xml

<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE struts PUBLIC
    "-//Apache Software Foundation//DTD Struts Configuration 2.0//EN"
    "http://struts.apache.org/dtds/struts-2.0.dtd";>

<struts>

    <constant name="struts.enable.DynamicMethodInvocation" value="false" />
    <constant name="struts.devMode" value="true" />

    <package name="com.xfact.struts2login"
namespace="/com.xfact.struts2login" extends="struts-default">

        <result-types>
              <result-type name="tiles" class="
org.apache.struts2.views.tiles.TilesResult"/>
        </result-types>

        <!-- Login Form Configuration -->
        <action name="presentEntryLogin" class="
com.xfact.struts2login.actions.LoginLogoutDispatchAction"
method="presentEntryLogin">
            <result name="input" type="tiles">login_tile</result>
        </action>

        <action name="submitRequestLogin" class="
com.xfact.struts2login.actions.LoginLogoutDispatchAction"
method="submitRequestLogin">
            <result name="error" type="tiles">login_tile</result>
            <result name="input" type="tiles">login_tile</result>
            <result name="temp_password"
type="redirect-action">presentEntryTempPassword</result>
            <result name="login"
type="redirect-action">presentEntrySelectAgency</result>
            <result name="home" type="tiles">home-tile</result>
        </action>

        <action name="presentEntryTempPassword" class="
com.xfact.struts2login.actions.LoginLogoutDispatchAction"
method="presentEntryTempPassword">
            <result name="temporary_password_entry"
type="tiles">temporary_password_entry-tile</result>
        </action>

        <action name="presentEntrySelectAgency" class="
com.xfact.struts2login.actions.LoginLogoutDispatchAction"
method="presentEntrySelectAgency">
            <result name="agency_entry"
type="tiles">agency_entry-tile</result>
        </action>

         <action name="submitRequestUserAgency" class="
com.xfact.struts2login.actions.LoginLogoutDispatchAction"
method="submitRequestUserAgency">
            <result name="error" type="tiles">agency_entry-tile</result>
            <result name="home" type="tiles">home-tile</result>
         </action>

         <action name="submitRequestTempPassword" class="
com.xfact.struts2login.actions.LoginLogoutDispatchAction"
method="submitRequestTempPassword">
                <result name="login"
type="redirect-action">presentEntrySelectAgency</result>
                <result name="home" type="tiles">home-tile</result>
            </action>

        <!-- Login Form configuration ends-->
        <action name="ControlTagsIf">
            <result>/pages/ControlTagsIf.jsf</result>
        </action>

         <!-- Add actions here -->
    </package>

    <constant name="struts.custom.i18n.resources"
value="MessageResources"></constant>

    <!-- Add packages here -->

</struts>

When I am in submitRequestUserAgency I return ERROR on purpose and it goes
to agency-entry-tile and if I am allowed to attach a picture I could show
you what exactly happens on a screen

On 8/28/07, Roberto Nunnari <[EMAIL PROTECTED]> wrote:
>
> Hi Pavel
>
> here's what I have in my web.xml the order of the filter-mapping is
> important!
>
>
>      <filter>
>          <filter-name>contextCleanup</filter-name>
>          <filter-class>
>              org.apache.struts2.dispatcher.ActionContextCleanUp
>          </filter-class>
>      </filter>
>      <filter>
>          <filter-name>struts2</filter-name>
>
> <filter-class>org.apache.struts2.dispatcher.FilterDispatcher
> </filter-class>
>      </filter>
>      <filter-mapping>
>          <filter-name>contextCleanup</filter-name>
>          <url-pattern>/*</url-pattern>
>      </filter-mapping>
>      <filter-mapping>
>          <filter-name>struts2</filter-name>
>          <url-pattern>/*</url-pattern>
>      </filter-mapping>
>
>
>
> Pavel Sapozhnikov wrote:
> > Hey Roberto I put this in my web.xml but that doesn't seem to fix
> things:
> >
> > <servlet>
> >         <servlet-name>tilesCleanup</servlet-name>
> >         <servlet-class>
> org.apache.struts2.dispatcher.ActionContextCleanUp
> > </servlet-class>
> >         <load-on-startup>1</load-on-startup>
> >     </servlet>
> >
> > On 8/28/07, Pavel Sapozhnikov <[EMAIL PROTECTED]> wrote:
> >> Robert could you tell me how to use that..how to put it in web.xml
> >>
> >> On 8/28/07, Roberto Nunnari <[EMAIL PROTECTED] > wrote:
> >>> Hi Pavel.
> >>>
> >>> Do you use the contextCleanup in your web.xml?
> >>> org.apache.struts2.dispatcher.ActionContextCleanUp
> >>>
> >>> I had very strange behaviours until I added the contextCleanup filter.
> >>>
> >>> Hope that helps.
> >>>
> >>>
> >>> Pavel Sapozhnikov wrote:
> >>>> Hey guys I am not sure if uh if this is tiles problem or what not but
> >>> here's
> >>>> my problem:
> >>>>
> >>>> So I am on a page X lets say I hit a button the button goes to
> another
> >>>> action does something and basically I return to the same tile with an
> >>> action
> >>>> error message. My tiles are using the s2 plugin and type="tiles" now
> >>> so
> >>>> here's the problem. When it returns to the same tile it seems like
> >>> that it
> >>>> puts a tile within a tile so u literally see like a page within a
> page
> >>> or
> >>>> something. Now here's more if you have <s:head theme="ajax"> when it
> >>> returns
> >>>> to the same tile it says like Stack Overflow and you can actually see
> >>> action
> >>>> error messages in fact you see TWO OF THEM because as I said I have a
> >>>> feeling it puts a page within a page or if not then something funky
> is
> >>> going
> >>>> on. Um what else If I remove <s:head theme="ajax"> I still see same
> >>> behavior
> >>>> but no stack overflow pop up on a page and no action error messages.
> >>>>
> >>>> Can anybody like explain to me what is going on please.
> >>>>
> >>>
> >>> --
> >>> Robi
> >>>
> >>>
> >>> ---------------------------------------------------------------------
> >>> To unsubscribe, e-mail: [EMAIL PROTECTED]
> >>> For additional commands, e-mail: [EMAIL PROTECTED]
> >>>
> >>>
> >>
> >> --
> >> Pavel Sapozhnikov
> >> xFact, Inc
> >> [EMAIL PROTECTED]
> >>
> >
> >
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
Pavel Sapozhnikov
xFact, Inc
[EMAIL PROTECTED]

Reply via email to