• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Unable to find the path attribute files

 
Ranch Hand
Posts: 629
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Author
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
It's a tile definition, most likely.
 
Arjun Reddy
Ranch Hand
Posts: 629
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
This is my favorite tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic