File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Struts and the fly likes Tiles newbie, please help Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Tiles newbie, please help" Watch "Tiles newbie, please help" New topic
Author

Tiles newbie, please help

Vidya S Sreenivasan
Greenhorn

Joined: Jan 28, 2002
Posts: 4
Hi,
I am new to Tiles.
I am trying to do a Global Forward to a definition declaration.
I have another test app without tiles working fine, in that one, I forward it to index.jsp. But I want to use a global forward in this application, forwarding to a a definition, (so that any user coming in will be taken to the login page).

I have my tiles definition file as follows -

I have my struts config file as follows -

I am getting a 404- Error 404: File not found: {0}
I checked the paths, all the files are there. What file is it looking for?
In my test Application without tiles that works fine, this is what the global forward looks like.

What am I doing wrong?
Thanks in advance,
Vidya
Marc Peabody
pie sneak
Sheriff

Joined: Feb 05, 2003
Posts: 4727

I think what you are tring to do is the equivalent of <welcome-file-list> in web.xml


A good workman is known by his tools.
Srikanth Shenoy
author
Ranch Hand

Joined: Jan 24, 2004
Posts: 184
You have
<forward name="/Welcome" path=".loginDef">
It should be
<forward name="/Welcome" path="/.loginDef">


Srikanth Shenoy
Author of Struts Survival Guide : Basics to Best Practices
Srikanth Shenoy
author
Ranch Hand

Joined: Jan 24, 2004
Posts: 184
Also, are you using TilesRequestProcessor?
Marc Peabody
pie sneak
Sheriff

Joined: Feb 05, 2003
Posts: 4727

I believe neither attribute of the forward tag requires a slash. I sure don't use 'em.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Tiles newbie, please help