URL relative Paths - to use or not use

That is the question! :-) (OK, not much of a joke of Hamlet, but I tried.)

Greetings,

I have an APEX application that uses interactive images with hotspots. Hot spots have 'hard-coded' URL in them. This causes some minor problems during the transition from Dev to Test prod. Not a big problem, but maybe they can be eliminated with a relative path of the URL. Which raises a few questions -

1 - use relative URL paths in the hot spots? Are my main concern - there security issues if I do not use the full path, with domain name, etc.

2. If using a relative path of the URL is the way to go - how the domain, part etc. of the URL can I omit and still have the URL work?

3 - depends on the answer to #2 what is the HTTP server and how it is configured?

Thanks in advance, Tony

hidden wrote:
In response to your question "how to parent?

It is an example of one of the URL mentioned earlier...
http://Fandango.Mgmt.com:7000/apex/f? p = 2031:10:681666703179901:NO:P10_HEADER_ID, P10_CELL_TITLE:8900, 11-4

How much of it can be omitted?

Tony,
When you are within your APEX applications, all you need is the f? p = forward.
This is because all pages are running from the location f (seen from the point of view of browser). So, if you go to another page of the apex of your URL may start from the f to the front.
If you wanted to you image would be, in general, go back to the root of the server with /i/image_name.jpg like

Thank you
Jorge

Tags: Database

Similar Questions

  • How can I specify relative path to file Subvi to screw?

    I use LabVIEW 2009 Service Pack 1.

    SubVIs are referenced by absolute paths, so when I move to a new folder I may need to adjust their paths again.

    How can I make a Subvi make reference to a relative path that I do not have set his path after you move the screw in a new folder or a new player?

    I think that the SubVIs are referenced internally by relative paths. Once you move the whole project in a new place, he should find everything in the new relative paths.

    Where have you encountered problems?

  • Relative path of Windows shortcut file

    Hello

    I have the complete file of PDFs (hundreds of them) and I need them zip. I need also make a shortcut of one of these pdf files in this zip and rename it, so it is recognizable among others. But when I do a shortcut, zip of PDFs with the shortcut and delete the original files - inside the zip link stops working.

    I have a question if I can have this shortcut in the relative path, so it is not dependent on the original data, and if it can work inside this zip (as well as inside the folder) any absolute path is.

    Can someone help me? Is it still possible?

    Thank you very much

    Nobody has never reported a method to create shortcuts on Windows.  A lot of people seems to have attempted; If you are looking for relative shortcut in this forum you will see other threads on the subject.

  • How to read the .txt adfLib pot file to the model layer by using the relative path

    Hello

    In my application, I use the ExtendedDynamicFldTbl (extends weblogic.wtc.jatmi.DynamicFldTbl), which the manufacturer requires the field file path table as a parameter.

    In the API, it is said that this name of path can be an absolute path, a relative path to the directory where Java has started, or a relative path that can be found as a resource on the classpath.

    I have created this ExtendedDynamicFldTbl to the model layer project, placed the fild_tbl.txt in a separate package and pass the path relative to the DynamicFldTbl constructor.

    Given my code below to get the instance of ExtendedDynamicFldTbl
    package model.tuxedo;
    
    public class ExtendedFldTbl  extends DynamicFldTbl
    {
    
        private static ExtendedFldTbl extendedFldTblinstance = null;
        
        public ExtendedFldTbl(String tablePath, boolean flag)
        {
            super(tablePath, flag);
        }
        
        public static ExtendedFldTbl getInstance()
        {
            if (extendedFldTblInstance == null)
            {
                URL url = extendedFldTblInstance.class.getResource("resource/fldtbl.txt");
                if (url == null)
                {
                    throw new RuntimeException("Tuxedo Service : fldtbl.txt is not found in the path 'model.tuxedo.resource' ");
                }
                extendedFldTblInstance = new ExtendedFldTbl (url.getPath(), true);
                String[] list = extendedFldTblInstance .getFldNames();
                System.err.println("fldtbl loaded. Total FML entries loaded = " + list.length);
            }
            return extendedFldTblInstance ;
        }
    }
    I just added the output of the build of the layer model to view the project of the layer and tested. It works fine and I am able to get the ExtendedFldTbl instance with all loaded fields. But rather than add dependencies, if I create an adfLibJar for the layer model project and you add to view the project of the layer, it does not work. It is not ablt to read the file of adf lib jar file.

    Issues related to the:

    1. How can I solve this?
    2. Although I have kept the field text file table in the source of the project itself, when I read the url, it is
    "C:/Documents and Settings/raguramanv/Application Data/JDeveloper/system11.1.1.4.37.59.23/DefaultDomain/servers/DefaultServer/tmp/_WL_user/SampleWtc/3gkmt9/war/WEB-INF/lib/SampleWtc_Model_adflibSampleWtc1.jar!/model/tuxedo/resource/fldtbl.txt"
    Instead of the physical directory, how can I use application in model layer context?


    Thanks in advance

    Rambeau

    Hello

    Try /adf/ or /afr/ in the URL. Then includes the ADF resource loader which is used to get the contents of a lib of the ADF. Take a look at the structure of ADF library where the file is located in. It should be in a directory with /adf in the folder structure

    Frank

  • Is CFFILE read uses only the absolute path or the relative path too?

    I use cffile read access to my file to json. I would like to know if the cffile uses only absolute or relative path too? If I tried to use the relative path, it kept send me errors on non-existent file.

    Read what I posted on the documentation. CFFILE read must be an absolute path. If you use a path relative to its parent to the CF temp folder:

    If not an absolute path (starting with a drive letter and a colon or a slash to advance or back), it is relative to the ColdFusion temporary directory, which is returned by the GetTempDirectory function.

    There is no relative path from your web files. IF you just put a relative path, it will attempt in the CWS for the file temp folder.

  • Using a relative path in .txt in expressions

    Hello

    I use AE Expressions script to read in text from an external .txt file. The script works very well, except for the fact that I need the path to the file external .txt to be relative to the project folder After Effects instead of the absolute. The path cannot be absolute, since I use this project "blindly" on different computers with files different works of art/configurations. This is the script I use:

    myPath = "absolute_path/vars/vars.txt";

    Try

    {

    $.evalFile (myPath);

    eval (thisLayer.Name);

    }

    catch (err) {""}

    I tried to put in a relative path in the variable for example myPath "myPath =". " "/ vars/vars.txt. Unfortunately, this does not work. I wonder if using a relative path in the AE Expressions is at all possible and if not, what would be another solution to this problem? (There may be a few plugins out there that could solve this problem?) Any advice or assistance would be greatly appreciated I'm in kind of a pinch of understand this one.

    Greetings,

    Talmon, I am under CC 2014 and I got it works:

    try {}

    myPath = "... / Graphics/ePriceData.txt.

    $.evalFile (myPath);

    eval (thisComp.Name) [index + 1];

    } catch (err) {}

    Err;

    }

    I wanted to refer to the txt file using a pathname relative, and she and the AE project file are in the same folder (Grafiche). Using the above string it seems to work. It kind of defeated the purpose, but it's maybe half a step towards a permanent solution!

  • How do you use relative paths in ColdFusion?

    I'm having a problem that I can not wrap my head around. I have 4 sites all reside under C:\ColdFusion9\wwwroot\websites\. Unfortunately, when I use relative paths, he always navigates to wwwroot instead of from this record Web sites. I want to make sure I can use relative paths which are always calculated in the folder root of Web sites instead of the ColdFusion wwwroot folder.

    I had a temporary difficulty just to create a mapping in the CF Administartor. Although, this became a problem because I had to change it whenever I worked on another Web site. In addition, it would work properly if I used a relative as path (/ documents). Instead, it only works if I did a relative as path (. / documents).

    Can someone help me solve this problem? I spent so much time to try things it's not even funny.

    I'm using the CF9 Developer Edition with Dreamweaver CS4.

    CF built-in web server only supports a virtual server for each instance of CF, so you should change it whenever you want to work on a separate site, or create a separate instance of CF using the Instance Manager in CF administrator You won't have a Instance Manager available, given that you have chosen the 'standalone' CF during installation version. If you have reinstalled CF to use the JRun multiserver option, you can install multiple instances of CF and each would have a port separated (8300, 8301, etc.). However, consuming also considerably more resources on your computer.

    The best solution for this is usually to install an external web server, IIS or Apache and use it with your single instance see IIS is a component of Windows, so the version of IIS, you can use is limited by the version of Windows you are using. If you do not have Windows XP, you will be able to use IIS to run several virtual servers. Apache won't work regardless of your OS, but can be a little more difficult to set up.

    Dave Watts, CTO, Fig Leaf Software

  • Am not able to resize the fonts, images, or anything that is related to the use of numbers.  How can this be corrected?

    Am not able to resize the fonts, images, or anything that is related to the use of numbers.  How can this be corrected?

    Hello

    Is this a problem of input in any number?

    All applications (such as Notepad) do have the same problem?

    Is your Num Lock?

    Brian

  • Using relative path to file/ftp adapter

    Hi all

    How to have a relative path for the file / ftp adapter operation in/out?

    Example: Consider $ORA_HOME = / home/oracle-> this environment variable can be different on different machines
    I want to drop a file in $ORA_HOME/Folder1/Folder2 (or query to a file).

    < partnerLinkBinding name = "FTP" >
    < property name = "wsdlLocation" > FTP.wsdl < / property >
    < property name = 'out_dir' type = "LogicalDirectory" >what I write here? < / property >
    < property name = "retryInterval" > 60 < / property >
    < / partnerLinkBinding >


    If I can't configure this in the section "links" partner or agent link activation, otherwise, how to achieve this?
    I use version 10.1.3. *.


    Thanks in advance.
    Roshan.

    You can achieve by using the deployment scripts if the directory evolves based on the environment
    If you want to change running you can use the properties of jca to set using the variables during execution.

    Kind regards
    Ajay

  • Relative path does not work in Captivate 9

    Hello


    I use the relative path (docs/document.pdf) to open documents of reference such as the PDF files in a new window in my captivate projects and they always worked until I upgraded to 9 Captivate. The path doesn't work anymore and opens a web browser window by default instead. Not sure if I'm missing something. The "docs" folder to call the PDF document found in the published folders (see image below). I appreciate all the advice.

    relative path structure.png

    Well, it's been 4 days and I did not receive a response. I contacted support and they gave me the following instructions, in the case if you are interested:

    In order to link the document, select the action "Open url or file" and in the path, just put the name of the document [0.pdf]. Make sure that the document is in the published folder. So the lesson learned, keep documents directly in the published folder, all the subfolders [docs/document.pdf].

  • the frame in the frameset is not the relative path correctly

    http://www.autogamma.com/FastSP/catindex.html

    Click on 'PUMP LAVACRISTALLI' > "Quick Codice" > "PL100.
    images do not work
    In IE and Chrome images work fine

    The frame with PL100,... link to "pompe\PL100.html",...
    Target is the frame named "MAIN".
    In this context, the relative address is lost: the frame does not take the correct relative path, with a new subdirectory "pump".
    Path of the images remain.

    These links have the backslashes instead of slahes forward:

    <body><center><font size=2>CODICI FAST</font><br>
    <a href='pompe\PL100.html' target='MAIN'><font size=2>PL 100</font></a><br>
    <a href='pompe\PL101.html' target='MAIN'><font size=2>PL 101</font></a><br>
    <a href='pompe\PL102.html' target='MAIN'><font size=2>PL 102</font></a><br>
    <a href='pompe\PL103.html' target='MAIN'><font size=2>PL 103</font></a><br>
    <a href='pompe\PL104.html' target='MAIN'><font size=2>PL 104</font></a><br>
    <a href='pompe\PL105.html' target='MAIN'><font size=2>PL 105</font></a><br>
  • DW not preview images of relative path root

    When the root relative paths are in the placement of the images, DW only mode preview when I saw in a browser (they appear as missing). They work fine when I look at the pages directly on the server, but do not preview. This setting is disabled? And as a side note, what is the best practice here? all my images must be referenced in the document or root relative paths?

    Thanks in advance - gift

    Select an excerpt with temporary files in the PREFERENCES. Then, it'll work. In the opposite case
    You cannot preview the links related to root. This isn't a matter of DW. It's a
    base management file thing. The browser has no idea where the root of the
    site is...

    --
    Murray - ICQ 71997575
    Adobe Community Expert
    (If you * MUST * write me, don't don't LAUGH when you do!)
    ==================
    http://www.projectseven.com/go - DW FAQs, tutorials & resources
    http://www.dwfaq.com - DW FAQs, tutorials & resources
    ==================

    "Donok" wrote in message
    News:g24lv7$HD7$1@forums. Macromedia.com...
    > When the root relative paths are in the placement of the images, DW preview
    > them
    > When I saw in a browser (they appear as missing). They work fine
    > when I
    > Look at the pages directly on the server but no preview. Is what setting
    > off?
    > And as a side note, what is the best practice here? expected all my images
    > be
    > referenced as a document or root relative paths?
    >
    > Thanks in advance - gift
    >

  • Captivate 2 - relative paths

    I have built several simulations, Captivate 2 and only just discovered that my links to external files are not related.

    I created links with buttons. I fixed them to open a URL or file on success. I then went through to the files I want to link to. The files are PDF files and html files that launch the other captivate published files.

    I saw that an absolute path has been inserted, but I hoped (in vain) that it could be converted into a relative when published path as long as I kept the same folder structure for my source and published files.

    Is it possible to implement a relative path in Captivate 2?

    Thank you.

    Grace D

    Hi Grace

    In General, the best way to create and ensure a relative path is to simply type the name of the file that you are linking. Never use a browse button to navigate to a file. By manually typing the name of the file, there is no way for Captivate know the way. Thus, it creates and maintains a relative path.

    See you soon... Rick

    Useful and practical links

    Captivate wish form/Bug report form

    Certified Adobe Captivate training

    SorcerStone blog

    Captivate eBooks

  • UDL connection with relative path database file

    Hi all

    I use the shipper of the property to retrieve the test of the database settings. I Specifies the database to read by using a .udl file.

    When opening a connection to database (using the step of database type) open I'm able to specify the location of the .udl file as follows:

    "FILE NAME=C:\\Development\\IW_EST_2\\TesterSoftware\\TS\\Database\\DatabaseConnection.udl;"

    It works fine for now. However, I'm developing on the computer that will be deployed on the sequence. It is for this reason that I would use a relative path.

    Is it possible to do? If so, how?

    Thank you very much

    Cam.

    You can use a UNC naming convention to specify the location of the UDL.

    A UNC name will replace a drive letter with a machine name and the share name.

    Example of a connection string, I use every day:

    "FILE NAME=\\\netapp1\\shared\\STE\\SPOTS.udl".

    (note that the quadruple backslashes before the name of machine)

  • Relative paths of the gateway requirements

    So I am using requirements gateway for a little while now and I are one of several developers to use, or one of the many people now the documents it contains.  We keep the Gateway project control requirements of source code with the documents and the project code in that respect.

    We met one of the problems was that this gateway requirements is configured as an absolute path if the path is not under the gateway requirements project path.

    Let's say I have a directory like this structure.

    \Requirements Gateway\ Q:\Project\Project [x]

    [X] Q:\Project\Project [x] \Project Documentation\

    Q:\Project\Project [x] Code\ [x] \Project

    When you add documents to the gateway requirements project it will add them however travel.  So if another developer gets the source on the V:\ drive control then it can not find documents or code.  We found that you can manually change the path of the documents to have a relative path by editing the .rqtf file manually in a text editor.

    Finally the problem.  This solution does not work for code TestStand or paths of LabVIEW code... why?  If I replace "[x] [x] Code\ \Project Q:\Project\Project"with"[, \Project[x] Code\ ' in the .rqtf project file and then open the project, it will say file not found.  The file may have been moved or deleted.  But all the documents that are configured to have relative paths work fine.

    Can someone tell me how to get access roads-related work for LabVIEW and TestStand code in Gateway requirements?  Thank you.

    Hooovahh-

    It is currently a lack of functionality for our types of TestStand and LabVIEW OR gateway 1.1 requirements. This is something that will probably fix us in the next version or Gateway requirements.

    Thank you for that bring to our attention.

Maybe you are looking for