This week's book giveaway is in the Design forum.
We're giving away four copies of Design for the Mind and have Victor S. Yocco on-line!
See this thread for details.
Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Unable to find the path attribute files

 
Arjun Reddy
Ranch Hand
Posts: 629
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

I am looking at struts-config.xml file and I am unable to find the path attribute file. I did (cntrl shift r) and typed in the file name but I am unable to find it. Am I doing something wrong?

Thanks.
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Control-Shift-R? Path attribute file?

The first one is IDE-specific and has nothing to do with Struts. I'm not sure what you mean by "path attribute file", it depends on what the actual mapping is. Without more information it's difficult to help.
 
Arjun Reddy
Ranch Hand
Posts: 629
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
David Newton wrote:Control-Shift-R? Path attribute file?

The first one is IDE-specific and has nothing to do with Struts. I'm not sure what you mean by "path attribute file", it depends on what the actual mapping is. Without more information it's difficult to help.


Sorry David for the confusion. The action mapping looks something like



and I don't understand the path="times.access.page". I know this is the page we have to go to when the forward name is access but I am unable to find the file times.access.page. I did (cntrl shift r) and it did not work. I also did search-->file --> name of the file as times.access with the file name extension *.pages but still could not find it.

Thanks.


 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It's a tile definition, most likely.
 
Arjun Reddy
Ranch Hand
Posts: 629
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
David Newton wrote:It's a tile definition, most likely.


You are correct David :) It's a tile's definition and I found it in the tiles-def.xml file. So what does it mean by having the tiles definition in the path attribute like above? I don't understand that. I used to think that you know, the definition is inserted into the display page using the insert tag. Also, I see something like abc.do too in the path attribute at some places. Can you enlighten me?

Thanks.
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think you need to go through one of the many Struts 1 tutorials on the net--they'll answer all of these very basic questions and probably save you quite a bit of time.

A tiles mapping as the "path" attribute value means the tile will be rendered.

The ".do" is the default Struts 1 URL extension.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic