Jim Crossley wrote:
Thanks, Cedric. I got this to work in the perform method of my Action
class:
ComponentDefinition definition =
DefinitionsUtil.getDefinition(mapping.findForward(success).getPath(),
request,
One more question...
ComponentDefinition definition =
DefinitionsUtil.getDefinition(mapping.findForward(success).getPath(),
request,
getServlet().getServletContext());
definition.putAttribute( title, Overloaded
If the actionForward contains a definition name, the definition is retrieved,
and missing attributes are added to your definition. Otherwise, ActionForward has
no effect, and I think you should be able to return null.
Jim Crossley wrote:
One more question...
ComponentDefinition
I've just started using Tiles, and I really like it.
I want to be able to overload my attributes in my struts actions prior
to forwarding to the tiles definitions, but I'm having some trouble.
I found this message in the archives:
First, check that you use tilesForStruts1.0.jar, as you are using Struts1.0.1.
Second, check if your tiles/struts1.0.1 installation works :
* install tiles-doc.jar or struts-tiles.jar
* replace WEB-INF/lib/struts.jar with struts.jar from 1.0.1
* replace tiles.jar with
I don't mean to be a bondhead, but all I did was copy the
tiles-doc.jar to Tomcat's webapps directory. Wouldn't it be bundled
with the correct struts version?
The page, /test/testStrutsAction.jsp, *does* run correctly, but
/test/testAction.do does not. It's the latter that seems to be what I
tiles-doc.jar is shipped with Struts1.1 previous than 15 jan, and is ready to run. So
you can try the mentioned url test directly on it, and it should run. If not, let me
know.
However, you have mentioned that you try to use Tiles with Struts1.0.1. If true, you
need to use
Cedric Dumoulin [EMAIL PROTECTED] writes:
tiles-doc.jar is shipped with Struts1.1 previous than 15 jan, and is
ready to run. So you can try the mentioned url test directly on it,
and it should run. If not, let me know.
This runs:
http://localhost:8080/tiles-doc/test/testStrutsAction.jsp
Ok, after looking at testStrutsAction.jsp, I realized that
testAction.do is not doing exactly what I thought it was, and invoking
it standalone was never going to work anyway.
I'm now beginning to think that what I really need is a Controller, so
I'm going to focus my efforts there for now. The
So your install seem to work perfectly. Sorry for the wrong response before, it
is what happen when you do to much things in the same time.
It is normal that the componentContext is not found if you access directly the
action (with *.do). The context is set when the tile is inserted, or
Jim Crossley wrote:
I'm now beginning to think that what I really need is a Controller, so
I'm going to focus my efforts there for now. The docs mention that a
Controller could be implemented as a Struts action. Does that require
the Action to implement the Controller interface or is
Thanks, Cedric. I got this to work in the perform method of my Action
class:
ComponentDefinition definition =
DefinitionsUtil.getDefinition(mapping.findForward(success).getPath(),
request,
12 matches
Mail list logo