You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by rukka <an...@shaw.ca> on 2006/07/13 06:30:46 UTC
Struts/Spring/Tiles/StrutsTestCase
I have struts application that works with spring. I do have few questions
my struts-config.xml looks like this...
..
<action path = "/cai/clie/priusacquiro"
type = "org.springframework.web.struts.DelegatingActionProxy"
name = "LoginForm"
scope = "request" validate="false" >
<forward name = "french_login" path = "french.login"/>
<forward name = "english_login" path = "english.login"/>
</action>
what should I setup controller as:
<controller pagePattern="$M$P"
processorClass="org.springframework.web.struts.DelegatingTilesRequestProcessor"
nocache="true" locale="true" />
or
<controller pagePattern="$M$P"
processorClass="org.apache.struts.tiles.TilesRequestProcessor"
nocache="true" locale="true" />
what is the difference??
I got strutsTestcase almost working with spring wired actions. On that
front I have one question:
How do I find forward name and path from programetically:
TilesRequestProcessor tilesProcessor =
(TilesRequestProcessor)this.context.getAttribute("org.apache.struts.action.REQUEST_PROCESSOR");
does return null .
what I want to do is given the forward name, find the path. basically
get the struts-config.xml
thanks
rukka
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org