This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes Struts and the fly likes Tiles newbie, please help Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Frameworks » Struts
Reply 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: 4725

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: 4725

I believe neither attribute of the forward tag requires a slash. I sure don't use 'em.
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Tiles newbie, please help
 
Similar Threads
Trying to use Tiles--Little success :-(
Getting Http 404 Error while running Strut Application
Cannot find ActionMappings or ActionFormBeans collection
Struts Without Form Bean
struts-config.xml file errors