This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
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

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’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link:
subject: Tiles not working>
It's not a secret anymore!