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 Unable to find the path attribute files Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Unable to find the path attribute files" Watch "Unable to find the path attribute files" New topic
Author

Unable to find the path attribute files

Arjun Reddy
Ranch Hand

Joined: Nov 10, 2007
Posts: 627
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.


Be Humble... Be Nice.
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

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

Joined: Nov 10, 2007
Posts: 627
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

Joined: Sep 29, 2008
Posts: 12617

It's a tile definition, most likely.
Arjun Reddy
Ranch Hand

Joined: Nov 10, 2007
Posts: 627
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

Joined: Sep 29, 2008
Posts: 12617

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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Unable to find the path attribute files
 
Similar Threads
Problem in jar file
Why wasn't my post deleted?
Struts 1.24 - Problem with 'module' attribute of html:rewrite
Unable to set classpath for log4j
How do i get the pagesize value in the display tag from the properties file.