tiles-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kate Fox <kate....@fraudwall.net>
Subject struts2 + tiles help
Date Sat, 24 Nov 2007 03:17:57 GMT
I would like my struts-config file to redirect to a tiles page (instead 
of having a separate jsp page with just a tiles include).

I tried to make <result type="tiles" but I'm getting the following 
exception at startup:

2007/11/23 19:12:39 [ERROR] seaspider] - Exception starting filter 
struts2 <Error building results for action FileStatsAction in namespace  
- action - file:/C:/
Program%20Files/apache-tomcat-5.5.25/webapps/seaspider/WEB-INF/classes/seaspider.xml:9:96>Error

building results for action FileStatsAction in namespace  - acti
on - 
file:/C:/Program%20Files/apache-tomcat-5.5.25/webapps/seaspider/WEB-INF/classes/seaspider.xml:9:96
        at 
com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.addAction(XmlConfigurationProvider.java:340)
        at 
com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.addPackage(XmlConfigurationProvider.java:429)
        at 
com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadPackages(XmlConfigurationProvider.java:239)


My struts-config.xml file:
<?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>
    <package name="seaspider" extends="struts-default">
        <action name="FileStatsAction" 
class="com.fraudwall.seaspider.reports.FileStatsAction">
            <result type="tiles">reportpage.definition</result>
        </action>
    </package>
</struts>


reportpage.definition is defined in tiles-defs.xml

Thanks for your help,

Kate

Mime
View raw message