File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Struts and the fly likes Tiles not working> Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Tiles not working>" Watch "Tiles not working>" New topic

Tiles not working>

Rishabh Gogia

Joined: Jan 17, 2012
Posts: 4

I am creating a login page using struts 1.3.10. In the loginAction class I am giving mapping.findForward("welcome"); This then looks up the global forwards definition in struts-config.xml, which i have given as
<forward name="welcome" path="/"/>
Next in action mappings i give <action path="wel" forward="" />. The is defined in tiles-defs.xml as

<definition name="main.layout" path="/mainLayout.jsp">
<put name="header" value="/header.jsp"/>
<put name="info" value="/info.jsp"/>
<put name="menu" value="/menu.jsp"/>
<put name="body" value=""/>
<put name="footer" value="/footer.jsp" />

<definition name="" extends="main.layout">
<put name="title" value="Welcome"/>
<put name="body" value="/welcome.jsp"/>
I have created both the welcome.jsp and the mainLayout.jsp pages, but when i click on the login button on the login page, I get a "The website cannot display the page" error. Any help would be highly appreciated.
ganapathi pudi

Joined: Apr 29, 2012
Posts: 10
add tiles listener in web.xml

put plugin jar

I agree. Here's the link:
subject: Tiles not working>
It's not a secret anymore!