Antonio Petrelli wrote:
2008/6/23 Dimitris Mouchritsas <[EMAIL PROTECTED]>:
A tile definition. I've tried a few combinations, but none is working. For
example if I use
<action
path="/home"
type="be.fedict.etendering.web.actions.common.HomeAction">
<forward name="home" path="home" redirect="true" />
</action>
I get no exception but a blank page is returned.
I suppose that Tiles has not been configured correctly then.
See:
http://wiki.apache.org/struts/StrutsUpgradeNotes12to13
In particular, in the Tiles part:
Add a chainConfig init-param in the web.xml pointing to the
location of the chain-config.xml
<init-param>
<param-name>chainConfig</param-name>
<param-value>org/apache/struts/tiles/chain-config.xml</param-value>
</init-param>
HTH
Antonio
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Still no luck. #*$&#$&!@(*$ strus :)
Anyway here's what I've done so far. Patch xdoclet 1.2.3 from
http://opensource.atlassian.com/projects/xdoclet/browse/XDT-1673?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
to allow xdoclet to create files for struts 1.3.
Updated commons-chain.jar to 1.2, commons-io.jar to 1.4. Added the
init-param you said. Even though no exception is seen in the logs,
I get a 500 Internal server error when trying to access the home page.
Here's my web.xml related part:
<servlet>
<servlet-name>action</servlet-name>
<servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
<init-param>
<param-name>config</param-name>
<param-value>/WEB-INF/struts-config.xml</param-value>
</init-param>
<init-param>
<param-name>chainConfig</param-name>
<param-value>org/apache/struts/tiles/chain-config.xml</param-value>
</init-param>
<init-param>
<param-name>debug</param-name>
<param-value>2</param-value>
</init-param>
<init-param>
<param-name>detail</param-name>
<param-value>2</param-value>
</init-param>
<init-param>
<param-name>application</param-name>
<param-value>ApplicationResources</param-value>
</init-param>
<load-on-startup>1</load-on-startup>
</servlet>
...and here's the end of struts-config.xml:
<!-- Define your Struts controller in a file called
struts-controller.xml and place it in your merge directory. -->
<message-resources parameter="ApplicationResources" />
<message-resources parameter="ApplicationResourcesErrorMessages"
key="ERROR_RESOURCE_KEY" />
<message-resources parameter="ApplicationResourcesHelpMessages"
key="HELP_RESOURCE_KEY" />
<plug-in className="org.apache.struts.tiles.TilesPlugin" >
<set-property property="definitions-config"
value="/WEB-INF/tiles-defs.xml" />
<set-property property="definitions-debug" value="1"/>
<set-property property="definitions-parser-validate" value="true" />
<set-property property="moduleAware" value="true" />
<set-property property="definitions-parser-details" value="2"/>
</plug-in>
<plug-in className="org.apache.struts.validator.ValidatorPlugIn">
<set-property property="pathnames" value="/WEB-INF/validator-rules.xml,
/WEB-INF/validation.xml"/>
<set-property property="stopOnFirstError" value="true" />
</plug-in>
</struts-config>
See anything wrong?
Regards
Dimitris
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]