Jakarta Tiles Question

Hi,

I am a newbie to jakarta tiles. I built an application with tiles framework. In the layout definitions file, I have entry for jsps(for header, navigator, body, footer). It is displaying all jsps in the same page, well organised.

Now I have to get data from action class before for content body(above) jsp page. So I replaced the previously jsp body page with struts action mapping call. When I got and click link on navigation bar, it is not showing any error accept a white page in body area.

Could anybody help me out here. I can provide more info, if required.

Tiles definition xml file entries:

]]>
<put name="BodyContent" value="/applaunches/showMoveForm.do?methodToCall=showMoveForm" />
]]>

-


struts-config.xml entry:

]]>


Thanks in advance,
ashruf

2 comments
Comment actions Permalink

This is the forum for IntelliJ IDEA, not for general Java or web framework
questions. You should post this question on a Jakarta or Tiles forum.

Hussain Mohammed Ashruf wrote:

Hi,

I am a newbie to jakarta tiles. I built an application with tiles framework. In the layout definitions file, I have entry for jsps(for header, navigator, body, footer). It is displaying all jsps in the same page, well organised.

Now I have to get data from action class before for content body(above) jsp page. So I replaced the previously jsp body page with struts action mapping call. When I got and click link on navigation bar, it is not showing any error accept a white page in body area.

Could anybody help me out here. I can provide more info, if required.

Tiles definition xml file entries:

<!-- Moves Layout definition -->
<definition name="move_SiteLayoutDef_en_US" path="/jsps/tiles/move_SiteLayout_en_US.jsp">
<put name="Header" value="/jsps/tiles/header.jsp" />
<put name="Footer" value="/jsps/tiles/footer.jsp" />
<put name="Welcome" value="/jsps/tiles/Welcome.jsp" />
<!-- <put name="BodyContent" value="/html/moves.htm" /> -->
<put name="BodyContent" value="/applaunches/showMoveForm.do?methodToCall=showMoveForm" />
<put name="SpecialHotOffer" value="/jsps/tiles/SpecialOffer.jsp" />
<put name="NavigationBar" value="/jsps/tiles/NavigationBar.jsp" />
<put name="LabContent" value="/jsps/tiles/LabIndex.jsp" />
</definition>

---------------------------
struts-config.xml entry:

<action
path="/showMoveForm"
type="com.cig.ce.web.struts.actions.ApplicationsAction"
name="moveForm"
scope="request"
validate="false"
parameter="methodToCall">

<forward
name="success"
path="/jsps/forms/move.jsp"/>
</action>


Thanks in advance,
ashruf

0
Comment actions Permalink

I am a newbie to jakarta tiles....

If you are newbie, it will take while till you will master it really
good, and even then there'll be always small problems.

I would suggest to try and use SiteMesh instead:
http://opensymphony.com/sitemesh/

I was a big Tiles fan, but it took me 10 times less effort to learn and
master SiteMesh. About the development time with SiteMesh not to mention.

Ahmed.

0

Please sign in to leave a comment.