Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Tiles newbie, please help

 
Vidya S Sreenivasan
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 4727
Mac Ruby VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think what you are tring to do is the equivalent of <welcome-file-list> in web.xml
 
Srikanth Shenoy
author
Ranch Hand
Posts: 184
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You have
<forward name="/Welcome" path=".loginDef">
It should be
<forward name="/Welcome" path="/.loginDef">
 
Srikanth Shenoy
author
Ranch Hand
Posts: 184
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Also, are you using TilesRequestProcessor?
 
Marc Peabody
pie sneak
Sheriff
Posts: 4727
Mac Ruby VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I believe neither attribute of the forward tag requires a slash. I sure don't use 'em.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic