You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by rmanchu <rm...@gmail.com> on 2005/04/26 20:14:56 UTC
Action <==> Tile
this is probably very simple but someone please tell me.
i've got the tile-defs set up - [name="classicLayout",
page="/mypage.jsp"]. i've got the jsps set up. my problem is getting
from the action to the tile-def page.
currently my myAction extends struts.Action
where's the connection ???
thanx in advance
riyaz
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: Action <==> Tile
Posted by rmanchu <rm...@gmail.com>.
Dave Newton wrote:
> In the struts configuration file. Instead of using a path to the JSP you
> use the name of the tile. You must also be using the Tiles plugin, as
> detailed in:
i had defined it as that. and the error i get is below. menuAction is
the name of tile definition
Error :: Path menuAction does not start with a "/" character
i've checked whether TilesPlugin is loaded
Apr 26, 2005 2:33:31 PM org.apache.struts.tiles.TilesPlugin
initDefinitionsFactory
INFO: Tiles definition factory loaded for module '/news'.
the logs seems to show that it is indeed loaded
> http://struts.apache.org/userGuide/building_view.html#Tiles
have checked this also. can't see anything wrong
apart from that, i'm working on struts 1.3-dev version. i've included
the relevant sections - unless i'm missing something :(
============
<definition name="baseLayout" path="/common/tiles-baselayout.jsp" >
<put name="title" value="News Publishing Module" />
<put name="header" value="/news/header.jsp" />
<put name="menu" value="menuLayout" />
<put name="content" value="/news/moduleindex.jsp" />
<put name="footer" value="/common/tiles-footer.jsp" />
</definition>
<definition name="menuLayout" path="/common/tiles-menu.jsp" >
<put name="title" value="News Menu" />
<put name="home" value="/index.jsp?content=/welcome" />
<putList name="menuitems">
<item value="Category"
link="/menuaction?menu=Category&form=category" />
<item value="Author"
link="/menuaction?menu=Author&form=author" />
<item value="Picture"
link="/menuaction?menu=Picture&form=picture" />
<item value="Article"
link="/menuaction?menu=Article&form=article" />
</putList>
</definition>
<definition name="menuAction" extends="baseLayout" >
<put name="content" value="/common/simpleformindex.jsp" />
</definition>
============
<action
path="/menuaction"
type="rmanchu.infoportal.actions.MenuAction"
name=""
validate="false"
scope="request"
input="menuAction">
<forward name="success" path="menuAction" />
</action>
============
???
riyaz
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: Action <==> Tile
Posted by Dave Newton <ne...@pingsite.com>.
rmanchu wrote:
> this is probably very simple but someone please tell me.
>
> i've got the tile-defs set up - [name="classicLayout",
> page="/mypage.jsp"]. i've got the jsps set up. my problem is getting
> from the action to the tile-def page.
>
> currently my myAction extends struts.Action
>
> where's the connection ???
In the struts configuration file. Instead of using a path to the JSP you
use the name of the tile. You must also be using the Tiles plugin, as
detailed in:
http://struts.apache.org/userGuide/building_view.html#Tiles
Dave
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org