PDA

View Full Version : Directory listing of Folders in pub


bash
06-24-2003, 09:33
Hello,
We have created a few folders in the pub directory of the package. To view the same on the browser, we navigate to the home page of the package, and then add the folder name to the end of the url to display the contents of the folder.

Ex: http://localhost:5555/<packagename>/<desiredfoldername>

This page takes the appearance and look of webmethods but displays the contents of the folder sorted on the filename, without any possibility of changing the same. We are interested in a different sorting order.

Looks like this page is getting created dynamically at runtime. Could any one help me to the source of the same?

Hope I have made my question clear!

Thanks in advance.

Bhavani Shankar

ramendra
06-24-2003, 12:55
Bhavani,
Every package has a default home page located in package/pub/index.
Opening the package in the browser opens the default page unless you specify the name of DSP page you want to access.
Do you want to see the total content of that package in the browser.

Regards
RC

fredh666
06-24-2003, 15:00
The template used to produce the page is in IntegrationServer/lib/dir.html

Maybe load the array of "files" IDatas into a JavaScript variable that you then could sort and display.

Good luck!

bash
06-25-2003, 02:22
Fred,
As stated by you, dir.html uses files IDATA. Wondering how "files" is getting populated. Thanks for the info.

Ram :
I am interested in viewing the contents of all the folders created under the PUB directory of a package. As stated earlier, webMethods gives a possibility of viewing the contents of the all the folders in PUB like an Windows Explorer. Hope I have made my problem clear.

Bhavani Shankar

fredh666
06-25-2003, 08:23
Upon a little more investigation, "files" is a com.wm.util.Table object with columns "type", "name", "date", "size". In DSPs/Template a Table is handled just like a IData[].

It is built directly from an Java File requestedURL.list() call which is sorted. There isn't a way to modify how it is built.