tiles-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chad Sears <sears.c...@gmail.com>
Subject Wildcard help needed when returning from action
Date Wed, 23 Dec 2009 03:14:04 GMT
I am using Struts 2.1.6 and Tiles 2.1.4

I am trying to use wildcards for the first time

I try to get to my tile using this link <a
href="secureCpBrandintroduction.awsp">Brand 101</a>

This seems to work through the struts side of the house and when it
trys to find the HTML page it fails:
The requested resource (/content/secure/brand101/{1}.html) is not available

I followed the instructions on the tiles config site and ensured I had
these jars deployed:
spring-web-VERSION.jar, spring-core-VERSION.jar,
spring-context-VERSION.jar, spring-beans-VERSION.jar,
aopalliance-VERSION.jar

I do not receive any errors other than the one in the web browser
listed above. What am I doing wrong?

Struts-config excerpt:
    <action name="secureCpBrand*" class="com.ancept.ams.wsportal.SecureAction">
      <result>secure.cp.brand101.{1}</result>
    </action>

Tiles excerpt:
<tiles-definitions>
  <definition name="secure.cp.brand101" extends="secure.cp">
    <put-attribute name="body" value="secure.cp.brand101.body"/>
    <put-attribute name="subNavItemsDef"
value="secure.cp.brand101.subNavigation"/>
  </definition>

  <definition name="secure.cp.brand101.body" extends="secure.cp.body"/>
  <definition name="secure.cp.brand101.subNavigation"
extends="base.subNavigation"/>

  <definition name="secure.cp.brand101.*" extends="secure.cp.brand101">
    <put-attribute name="subNavItemsDef">
	    <definition extends="secure.cp.brand101.subNavigation">
	      <put-attribute name="subNavSelected" value="{1}"/>
	    </definition>
    </put-attribute>
    <put-attribute name="body">
      <definition extends="secure.cp.brand101.body">
        <put-list-attribute name="bodyContent">
          <add-attribute value="/content/secure/brand101/{1}.html"/>
        </put-list-attribute>
      </definition>
    </put-attribute>
  </definition>
</tiles-definitions>

Mime
View raw message