struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From stanl...@gmail.com
Subject Tiles 2 Lifecycycle
Date Wed, 11 Apr 2007 18:33:35 GMT
I am discovering slightly different behavior between my application with
Tiles and without.  Consider the following snippet of configuration:

        <action name="course_*" method="{1}" class="course">
            <result name="input" type="tiles">course.page</result>
            <result type="tiles">course.page</result>
        </action>

Shouldn't returning SUCCESS from my action result in a new Action class
instance and it's dependencies being injected?  My web page is retaining the
values as if the bean in the action class was not renewed.  I don't recall
seeing this behavior before adding struts.  What steps are happening as the
request is passed to the tiles definition?


<tiles-definitions>

  <definition name="standard" template="/pages/base.jsp">
        <put name="title" value="Standard Title for base.jsp" />
      <put name="header" value="/pages/header.jsp" />
      <put name="navigation" value="/pages/navigation.jsp" />
      <put name="body"   value="/pages/body.jsp" />
      <put name="footer" value="/pages/footer.jsp" />
  </definition>

  <definition name="course.page" extends="standard">
        <put name="title" value="Course" />
      <put name="body"  value="/pages/course.jsp" />
  </definition>
</tiles-definitions>

-- 
Scott
stanlick@gmail.com

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message