Absolute path of server

hi!
          does anyone can tell me how to get the absolute path of the server from a
          virtual path
          thax
          

I'm not quite sure I understand your question, but in case I do, here goes. If you're ssh'd into another machine, you're using that machine. Dragging something from your local finder into a terminal ssh session, if I'm not mistaken,hopelessly munges the path. The ssh session puts you on the other client. Trying to figure out what happens when you drag a file from your local finder to a terminal session on a remote host starts to make my head hurt. I think typing the entire path, or just navigation to the right directory would be the best bet. You can do this on multiple clients through ARD, and I imagine you could script the process as well (already posted).

Similar Messages

  • How can I get the server absolute path of virtual directory?

    Problem context:
    absolute path of my application at JRUN server is
    c:\testing
    nd url is
    http://kaspak/test
    ( kaspak is a machine local to server i-e client nd server r at same machine )
    I m uploading a file nd saving it at server.
    PROBLEM:
    server save my uploaded file at
    C:\Program Files\Allaire\JRun\servers\default
    [ a path where server is installed ]
    while I want to save it at directory
    c:\testing\uploadfiles
    How can I achieve this???
    waiting for quick reply..
    KasPak

    here is a function for which u said,
    protected void readAndSaveFile(MultipartInputStreamHandler in,
    String boundary,
    String filename,
    String contentType) throws IOException
    A utility method that reads a single part of the multipart request that represents a file, and saves the file to the given directory. A subclass can override this method for a better optimized or differently behaved implementation.
    again saving a file, or uploading a file is no problem,
    but saving a file at our desired location,
    nd this can only be done if we know reall/absolute path of our application at server,
    i-e we need an API which can tells the absolute path of our application.
    e.g
    our application url is http://kaspak/testcode
    we need its absolute mapping to directory on server
    e.g it it is at c:\testcode
    if we get the absolute path then we can pass it in above function or in File class constructor.
    isn't it??
    I think in this way i can save file at other location.
    But how i can get absolute path?????
    thanks for ur reply,
    nd waiting for ur reply again.
    wbw
    kaspak

  • How to get the absolute path of logicalhost server domain on Windows Sun

    i am reading a file from Xsql Folder, that is located in the logicalhost Sun\AppServer\domains\domain1\applications\j2ee-apps.(IN Sun Application Server)
    I am pretty sure that using the absolute path will solve this issue, so my first question is: How to get the absolute path of logicalhost server domain on Windows?
    i tried with System.getProperty("com.sun.aas.instanceRoot").
    but i am able to retrive Sun\AppServer\domains\domain1 upto this .i am unable to retrive Sun\AppServer\domains\domain1\applications\j2ee-apps.
    please suggest me how u can get absolute path in sun application server

    Take a look here

  • How to get the absolute path of logicalhost server domain on Windows?

    My logicalhost server domain behaves strangely. I am reading a file from collaboration definiton, that is located in the logicalhost/is/domains/domain1/config folder. I thought, that this folder is used as an application root folder so I can read files like ./file from there. And it worked.
    But then I've installed the domain as a Windows service, restarted the PC. When the domain1 gets started, I get exceptions saying that the file can't be found. Then I restart the domain (in domainmgr.bat) and it works again.
    I am pretty sure that using the absolute path will solve this issue, so my first question is: How to get the absolute path of logicalhost server domain on Windows?
    And my second question is: Why does this happen?

    The default folder for a Windows Service is the system32 folder contrary to the instance root folder when starting it as a normal process.
    That's the why, haven't tried the how, but you should be able to get the value by calling System.getProperty("com.sun.aas.instanceRoot").
    Hope this helps
    Paul

  • Images using absolute path on portlet server not appearing when gatewayed

    I am gatewaying several applications via a Plumtree 5 Portal. Images in these applications when referenced using relative paths (../images/image.jpg) work. Images using absolute path (\applicationFolder\images\image.jpg). When gatewayed they are presented like this:
    http:\\plumtreeServer\portal\server.pt\gateway\PTARGS_0_212_252_0_0_43/https:%3B/remoteServer/applicationFolder/Web/\applicationFolder\images\image.jpg
    Any help would be greatly appreciated.

    I am gatewaying several applications via a Plumtree 5 Portal. Images in these applications when referenced using relative paths (../images/image.jpg) work. Images using absolute path (\applicationFolder\images\image.jpg). When gatewayed they are presented like this:
    http:\\plumtreeServer\portal\server.pt\gateway\PTARGS_0_212_252_0_0_43/https:%3B/remoteServer/applicationFolder/Web/\applicationFolder\images\image.jpg
    Any help would be greatly appreciated.

  • Frame 12 converting relative paths to absolute paths

    Hi all,
    We recently upgraded to Frame 12 and now have a persistent issue with relative paths to referenced images becoming absolute.  These paths do not traverse a drive and so I believe Frame should be maintaining a relative path for these. In most cases -- perhaps in all, although I have not done exhaustive testing --  the problem paths are for images on a master page.
    Any idea why this might be occurring and what we can do to fix it?  Our docs team shares files checked out from a server, and each time one of us opens a document, it has an absolute path to a location on another writer's computer.  We each maintain the exact same directory structure for all Frame/image files, and again, the path to the problem images is local and does not traverse the C drive.
    Thanks in advance,
    Shelley

    May or may not be relevant, but do the affected relative paths need to traverse the root directory of the logical drive?
    I seem to recall, in experiments some years ago on FM7.1, that the final /../ needed to be at least one level down.

  • Probelm in getting absolute path of the application folder?

    I have problem in getting the absolute path of the application folder.
    I wriiten the following line in my action class:
    String absPath = getServlet().getServletContext().getRealPath("/");
    when i run my application 'DTH' in Tomcat server, I am getting correct path :
    C:\Tomcat\jakarta-tomcat-5.0.25\webapps\DTH
    But when i run this application in weblogic server, I am getting null value for the above line.
    Can any one help me in this?

    public java.lang.String getRealPath(java.lang.String path)
    This method returns null if the servlet container cannot translate the virtual path to a real path for any reason (such as when the content is being made available from a .war archive).
    so, getRealPath() might not be a very good approach because of its different behavior when used from a war or exploded application.
    What you could do is:
    1. pass the path as a parameter inside web.xml (config files, log files etc)
    2. For dynamic lookup of files you could make use of ClassLoader.getResource().
    Hope it helps.

  • How to get rejected file absolute path location in file rejection handler

    HI,
    Right now I am working in the below scenario in SOA11G.
    1) Create a file adapter service and wire it to a BPEL process.
    2) Create a Fault-policies file where we have referred a Java Action as a Fault policy.
    3) Refer that fault-policy to the Fault-Binding file and put both the file in the same directory with composite.xml file.
    4) So when any rejection message happened with any wrong incoming file, the Java Action is getting called.
    But as per my requirement I want to get the absolute path of the incoming file in my java action, so that I can write some other logic to copy that file to some other location.
    So is there any API available to achieve this or any logic about how to get the absolute path of a rejected file at runtime.
    Regards,
    Tripathy.

    Hi Omar,
    You need to use OPEN_DATASET & READ DATASET statements to get the file from application server.
    Steps:
    Open dataset in read mode
    Read the data set and collect into internal table
    Now, convert this into XSTRING by using function module SCMS_STRING_TO_XSTRING
    After converting into XSTRING, you can use CL_WD_RUNTIME_SERVICES=>ATTACH_FILE_TO_RESPONSE to download into local system
    Please refer the below links
    Upload File from SAP Application Server using ABAP
    Application Server Program - ABAP Development - SCN Wiki
    Hope this helps you.
    Regards,
    Rama

  • How to read images in jsp from an absolute path not from the web app?

    hello there
    i want to read images from an absolute path on the hard disk not from the images folder in the web application
    how to do that?
    thank you

    Ok. You don't give the servlet the full path of an image. You just give an image id in query string. E.g.
    http://my.server.com/imageServlet?id=12Id can be whatever: number as well as name.
    Then, in your servlet You get this id, then read an image file that is mapped for this id and sends it to browser via servlet output stream.
    On the jsp page you write sth similar to:
    <img src="http://my.server.com/imageServlet?id=12"/>and your image will be displayed using your servlet. The image file path is needed only in the servlet code to open the stream to file (image file can be stored wherever you want in file system), read it and write to output stream. Read the tutorial accessible via link I provided in the previous post.

  • Ora:readFile error when giving absolute path, error ORABPEL-05002

    When I try to read file by providing the absolute path:
    using ora:readFile('file:///share/tripti.txt'), exception is thrown
    The filepath is accessible through the browser.
    <2008-06-03 12:32:23,234> <ERROR> <default.collaxa.cube.engine.dispatch> <BaseScheduledWorker::process> Failed to handle dispatch message ... exception ORABPEL-05002
    Message handle error.
    An exception occurred while attempting to process the message "com.collaxa.cube.engine.dispatch.message.invoke.InvokeInstanceMessage"; the exception is: XPath expression failed to execute.
    Error while processing xpath expression, the expression is "ora:readFile('file:///share/tripti.txt')", the reason is message can't be null.
    Please verify the xpath query.
    ORABPEL-05002
    Message handle error.
    An exception occurred while attempting to process the message "com.collaxa.cube.engine.dispatch.message.invoke.InvokeInstanceMessage"; the exception is: XPath expression failed to execute.
    Error while processing xpath expression, the expression is "ora:readFile('file:///ossi-1193/share/tripti.txt')", the reason is message can't be null.
    Please verify the xpath query.
         at com.collaxa.cube.engine.dispatch.DispatchHelper.handleMessage(DispatchHelper.java:171)
         at com.collaxa.cube.engine.dispatch.BaseScheduledWorker.process(BaseScheduledWorker.java:70)
         at com.collaxa.cube.engine.ejb.impl.WorkerBean.onMessage(WorkerBean.java:86)
         at sun.reflect.GeneratedMethodAccessor47.invoke(Unknown Source)
    Pl. throw more information on what could be the issue.

    hi kamran,
    Thank u for u r reply. I did't understood where to change the database identifier in tnsnames.ora. sorry for tell like this i am new for oracle. And name shall give. The tnsnames.ora look like this:
    # tnsnames.ora Network Configuration File: D:\oracle10g\NETWORK\ADMIN\tnsnames.ora
    # Generated by Oracle configuration tools.
    T2 =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = HA14)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = T2)
    OMCX =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = HA14)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = OMCX)
    ZEN2K7 =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = vsnet1)(PORT = 1521))
    (CONNECT_DATA =
    (SERVICE_NAME = zen2k7)
    OVSL06 =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = HA14)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = OVSL06)
    EDMS =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = HA14)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = EDMS)
    EXTPROC_CONNECTION_DATA =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC))
    (CONNECT_DATA =
    (SID = PLSExtProc)
    (PRESENTATION = RO)
    )

  • Absolute path to E:\Hudson in org.flexunit.assert() etc

    Hi there,
    I'm attempting to use flexrunner in a linux project. So far everything has been smoothly, thanks. Just pached my SDK vith linux air 2.6 runtimes and ran (a slightly modified) demo project. It seems like there is a build in path to E:\hudson .... in the flexunit-4.1.0.8-flex_4.1.0.16076.swc file is there a way to get the source for this project and build the libraries ensuring that I get the correct path set?
    Platfrom: Ubuntu 10.04
    ant: 1.8.x
    flex sdk: 4.5.1 pached with linux air 2.6 runtimes
    flexunit: 4.1.0-8
    absolute path bolded below
    Cheers,
    John
    jodi@ubuntu:~/ccm_wa/ME_ECS/BES3_devel~jodi1/BES3_devel/ui/unittest$ ant -f build.air.xml
    Buildfile: /home/jodi/ccm_wa/ME_ECS/BES3_devel~jodi1/BES3_devel/ui/unittest/build.air.xml
    init:
    compile:
        [mxmlc] Loading configuration file /home/jodi/ccm_wa/ME_ECS/BES3_devel~jodi1/BES3_devel/make3/flex/frameworks/air-config.xml
        [mxmlc] /home/jodi/ccm_wa/ME_ECS/BES3_devel~jodi1/BES3_devel/ui/unittest/target/bin/Main.swf (498693 bytes)
        [mxmlc] Loading configuration file /home/jodi/ccm_wa/ME_ECS/BES3_devel~jodi1/BES3_devel/make3/flex/frameworks/air-config.xml
        [mxmlc] /home/jodi/ccm_wa/ME_ECS/BES3_devel~jodi1/BES3_devel/ui/unittest/target/bin/TestRunner.sw f (1011075 bytes)
    test:
    [flexunit] Validating task attributes ...
    [flexunit] Generating default values ...
    [flexunit] Using the following settings for the test run:
    [flexunit]     FLEX_HOME: [/home/jodi/ccm_wa/ME_ECS/BES3_devel~jodi1/BES3_devel/make3/flex]
    [flexunit]     haltonfailure: [true]
    [flexunit]     headless: [false]
    [flexunit]     display: [99]
    [flexunit]     localTrusted: [true]
    [flexunit]     player: [air]
    [flexunit]     port: [1024]
    [flexunit]     swf: [/home/jodi/ccm_wa/ME_ECS/BES3_devel~jodi1/BES3_devel/ui/unittest/target/bin/TestRunner.s wf]
    [flexunit]     timeout: [60000ms]
    [flexunit]     toDir: [/home/jodi/ccm_wa/ME_ECS/BES3_devel~jodi1/BES3_devel/ui/unittest/target/report]
    [flexunit] Setting up server process ...
    [flexunit] Starting server ...
    [flexunit] Opening server socket on port [1024].
    [flexunit] Waiting for client connection ...
    [flexunit] Found AIR version: 2.6
    [flexunit] Created application descriptor at [/home/jodi/ccm_wa/ME_ECS/BES3_devel~jodi1/BES3_devel/ui/unittest/target/bin/flexUnitDesc riptor.xml]
    [flexunit] Executing '/home/jodi/ccm_wa/ME_ECS/BES3_devel~jodi1/BES3_devel/make3/flex/bin/adl' with arguments:
    [flexunit] '/home/jodi/ccm_wa/ME_ECS/BES3_devel~jodi1/BES3_devel/ui/unittest/target/bin/flexUnitDesc riptor.xml'
    [flexunit]
    [flexunit] The ' characters around the executable and arguments are
    [flexunit] not part of the command.
    [flexunit]
    [flexunit] Client connected.
    [flexunit] Setting inbound buffer size to [262144] bytes.
    [flexunit] Receiving data ...
    [flexunit] Sending acknowledgement to player to start sending test data ...
    [flexunit]
    [flexunit] 9/29/2011 23:42:11.580 [INFO] FlexUnit4 Running 3 Tests
    [flexunit] <testcase classname="org.flexunit.demo::SampleTest" name="testSampleIgnore" time="0" status="ignore"><skipped /></testcase>
    [flexunit] 9/29/2011 23:42:11.618 [INFO] FlexUnit4 org.flexunit.demo::SampleTest.testSampleIgnore I
    [flexunit] 9/29/2011 23:42:11.621 [INFO] FlexUnit4 org.flexunit.demo::SampleTest.testSampleFailure .
    [flexunit] <testcase classname="org.flexunit.demo::SampleTest" name="testSampleFailure" time="70" status="failure"><failure message="FAIL! - This is a sample test that will fail." type="org.flexunit.demo::SampleTest.testSampleFailure" ><![CDATA[FAIL! - This is a sample test that will fail.
    [flexunit]     at org.flexunit::Assert$/fail()[E:\hudson\jobs\FlexUnit4-Flex4.1\workspace\FlexUnit4\src\org \flexunit\Assert.as:294]
    [flexunit]     at org.flexunit.demo::SampleTest/testSampleFailure()[/home/jodi/ccm_wa/ME_ECS/BES3_devel~jod i1/BES3_devel/ui/unittest/src/test/flex/org/flexunit/demo/SampleTest.as:8]
    [flexunit]     at Function/http://adobe.com/AS3/2006/builtin::apply()
    [flexunit]     at flex.lang.reflect::Method/apply()[E:\hudson\jobs\FlexUnit4-Flex4.1\workspace\FlexUnit4\sr c\flex\lang\reflect\Method.as:244]
    [flexunit]     at org.flexunit.runners.model::FrameworkMethod/invokeExplosively()[E:\hudson\jobs\FlexUnit4- Flex4.1\workspace\FlexUnit4\src\org\flexunit\runners\model\FrameworkMethod.as:201]
    [flexunit]     at org.flexunit.internals.runners.statements::InvokeMethod/evaluate()[E:\hudson\jobs\FlexUni t4-Flex4.1\workspace\FlexUnit4\src\org\flexunit\internals\runners\statements\InvokeMethod. as:72]
    [flexunit]     at org.flexunit.internals.runners.statements::StackAndFrameManagement/handleTimerComplete()[ E:\hudson\jobs\FlexUnit4-Flex4.1\workspace\FlexUnit4\src\org\flexunit\internals\runners\st atements\StackAndFrameManagement.as:138]
    [flexunit]     at flash.events::EventDispatcher/dispatchEventFunction()
    [flexunit]     at flash.events::EventDispatcher/dispatchEvent()
    [flexunit]     at flash.utils::Timer/tick()]]></failure></testcase>
    [flexunit] 9/29/2011 23:42:11.763 [WARN] FlexUnit4 org.flexunit.demo::SampleTest.testSampleFailure F
    [flexunit] 9/29/2011 23:42:11.775 [INFO] FlexUnit4 org.flexunit.demo::SampleTest.testSampleError .
    [flexunit] FlexUnit test testSampleIgnore in suite org.flexunit.demo.SampleTest was ignored.
    [flexunit] <testcase classname="org.flexunit.demo::SampleTest" name="testSampleError" time="108" status="error"><error message="ERROR! - This is an error" type="org.flexunit.demo::SampleTest.testSampleError" ><![CDATA[Error: ERROR! - This is an error
    [flexunit]     at org.flexunit.demo::SampleTest/testSampleError()[/home/jodi/ccm_wa/ME_ECS/BES3_devel~jodi1 /BES3_devel/ui/unittest/src/test/flex/org/flexunit/demo/SampleTest.as:13]
    [flexunit]     at Function/http://adobe.com/AS3/2006/builtin::apply()
    [flexunit]     at flex.lang.reflect::Method/apply()[E:\hudson\jobs\FlexUnit4-Flex4.1\workspace\FlexUnit4\sr c\flex\lang\reflect\Method.as:244]
    [flexunit]     at org.flexunit.runners.model::FrameworkMethod/invokeExplosively()[E:\hudson\jobs\FlexUnit4- Flex4.1\workspace\FlexUnit4\src\org\flexunit\runners\model\FrameworkMethod.as:201]
    [flexunit]     at org.flexunit.internals.runners.statements::InvokeMethod/evaluate()[E:\hudson\jobs\FlexUni t4-Flex4.1\workspace\FlexUnit4\src\org\flexunit\internals\runners\statements\InvokeMethod. as:72]
    [flexunit]     at org.flexunit.internals.runners.statements::StackAndFrameManagement/handleTimerComplete()[ E:\hudson\jobs\FlexUnit4-Flex4.1\workspace\FlexUnit4\src\org\flexunit\internals\runners\st atements\StackAndFrameManagement.as:138]
    [flexunit]     at flash.events::EventDispatcher/dispatchEventFunction()
    [flexunit]     at flash.events::EventDispatcher/dispatchEvent()
    [flexunit]     at flash.utils::Timer/tick()]]></error></testcase>
    [flexunit] 9/29/2011 23:42:11.885 [ERROR] FlexUnit4 org.flexunit.demo::SampleTest.testSampleError E
    [flexunit] <endOfTestRun/>
    [flexunit] 9/29/2011 23:42:12.044 [INFO] FlexUnit4 Time: .314
    [flexunit] 9/29/2011 23:42:12.045 [WARN] FlexUnit4 There were 2 failures:
    [flexunit] 9/29/2011 23:42:12.046 [WARN] FlexUnit4 FAILURES!!! Tests run: 2, 2 Failures:
    [flexunit] FlexUnit test testSampleFailure in suite org.flexunit.demo.SampleTest failed.
    [flexunit] FlexUnit test testSampleError in suite org.flexunit.demo.SampleTest had errors.
    [flexunit]
    [flexunit] Stopping server ...
    [flexunit] End of test data reached, sending acknowledgement to player ...
    [flexunit] Closing client connection ...
    [flexunit] Closing server on port [1024] ...
    q [flexunit] Analyzing reports ...
    [flexunit]
    [flexunit] Suite: org.flexunit.demo.SampleTest
    [flexunit] Tests run: 3, Failures: 1, Errors: 1, Skipped: 1, Time elapsed: 0.178 sec
    [flexunit]
    [flexunit] Results :
    [flexunit]
    [flexunit] Tests run: 3, Failures: 1, Errors: 1, Skipped: 1, Time elapsed: 0.178 sec
    [flexunit]
    BUILD FAILED
    /home/jodi/ccm_wa/ME_ECS/BES3_devel~jodi1/BES3_devel/ui/unittest/build.air.xml:81: FlexUnit tests failed during the test run.
    Total time: 3 minutes 11 seconds

    Rupert:
    I think all of the AIR/SDK changes, etc. are red herrings. I think you have a relatively simple problem. The key is in the first error you posted.
    "method not implemented org.flexunit.internals.runners.statements::IAsyncHandlingStatement/org.flexunit.internals .runners.statements:IAsyncHandlingStatement::handleBindableNextSequence()
       over-binding 0 in org.flexunit.internals.runners.statements::ExpectAsyn"
    This is telling you that something you claim implements IAsyncHandlingStatement doesn't have a required method, named handleBindableNextSequence. This is a big clue. handleBindableNextSequence is a required method of this interface if you are building the library with the Flex extensions. This method is not required if you build the library without these extensions (ActionScript only)
    So, I would wager you have one of two things happening.
    Scenario A, you have two copies of FlexUnit4 in different projects or libraries. One of them is a Flex4 ActionScript Only version, and one is a Flex version and the linker is confused as well causing these errors to occur at runtime.
    Scenario B, one your libraries is referencing and/or building FlexUnit 4 classes into it. Then in your test project you are using a different copy of FlexUnit 4 during test and again, you have a mistmatch of AS-only versions and Flex versions.
    Unless you are using a beta version of FlexUnit, which you didn't mention, the core libraries have not changed since last december and this particular class hasn't changes since nearly a year before that.
    I can replicate that error if I setup two projects on my machine and mix the versions of the FlexUnit4.swc as I mention above.
    Mike

  • How to see absolute path images ?

    Hi, I was following the manual to make absolute pathed images visible in DW,
    you might want to disable viewing the image in Design view by deselecting Commands > Display External Files.
    but got stuck due to no such function there in the command menu, I also selected the image ...
    Help very appreciated.
    Regards,
    Frank

    To see images which have absolute paths the images have to be uploaded to the remote server, have you done that? Then click on 'Live View' at the top of the Dreamweaver window. Give it a few seconds and the images should appear.
    You actually should be able to see the images without using 'Live View'. I don't quite know when it happens as DW seems to be a bit hit and miss. I've just tested some of my html emails and some do show the images and other don't BUT if I switch to live view then back to design view and close down/open up the document a couple of times the images appear.

  • Can I link to images using absolute paths in HTML Help and still see them locally?

    I'm publishing HTML help pages to a Web server.  All .htm files on the Web server are in their own folder, and all image files are in a separate folder.  Links to images are generally of the form <img src="/images/clear.png" height="14" width="8">.  That is, the images use an absolute path reference from the doc root folder (rather than relative path from the current file folder, such as "../images/myImg.png").
    I can modify the HTML for the images to follow this convention, but then I cannot see the images locally within RoboHelp, but must instead wait until the files are integrated with the Web server.  Is there a way to set up a RoboHelp project so that I can force an image path of "/images" both locally and in the HTML?
    Using RoboHelp 9.0.1.232.
    Thanks.

    RoboHelp expects the images to be within the project and will need that if you are to see them when working. It then uploads them to the server when you publish.  There is a check box when you publish so that only updated files get  uploaded.
    You could point Resource Manager to the server folder with the images and then link to those images. What happens then is the image gets downloaded into your project so that you see it when working. If the server image changes you will see the icon in Project Manager changes so that you can update the local copy. It would be a one-off exercise changing your workflow.
    See www.grainge.org for RoboHelp and Authoring tips
    @petergrainge

  • How to avoid giving absolute path?

    Hi
    I have a web application which contains some jsps and servlets and i am running it on Apache Tomcat 4.1. The name of my application is MyApp which contains all the servlets and jsps.
    In order to deploy the application i have placed the MyApp folder in the 'webapps' folder of Tomcat. Now in one of my servlets i.e. 'DirectoryCreator', i am trying to create a folder i.e. 'Directory' in the MyApp folder. The problem is that i dont want to give an absolute path to the File class constructor. The class files of my servlets are in classes folder i.e. MyApp \ Web-INF \ classes.
    I have tried:
    File f = new File("/Directory");
    f.mkdir();but this creates the Directory folder in my C drive.
    Please tell me how i can avoid giving the absolute path.
    Thanks.

    What you want is getSerlvetContext().getRealPath("WEB-INF/NewDir").
    If you're going to put extra data into your webapp you should put it in WEB-INF unless you want it to be avaialble to be served e.g. html files etc.

  • Getting Absolute path

    how to manipulate or to change the folowing absoulute path
    to worrk in web browser
    String p = C:\Program Files\Tomcat\webapps\myApp\tempData\regards

    This sounds more like a web application problem than a Java problem. In general, most if not all web servers will ONLY serve files that exist in a relative path below the root directory of the web service. This is for security reasons so that outsiders can't just wander around on the server's hard disk at will.
    HOWEVER, some do allow access to absolute paths IFF the access rights to those paths are set properly for the user the web server runs as.
    I would suggest you post your question on a forum oriented toward the web server you are using, or contact your web host's support department (not usually fruitful for these types of problems).

Maybe you are looking for