How to find path of a file in WebDynPro Application

Hello,
I have created a WebDynPro application. In this application i have created an XML file under
src->packages->resources. The resources folder i created myself.
I have also deployed the file on a remote server. This servername & portNumber can change too.
Now i want to get the handle of my XML file (which is present in the same jar) so that i can user it and populate it.
<b>The following code doesnt work:</b>
<i>File file =new File("WebDynProProjectName/resources/filename.xml");</i>
Regards,
Aayush

Hi
  By default it puts it under resources folder. If you want to create your own path then
1. Create the XML file (eg. output.xml) to some location in the server (eg: c:\Test\files)
2. Create a HTTP alias(eg. Test) in the Visual Adminsitrator pointing to the file location (eg: c:\Test\files).
3. Set the linkToURL reference property to http://<<servername>>:50000/Test/<<XML file name>>
For creating the HTTP alias refer to the blog "Creating an HTTP Alias in WAS"
/people/renjith.andrews/blog/2005/03/31/creating-an-http-alias-in-was
Hope this solves your problem.
regards
Ravi

Similar Messages

  • How to split path and filename (file is on application server)

    Searching this forum I found a couple of FM's that apparently only worked for PC files.  Is there a parser function for files w/ the Unix naming convention?

    You could parse it yourself...
    DATA: filepath TYPE char255 VALUE '/usr/<sys_id>/sap/tmp/filename.txt'.
    DATA: path TYPE char255.
    DATA: file TYPE char255.
    DEFINE macro_reverse_string.
      call function 'STRING_REVERSE'
        exporting
          string  = &1
          lang    = sy-langu
        importing
          rstring = &1.
    END-OF-DEFINITION.
    macro_reverse_string filepath.
    SPLIT filepath AT '/' INTO file path.
    macro_reverse_string filepath.
    macro_reverse_string file.
    shift path right by 1 places. path(1) = '/'.
    macro_reverse_string path.
    WRITE:/ filepath.
    WRITE:/ path.
    WRITE:/ file.
    Regards,
    Rich Heilman

  • How to get path of downloaded file?

    Hi,
    I use JDeveloper 11g with ADF.
    I have to download file with original date. If i want to save date i have to zip file. After that to unzip. My queation is: when clien download file how to get path of downloaded file????
    Because, i want to save unziped file on location where client want to download.

    Hi,
    you cannot download a file directly to a client. If this is a requirement then you need a signed Java Applet to handle the download. Otherwise a download dialog is opened for the user to define where to store the file.
    Frank

  • How to find out web content files linked in folio through scripting

    Hi all,
    Please suggest me, how to find out web content files linked in folio through scripting.
    Regards,
    Moorthy

    @Moorthy – can you tell us a bit more? By mentioning "folio", I think you are referring to Adobe Digitial Publishing Suite (ADPS or short: DPS). If yes:
    1. Do you want to analyze Folio files *.folio and get the linked web content files?
    2. Or do you want to check an InDesign file with an overlay and check what files are linked as web content?
    3. Or something else?
    Where is your base problem?
    Packaging the InDesign files and copy/relinking the web content files after the packaging process?
    Uwe

  • How to find that which flat file is belongs to which application server?

    How to find that which flat file is belongs to which application server?

    Hi,
    Search im www.sap-img.com, you will get most of answers.
    Jogdand M B

  • How to append paragraph in text file of TextEdit application using applescript

    how to append paragraph in text file of TextEdit application using applescript and how do i save as different location.

    christian erlinger wrote:
    When you want to print out an escape character in java (java is doing the work in client_text_io ), you'd need to escape it.
    client_text_io.put_line(out_file, replace('your_path', '\','\\'));cheersI tried replacing \ with double slash but it just printed double slash in the bat file. again the path was broken into two lines.
    file output
    chdir C:\\DOCUME~1\
    195969\\LOCALS~1\\Temp\
    Edited by: rivas on Mar 21, 2011 6:03 AM

  • How to find out Db name of perticular web application in sharepoint 2010

    how to find out Db name of perticular web application in sharepoint 2010 to take a backup from sql

    1.  Open the SharePoint 2010 Central Admin application.
    2.  On the SharePoint central administration website, click Application Management.
    3.  In the Databases section, click Manage Content Databases.
    4.  On the Manage Content Databases page, select a web application by clicking the Web Applications drop-down list and choosing a web application.
    5.  Can notice the  available database names for the webapplication. ******************************************************************************************
    Please remember to mark your question as answered &Vote helpful, if this solves/helps your problem
    s p kumar

  • How to find desktop background image file

    I am preparing an old PowerBook G4 laptop to be sold. I had previously lent it to a friend and I am selling it to another friend. The friend to whom I lent it asked me for the desktop image file so he can use it as his desktop on the Mac he owns.
    I shot that photo years ago and I can't find the original .jpg for it, so I am hoping that I can find the desktop version of it before I finish preparing my PowerBook for sale. I have searched everywhere, but that image file does not show up on the PowerBook.
    I figure that since I can see the photo when I am logged in, it must be somewhere, but where? I originally had it in iPhoto, but it was deleted from there at least two years ago. This PowerBook only has one account, so there's not a lot of places to look through.
    If anyone has any pointers on how to find an image file on a PowerBook running Mac OS X 10.4.11, please let me know.

    HI Stanely,
    Try going to System Preferences/Desktop&ScreenSaver. Click the Desktop tab. Now, go thru the folders listed there to see if the image shows up there. If it does, then go to Spotlight and type in the name of the folder where the image was. Spotlight will populate a list for you. At the top of the list click where it says: Show All. A pane will open. Look for the folder, then on the right click the little white circle with an "i" in it. That will give you the path to find the folder where the image resides.
    You can search Spotlight by typing in these extensions: jpg tiff png pict gif bmp psp that's another way to search for an image.
    Also, open a Finder window and look in the Sidebar on the left. Click where it says: Pictures. Might be in there also.
    Carolyn

  • How to find the right XML files

    Hi all
    I need to customize OBIEE according to the custommers needs,Is there any tool to find the xml source files where I can make the changes.
    Currently I'm using 'psoug' to edit the page source code , for example I want to modify those values:
    <tbody>
    <tr>
    <td class="XUISectionHeadingTitle">Columns</td>
    </tr>
    <tr>
    <td class="XUISectionHeadingText">
    Click on column names in the selection pane to add them to the request. Once added, drag-and-drop columns to reorder them. Edit a column's format, formula and filters by clicking the buttons below its name.
    and I don't find the xml file to update it.
    Anyone knows how I can find it?

    *(BIInstallDir)\OracleBI\web\msgdb\l_en\messages*
    Under this path you can find the list of XML files....
    These XMLs are named to indicate what type of info it contain..

  • Finding path to a file easily

    How I easily find a path to a file? Sometimes I want to upload a photo in iphoto to a processing company and it seems hard to find the path to the picture. I can find the pic but not the exact path to it. Same with music and stuff too. Can you click on the pic or music title in itunes and somehow see the file path?

    Sometimes I want to upload a photo in iphoto to a processing company and it seems hard to find the path to the picture.
    You do't have to, simply drag and drop the photo onto your desktop or into a email for a copy of the original file.
    Of course you can select the photo in iPhoto and select email which will downsize the file so it doesn't clog up a persons email allocation.
    I can find the pic but not the exact path to it.
    In the Finder, open a window by double clicking on your hard drive.
    From the View menu, select Customize Toolbar
    You can drag the Path button to your toolbar, click done
    Now you can use this when you click on a file to see the path
    Same with music and stuff too. Can you click on the pic or music title in itunes and somehow see the file path?
    In iTunes simply drag and drop a song onto your desktop to make a copy, you can do a Get info in iTunes and click Summary for the path.
    Mac OS X is based upon the operating system NeXT, which a lot of drag and dropping occurs between programs, instead of going after the original file. You can use Spotlight to find anything you wish as well.
    Perhaps a good book to read is something like Mac OS X: The Missing Manual or iLife educational books. See what Apple has to offer.
    Learn to clone your boot drive to save yourself from disaster
    http://homepage.mac.com/hogfish/Personal11.html

  • How to find path of third party applicatoin

    we can run any third party application using Process p = Runtime.getRuntime().exec.... etc
    But exact location of that program executable I do not know because it is upto user where he installs C drive or D drive or so.
    How to find the path of that third party application such as Yahoo Messenger "YahooMessenger.exe"
    Thank you.
    Edited by: wcomet on May 17, 2008 11:06 AM
    Edited by: wcomet on May 17, 2008 11:07 AM

    Since you'va already made Java non-portable by using Runtime, you're probably bbest off using the OS's capabilities to find the program's path.
    If the 3rd party program was always contained in Java's classpath list, you could use Class.getResource().

  • How to find out the Trace file

    Hi Dba's
    I need to find out the trace file with the Request id. how can i find out it?
    Thanks

    There are many ways to create a trace file in the apps. Pl provide details on how you enabled trace, as that will determine where the trace file is created.Concurrent requests trace files are always created under USER_DUMP_DEST directory.

  • Function Module to find the Path of the file in the Application Server

    Hi All,
            Any function module available to find the path of the file stored in the application server. Please let me know.
    Thanks.

    Check this code:
      DATA: dl_file TYPE ibipparms-path.    " File name
      CONSTANTS: c_dir       TYPE  rlgrap-filename.
    * F4 filename for Application server
        CALL FUNCTION '/SAPDMC/LSM_F4_SERVER_FILE'
          EXPORTING
            directory        = c_dir
            filemask         = ' '
          IMPORTING
            serverfile       = dl_file
          EXCEPTIONS
            canceled_by_user = 1
            OTHERS           = 2.
        IF sy-subrc <> 0.
          MESSAGE e000 WITH 'Error while getting the file name'(006).
          EXIT.
        ELSE.
          p_file =  dl_file.
        ENDIF.
    Thanks & Regards,
    Siri.
    Message was edited by:
            Srilatha T

  • How to find username from trace file for deadlock due to user

    This is the info from the trace file.
    *** 2003-08-18 08:07:40.590
    *** SESSION ID:(560.60728) 2003-08-18 08:07:40.560
    DEADLOCK DETECTED
    Current SQL statement for this session:
    SELECT S.AVAILABLE,GET_AVAIL(S.PRODUCT_ID),S.ON_HAND,S.W_PL,S.PRODUCT_GROUP,S.SIZE_ID,S.COLOR_ID,S.ONEZ,S.COST,IS_IT_KIT(:b1),
    NVL(PR.R_AVAIL,0),NVL(PR.R_SOLD,0),NVL(PR.UNIT_OF_MEASURE,'QTY'),NVL(DECODE(PR.AV_CT,0,1,PR.AV_CT),1) FROM ACNTV.SKU S,ACNTV
    .PRERED_QUANTITIES PR WHERE S.PRODUCT_ID = PR.PRODUCT_ID (+) AND S.PRODUCT_ID = :b1 FOR UPDATE OF S.ON_HAND,
    S.W_PL,PR.R_AVAIL
    The following deadlock is not an ORACLE error. It is a
    deadlock due to user error in the design of an application
    or from issuing incorrect ad-hoc SQL. The following
    information may aid in determining the deadlock:
    Deadlock graph:
    ---------Blocker(s)-------- ---------Waiter(s)---------
    Resource Name process session holds waits process session holds waits
    TX-0021004b-000125d8 366 560 X 329 135 X
    TX-0008003b-000125fc 329 135 X 366 560 X
    session 560: DID 0001-016E-00000002 session 135: DID 0001-0149-00000002
    session 135: DID 0001-0149-00000002 session 560: DID 0001-016E-00000002
    Rows waited on:
    Session 135: obj - rowid = 00017FAC - AAAX+sAAPAAAS9/AAP
    Session 560: obj - rowid = 0001586C - AAAVhsABXAAAAIRAAN
    We know the objects ,but how to find out the username ?
    Thanks

    Hi;
    Please see:
    How To Check If a Profile Option Is Set In Oracle Application [ID 470102.1]
    How to list E-Business Suite Profile Option values for all levels using SQLPlus [ID 201945.1]
    How to Search all of the Profile Options for a Specific Value [ID 282382.1]
    Regard
    Helios

  • How to find whether a m4a file is of kind apple lossless programmatically

    Hi,
    Through my application i am transferring music files to windows machine but as we know that windows can not play apple lossless file (.m4a) and thus while trassferring i have to check whether the file is apple lossless or not. I am unable to find a way to find the kind of file programmatically. How should i read the file tags ? or any other similar way.
    thanks in advance.
    ibook g4   Mac OS X (10.4.4)   1.42 ghz powerpc g4 processor

    Hi All,
    I have found he solution and sharing the solution wih u all.
    Actually i found a apple script in dougs website. In that we just have to compare the kind of file with Lossless. You can find the script on Dougs url as i dont remember the exact link.
    Thanks for viewing my query.
    Regards
    @mit
    ibook g4   Mac OS X (10.4.4)   1.42 ghz powerpc g4 processor

Maybe you are looking for

  • How to parse an XML file in APEX and store details in DB

    I want to parse information from an XML document. This is the scenario, user will need to provide a name for the item, in the text field say Item name and click submit. This &item_name. is appended to the end of the URL as http://www.somewebsite.com/

  • 5 minute countdown timer with 3d extrusion  for AE CC  5:00

    dear  AE  Family, Total Newbie here  looking to make a 3d countdown timer in  after effects  CC.  I know how to use the effect  to make the standard timer.  But I want to make the 3d extrusion  5:00 which looks much better.  My CC came with  cinema 4

  • How to play wma files on my i-tunes on a mac computer

    just need a little help with some WMA files. when i try to open them on my mac book pro. it opens it as a document file. what to i need to do so i can play it on i-tunes and my i-pod. how do i convert it to a MP3 file??

  • Can't change desktop background OS 10.5.6

    Hi, I'm on a Macbook 2.0Ghz-4 gig Ram-OS 10.5.6 When I go into preferences and attempt to change my desktop/background it freezes and crashes system preferences. If I double-click on the desktop the same thing happens. I read on an answered question

  • FB2 & FB3 in one system?

    Hi, I already have some projects in FB2 and I need keep them. FB3 is new for me and I like download and try it. Do you think if it is possible to have both in one system (Windows xp)? Thanks Mark