Urgent: Want to get the directory listing

Hi,
My iAS and iWS reside on separate unix machines.
My pdf files being a static content reside on iWS.
My application which is deployed on iAS, wants to
know the names of the pdf files residing on iWS.
Can anyone tell me, as to whether there is any way
for an application deployed on iAS to get the directory
listing of files residing on a separate machine.
Is there any API which will be of help ?.
I guess there must be some APIs associated with the
web connector installed on the machine where iWS is installed.
Regards,
Amar.

<i>Can anyone tell me, as to whether there is any way
for an application deployed on iAS to get the directory
listing of files residing on a separate machine.</i>
No. More specifically, the appserver doesn't have any special awareness of external filesystems. (The webconnector does not have any API's that would expose the webserver's files. That would be a huge security violation.)
You could always NFS mount the webserver so that the appserver could see it. This has some security concerns, but you are going to have security concerns anytime that you are exposing your webserver's files directly.

Similar Messages

  • How can I get the directory(or folder) name?

    Hello. I want to get directory name using Labwindows CVI. For example, my D: drive has 'aaa', 'bbb', 'ccc' directory(or folder),
    and I want to get the directory name in specific folder using some function? Is there any function knowing the dirctory name?

    Yes !
    Thanks,  it worked !
    Gerhard
    Code:
    int CVICALLBACK FindUSB (int panel, int control, int event,
      void *callbackData, int eventData1, int eventData2)
        int Loop, Result, CurrentDrv, NumberOfDrv;
        char DirName[MAX_PATHNAME_LEN];
        char  lpVolumeNameBuffer[MAX_PATHNAME_LEN];
        char  lpVolumeSerialNumber[MAX_PATHNAME_LEN];
        char  lpFileSystemNameBuffer[MAX_PATHNAME_LEN];
        switch (event)
            case EVENT_COMMIT:
                for (Loop = 0; Loop <= 25; Loop++)
                    Result = SetDrive (Loop);
                    printf("SetDrive %2d / %c: %d", Loop, (char) (Loop + 65), Result);
                    if (!Result)
                        Result = GetDrive (&CurrentDrv, &NumberOfDrv);
                        printf("   GetDrive %c: %d  %d", (char) (CurrentDrv + 65), NumberOfDrv,  Result);
                        Result = GetDir (DirName);
                        if (!Result)
                            printf("   Dir: %s", DirName);
                            GetVolumeInformation(    NULL,                                // lpRootPathName,         
                                                                    lpVolumeNameBuffer,        // lpVolumeNameBuffer,     
                                                                    300,                                 // nVolumeNameSize,        
                                                                    NULL,                               // lpVolumeSerialNumber,   
                                                                    NULL,                               // lpMaximumComponentLength
                                                                    NULL,                               // lpFileSystemFlags,      
                                                                    lpFileSystemNameBuffer,  // lpFileSystemNameBuffer, 
                                                                    300);                              // nFileSystemNameSize)
                            printf("   VolumeName: %s", lpVolumeNameBuffer);
                    printf("\n");
             break;
        return 0;

  • Get the file list of a given directory

    does anyone know how to get the file list of a given directory? I tried "list"/"filelist" but the class not found.
    THanks!

    What made you assume that there exist classes called list or filelist etc.
    Do you read API documentation etc ?
    Anyways, here is a hint java.io.File.listFiles()

  • I did a backup from my 3G and want to get the backup now on my iPhone 4, but the backup from the old 3G is not shown as an option to configurate. How do I get the information on my new phone?

    I did a backup from my 3G and want to get the backup now on my iPhone 4, but the backup from the old 3G is not shown as an option to configurate. How do I get the information on my new phone?

    First, back up your old iphone manually:
    Disable autosync in iTunes, connect your phone to your new computer and right click on it in the device list and choose backup. iTunes will backup your phone without syncing.
    Transfer your purchases the same way, choosing "transfer purchases" this time.
    When you connect your old phone for the first time, all media content will be erased. But you can restore your settings and app data from your manual backup afterwards.
    Don't forget to set up at least one contact and event on your new computer to be able to merge calendars and contacts when you sync the phone for the first time.
    About backups and what's saved: http://support.apple.com/kb/HT1766
    How to back up and restore: http://support.apple.com/kb/HT1414
    How to download apps for free again:http://support.apple.com/kb/HT2519
    After that, connect your new phone and let iTunes set it up. iTunes will detect the old 3G backup and ask you, if you want to use it to restore the info on your new iphone. If you agree, all settings and data will be present after the process is finished.
    This is also explained in this article: http://support.apple.com/kb/HT4137

  • URGENT - how to get the checkbox selected data from datatable.

    Hi
    I have some dynamic data. which will be displayed as checkbox. User can select the checkboxes in jsp. after selection when I submit the page I wanted to get the list of checkbox data the user selected.
    Here is the following code. when I submit the form the method which is mapped in bean (dostuff() method) is not calling. it is simply displaying the same page. Could you please tell me where I am doing wrong.
    please give me suggestion what I should to get the checkbox data in bean.
    My Code JSP:
    <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
    <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
    <f:view>
    <h:form>
    <h:dataTable id="xxx" var="person" value="#{checkboxBean.beans}" >
    <h:column><h:selectBooleanCheckbox value="#{person.checked}"/></h:column>
    <h:column><h:outputText value="#{person.id}"/></h:column>
    </h:dataTable>
    <h:commandButton id="details" action="#{checkboxBean.doStuff}" value="do Stuff"></h:commandButton>
    </h:form>
    </f:view>
    public class CheckboxBean {
    private static final Logger logger = Logger.getLogger(CheckboxBean.class);
    private List beans = null;
    public CheckboxBean() {
    logger.debug("CheckboxBean()");
    public String doStuff() {
    logger.debug("doStuff()");
    logger.debug("Some Bean selected data :" );
    return "test";
    public List getBeans() {
    beans = new ArrayList();
    SomeBean[] someBeans = new SomeBean[3];
    someBeans[0] = new SomeBean("first Person", false);
    someBeans[1] = new SomeBean("2nd Person", true);
    someBeans[2] = new SomeBean("third person", false);
    beans.add(someBeans[0]);
    beans.add(someBeans[1]);
    beans.add(someBeans[2]);
    logger.debug("Inside getBeans()");
    return this.beans;
    <managed-bean>
    <description>Checkbox bean.</description>
    <managed-bean-name>checkboxBean</managed-bean-name>
    <managed-bean-class>com.view.bean.CheckboxBean</managed-bean-class>
    <managed-bean-scope>session</managed-bean-scope>
    </managed-bean>
    * Created on Mar 17, 2006
    * TODO To change the template for this generated file go to
    * Window - Preferences - Java - Code Style - Code Templates
    package com.view.bean;
    public class SomeBean {
    private boolean checked = false;
    private String id ;
    public SomeBean() {
    public SomeBean(String anId, boolean bool) {
    super();
    this.id = anId;
    this.checked = bool;
    public String getId() {
    return this.id;
    public void setId(String id) {
    this.id = id;
    public boolean isChecked() {
    return this.checked;
    public boolean getChecked() {
    return this.checked;
    public void setChecked(boolean checked) {
    this.checked = checked;
    public String toString() {
    return "Id: " + id + ", checked :" + checked;
    }

    Hello,
    If you post in ASP.NET forums, you'll get more help.
    Thanks for your understanding.
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • How to get a directory listing in XE?

    So how would you best get a directory listing?
    There was a lovely thread about using dbms_scheduler to make external calls:
    Re: External procedure calls supported?
    Which discussed how to run an external prcoedure. So using that technique would an approach be:
    create procedure get_dir(p_dir varchar2)
    --get sequence for directory call
    --call 'synronous dbms_scheduler that executes "ls -l > /tmp/listing[sequence]
    --create external table temp_dir_[sequence]
    --load it into a global temp table ala ASKTOM http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:439619916584
    --drop the external table
    Someone on Asktom said they were going to do it via dbms_pipe but was not forthcoming with an example.
    I'm not sure I like creating and dropping an external table every time this procedure is called and I feel I am missing a technique (or a good idea) to make this work effectively.
    Kind Regards,
    James
    Got the link to the 'External procedure calls support' wrong.
    Message was edited by: jcrockart

    Ok.
    Well here is the solution... Can I make it better?
    FROM OS (oracle user):
    vi ~/get_dir.sh
    #!/bin/sh
    ls $1 > /tmp/$2
    exit 0
    ##end
    FROM SYS:
    create directory OS_TMP as '/tmp';
    grant read,write on directory OS_TMP to hr;
    grant create table to hr;
    FROM HR:
    create global temporary table DIR_LIST
    ( filename varchar2(255) )
    on commit delete rows
    --create the following:
    CREATE OR REPLACE procedure get_dir_list (
    p_directory     in varchar2
    IS
    l_jobname VARCHAR2 (100);
    BEGIN
         l_jobname := DBMS_SCHEDULER.generate_job_name (prefix => 'get_dir_list');
         dbms_output.put_line(l_jobname);
         --dbms_output.put_line('ls '||p_directory||' > /tmp/blah');
         --creat syncrhous job
         DBMS_SCHEDULER.create_job (
              job_name => l_jobname,
              job_type => 'EXECUTABLE',
              job_action => '/home/oracle/get_dir.sh',
              number_of_arguments => 2,
              enabled => FALSE,
              comments => 'directory listing for '||p_directory);
         DBMS_SCHEDULER.set_job_argument_value (l_jobname, 1, p_directory);
         DBMS_SCHEDULER.set_job_argument_value (l_jobname, 2, l_jobname);
         -- Run job synchronously.
         DBMS_SCHEDULER.run_job (job_name => l_jobname, use_current_session => TRUE);
         -- Remove job after run
         DBMS_SCHEDULER.drop_job (l_jobname);
         --create external table
         execute immediate '
              create table '||l_jobname||'_ext
              file_name               varchar2(1000)
              organization external (
              type          oracle_loader
              default     directory os_tmp
              access parameters (
                   records delimited by newline
                   fields terminated by '',''
                   missing field values are null
                   file_name)
              location ('''||l_jobname||''')
              reject limit unlimited';
              execute immediate '
              INSERT INTO DIR_LIST(FILENAME) select file_name from '||l_jobname||'_ext
    END;
    --test it
    exec get_dir_list('/home/oracle')
    GET_DIR_LIST14
    PL/SQL procedure successfully completed.
    hr>select * from dir_list;
    FILENAME
    apex
    apex_3.0.1.zip
    get_dir.sh
    go.log
    go.txt
    test.sh
    6 rows selected.
    hr>
    Apologies for butchering Dietmar Aust dbms_schedule example.
    I can't drop the external table as the data in the global temporary table will be lost, so I will have to periodically clean up after this procedure.
    Please somebody feel free to give me the one line solution ;-)
    Regards,
    James

  • How do I get the directory name from my program?

    Hi,
    I want to indentify the directory name where my executable is running from the program.
    Is there any API similar to GetCurrentDirectory in Windows.
    Thanks,
    Ram

    I think you may be looking for the getcwd(3C) call.
    That call will get you the current working directory
    for your process. See the man page for details (man
    getcwd).
    Alan
    Sun Developer Technical Support
    http://www.sun.com/developers/support

  • How do I get the directory name that a class is located in?

    How do I get the directory name that a class is located in? I have a class located under /com/dhcmc and I want to be able to retrieve the "/com/dhcmc" that the class is residing under so that I can then use this directoy name to build a relative path name for the other directories supporting the application such as the images directory etc i.e.
    |---com
    |   \---dhcmc       (my class resides here)
    |       +---images  (supporting app dirs under the class dir)
    |       +---config  (supporting app dirs under the class dir)

    You can try the methods.
    Class.getClassLoader()
    Class.getResourceAsStream()
    Class.getResource()
    You probably wont get the complete directory path, but you might
    be able to load the files relative to your classes directory.

  • Divide a string in order to get the distinct list level.

    Hi,
    I want to divide a string in order to get the distinct list level to relate this with a category table.
    The size of my list is dynamic and because of this I’m unable to find a way to do this!
    Here goes an example of what I need to do:
    Consider the following list:
    Category                Category_ID
    Age                     1
    Less than 3 months      1.1
    Less than 9 months      1.2
    Less than 1 year        1.3
    Risk                    2
    Danger                  2.1
    High                    2.1.1
    medium                  2.1.2
    low                     2.1.3
    If I have a row that has category_id "2.1.3" I want to present values as:
    "Risk.Danger.Low"
    If I have a row that has category_id "1.1" I want to present values as:
    "Age.Less than 3 months"Any hint on what I should search in order to accomplish this?
    This will be used to produce a report. This report will contain a few thousand rows and the categories will be around 100.
    Thanks,
    Ricardo

    Hello
    I think this is a job for sys_connect_by_path....
    with p as
    (   select 'Age'             descr  ,'1' cat from dual union all
       select 'Less than 3 months'      ,'1.1' cat from dual UNION ALL
       select 'Less than 9 months'      ,'1.2' cat from dual union all
       select 'Less than 1 year'        ,'1.3' cat from dual union all
       select 'Risk'                    ,'2' cat from dual union all
       select 'Danger'                  ,'2.1' cat from dual union all
       select 'High'                    ,'2.1.1' cat from dual union all
       select 'medium'                  ,'2.1.2' cat from dual union all
       select 'low'                     ,'2.1.3' cat from dual
    SELECT
        cat,
        LTRIM(SYS_CONNECT_BY_PATH(descr,'.'),'.') route
    FROM
            SELECT
                descr,
                cat,
                SUBSTR(cat,1,INSTR(cat,'.',-1)-1) parent
            FROM
                p
    START WITH
        parent IS NULL
    CONNECT BY
        PRIOR cat = parent
    SQL> with p as
      2  (   select 'Age'             descr  ,'1' cat from dual union all
      3     select 'Less than 3 months'      ,'1.1' cat from dual UNION ALL
      4     select 'Less than 9 months'      ,'1.2' cat from dual union all
      5     select 'Less than 1 year'        ,'1.3' cat from dual union all
      6     select 'Risk'                    ,'2' cat from dual union all
      7     select 'Danger'                  ,'2.1' cat from dual union all
      8     select 'High'                    ,'2.1.1' cat from dual union all
      9     select 'medium'                  ,'2.1.2' cat from dual union all
    10     select 'low'                     ,'2.1.3' cat from dual
    11  )
    12  SELECT
    13      cat,
    14      LTRIM(SYS_CONNECT_BY_PATH(descr,'.'),'.') route
    15  FROM
    16      (
    17          SELECT
    18              descr,
    19              cat,
    20              SUBSTR(cat,1,INSTR(cat,'.',-1)-1) parent
    21          FROM
    22              p
    23      )
    24  START WITH
    25      parent IS NULL
    26  CONNECT BY
    27      PRIOR cat = parent
    28  /
    CAT   ROUTE
    1     Age
    1.1   Age.Less than 3 months
    1.2   Age.Less than 9 months
    1.3   Age.Less than 1 year
    2     Risk
    2.1   Risk.Danger
    2.1.1 Risk.Danger.High
    2.1.2 Risk.Danger.medium
    2.1.3 Risk.Danger.lowHTH
    David
    Edited by: Bravid on Sep 2, 2011 2:50 PM

  • How to get the directory name where the class resides

    I have following directory structure.
    c:\one\two\three\four\five\Test.java
    package name for Test.java is four.five
    When I run, four.five.Test, I want to get the compelte path name where currently the Test.class is running i.e. "c:\one\two\three\four\five\"
    so that if I move four.five.Test.java into some different directory structure, I should always get the complete path name.
    Thanks In Advance
    Sachin

    package x.y;
    import java.io.File;
    public class Test {
        public static void main(String[] args) {
            System.out.println(new File(Test.class.getResource("").getFile()).getAbsolutePath());
    }

  • Urgent: How to get the names of all menu items

    I have a .mmb menu module.
    There are many menus and submenus in it.
    Now I want to get the names of all menu items available in the module using sql or pl/sql.
    Actually I need to store these names in another table as it is. That is why I want get them programmatically.
    Any solution please.... bit urgent
    Thanks

    When I needed the same, I wrote my own application using
    Forms API (Windows,Forms 6.0,6i). Perhaps it will help
    you.
    Let me know your e-mail and I'll send it.

  • I want to get the source code of the examples of berkeley DB with Java

    Hi
    I want to get the source code of the examples of berkeley DB with Java
    Thanks and Regards
    Rahul

    Look in the "examples" directory, in the BDB JE package that you downloaded.
    --mark                                                                                                                                                                           

  • I downloaded an update from creative suite 5.5. to 6.0 and then switched computers for a few months. looks like all of the applications have not disappeared. maybe a trial was uploaded instead of the actual updates? anyway, i just want to get the applicat

    i downloaded an update from creative suite 5.5. to 6.0 and then switched computers for a few months. now I am back using the original computer and it looks like all of those Adobe applications (both 5.5 and 6.0) have disappeared. Maybe a "trial" was uploaded instead of the actual updates? Anyway, i just want to get the applications back onto my computer. i tried to enter the serial numbers on my original packaging but systems side error message from Adobe says they were already "redeemed" (which makes sense bc I already downloaded the updates. Apparently there is no phone customer service for Creative Suite anymore. ARRGGG. Any and all suggestions welcome!
    -Michele

    there is no update from 5.5. to 6.0.
    you could have upgraded from 5.5 to 6.0, but you would know that because you paid money.
    assuming you paid no money for a 6.0 upgrade, you still have your 5.5 license.  uninstall clean and reinstall 5.5 per http://helpx.adobe.com/creative-suite/kb/cs5-cleaner-tool-installation-problems.html
    Downloads available:
    Suites and Programs:  CC 2014 | CC | CS6 | CS5.5 | CS5 | CS4 | CS3
    Acrobat:  XI, X | 9,8 | 9 standard
    Premiere Elements:  13 | 12 | 11, 10 | 9, 8, 7
    Photoshop Elements:  13 |12 | 11, 10 | 9,8,7
    Lightroom:  5.6| 5 | 4 | 3
    Captivate:  8 | 7 | 6 | 5
    Contribute:  CS5 | CS4, CS3
    Download and installation help for Adobe links
    Download and installation help for Prodesigntools links are listed on most linked pages.  They are critical; especially steps 1, 2 and 3.  If you click a link that does not have those steps listed, open a second window using the Lightroom 3 link to see those 'Important Instructions'.

  • I currently have the Mac OS X v10.5.8 and want to get the new operating system but I don't know how to do it. I don't have the Mac App Store and can't get it because of my version. What do I do?

    I currently have the Mac OS X v10.5.8 and want to get the new operating system but I don't know how to do it. I don't have the Mac App Store and can't get it because of my version. What do I do?

    The Early 2006 model 1,1 Core Duo can only run a maximum of 10.6 Snow Leopard. The models Late 2006 Core 2 Duos 2,1 through Early 2008 4,1 can only run a maximum of 10.7 Lion. The Late 2008 model 5,1 Aluminum Unibody through the Mid 2010 White Unibody model 7,1 can run 10.8 Mountain Lion.
    To see which model you have go to the Apple in the upper left corner and select About This Mac, then click on More Info. When System Profiler comes up check the Model Identifier and post it back here.
    The Snow Leopard 10.6 DVD should still be available from Apple for $20. You will have to call Apple Customer Care 1-800-692-7753 or 1-800-676-2775 to purchase it. It may still be in the Legacy Products list.
    If they no longer have any in stock you will have to buy it from eBay or Apple resellers that still have stock. But you will have to pay a premium since the DVDs are no longer being made. Snow Leopard DVDs are already up to $100 on Amazon.
    http://www.ebay.com/sch/i.html?_nkw=10.6+snow+leopard&_sacat=0&_odkw=mac+os+10.6 &_osacat=0
    Once you are at 10.6.8 Lion is still available from Apple. You will have to call Apple Customer Care 1-800-692-7753 or 1-800-676-2775. to purchase it. Then within 3 days you will get an email with a code which you can use to download Lion from the App Store.  The price is still $29. You must have at least a model 2,1 MacBook.
    Lion will require at least 2gb of RAM but really needs 4gb to run smoothly.
    As for third party programs see this list for compatibility with 10.7 http://roaringapps.com/apps:table
    Also Lion doesn't run any Power PC programs. To see if you have any Power PC programs go to the Apple in the upper left corner and select About This Mac, then click on More Info. When System Profiler comes up select Applications under Software. Then look under Kind to see if any of your applications are listed as Power PC. Universal and Intel will run under Lion.
    Before Mac switched to Intel processors in 2006 they used Power PC processors from 1994 to 2005. Power PC 601 through 604, G3, G4 and G5. Applications written for the Power PC processors need the application called Rosetta to run on Intel processors. This was part of the Operating System in 10.4 and 10.5 but was an optional install in 10.6. With 10.7 Lion Apple dropped all support for Power PC applications.

  • How to disable the Directory listing for the whole server or a particular a

    Please let me know how to disable the Directory listing for the whole server or a particular application.
    Thank You

    I want to disable the tab focusing( tab index) for a JTextField objectsLook through the API and find methods with the word "focus" in the method name.
    Also can u tell me about how to change the tab index orders for JTextFields."How to Use the Focus Sub System":
    http://java.sun.com/docs/books/tutorial/uiswing/misc/focus.html

Maybe you are looking for

  • Acrobat 4 Reader von CD-ROM ausführen

    pdfzone.de veröffentlicht kostenloses Manual "Acrobat 4 Reader von CD-ROM ausführen" Anwender aus ganz unterschiedlichen Bereichen verwenden heute Adobes Dateiformat PDF. Das Programm Acrobat Reader zum Anzeigen von PDF-Dokumenten ist millionenfach v

  • Create a Transaction Variant

    Hi Gurus, My requirement is to create a transaction (ZSE16) similar to SE16 the only difference is to disable the Create entries button in ZSE16. I got an approach using Transaction variant but I am struck up with it Guide me how to disable the creat

  • F90 -fast error

    My system is Red hat enterprise 5, and my CPU is X5667, memeory is 48G. When I install Sunstudio update 1 on my system, I use f90 with the option of '-fast'. i usually use f90 as 'f90 -g -fast -xautopar *.f90'. '-g' and '-autopar' is ok for my system

  • Increased freezes in OS 9.2.2  on MDD

    My Mirror Drive Door G4 had it's power supply replaced. Since then, freezes have occured, but I'm not sure the PS replacement had anything to do with it, and the shop said it looks more like a hardware conflict or a software issue. I'm at a loss for

  • Quicktime won't work in Internet Explorer

    Everytime i log into a site that has a quicktime streaming video, all I get is the quicktime symbol with a question mark over it. what could i do to fix this? I have quicktime pro and have reinstalled the software.