How to move up within a URL path?

Recently started using URLs in my programs. Works great. However, all the
time I have been wondering how to move up in that URL path. For example,
if my url1=("http://www.something.com/") I normally end up at the index.html.
But how could one set up a relative url reaching a file or directory at the same
level as that index.html? I suppose one should go up onel level and then
specify the name of the required file.
I tried to use things like url2= new URL(url1,"../myfile") but that doesn't seem
to work.
Anybody has an idea? Thanks in advance.
Dirk

martin@work wrote:
Hi,
you can't, if your web server provides the minimum of security. In the web server configuration you normally map a base url to a physical directory on the server and the web server does its very best to assure that you can only access files in that physical directory and below, and that all other files on the server in any upper or parallel directories are not accessible.
If you want to access files in a parallel directory then you have to create a further mapping in the web server which maps another base URL to that directory.
Martin To reinforce what Martin says: if you cannot do this with your web browser, don't expect to do it with Java.
On the other hand, if you can do it in your web browser, we misunderstood your question and please
reformulate it using actual URL's (or at least the portion following the host name).
Edited by: baftos on Apr 25, 2008 9:28 AM

Similar Messages

  • In Lightroom mobile how can move photos within the collection????

    In Lightroom mobile how can move photos within the collection????

    What you can do is to move (or copy) a photo form one collection to another. This can be triggered via the top right app menu item from grid view. Same menu is available when you open up an image for editing. Hope that helps. -Guido

  • How to move elements within the master region of a Master/Detail spry data set?

    Hi there,
    I am unsure of how to move the different items within the master region of a master/detail spry dataset. The default style is such that if I include 3 or more elements e.g. Thumb, etc., they are stacked vertically :
    How do I move them so that they can be positioned differently? The look I am going for is one where the thumb image is positioned to the left while the other items are stacked alongside it so that the end effect for the master region would look like this:
    I greatly appreciate the help! Thanks!

    This is the complete page
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" xmlns:spry="http://ns.adobe.com/spry">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <title>Check :: Fashion+Lifestyle</title>
    <link href="styles.css" rel="stylesheet" type="text/css" />
    <script src="SpryAssets/SpryEffects.js" type="text/javascript"></script>
    <script src="SpryAssets/SpryData.js" type="text/javascript"></script>
    <script src="SpryAssets/SpryHTMLDataSet.js" type="text/javascript"></script>
    <script src="SpryAssets/SpryMenuBar.js" type="text/javascript"></script>
    <link href="SpryAssets/SpryMasterDetail_final.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript">
    <!--
    var cal4 = new Spry.Data.HTMLDataSet("calendarList.html", "calendarList", {sortOnLoad: "When", sortOrderOnLoad: "ascending"});
    cal4.setColumnType("Thumb", "html");
    cal4.setColumnType("Picture", "html");
    cal4.setColumnType("When", "date");
    function MM_effectAppearFade(targetElement, duration, from, to, toggle)
        Spry.Effect.DoFade(targetElement, {duration: duration, from: from, to: to, toggle: toggle});
    function closeAd() {
        document.getElementById('adRollover').style.visibility='hidden';   
    function MM_effectBlind(targetElement, duration, from, to, toggle)
        Spry.Effect.DoBlind(targetElement, {duration: duration, from: from, to: to, toggle: toggle});
    function MM_effectSlide(targetElement, duration, from, to, toggle)
        Spry.Effect.DoSlide(targetElement, {duration: duration, from: from, to: to, toggle: toggle});
    function MM_effectGrowShrink(targetElement, duration, from, to, toggle, referHeight, growFromCenter)
        Spry.Effect.DoGrow(targetElement, {duration: duration, from: from, to: to, toggle: toggle, referHeight: referHeight, growCenter: growFromCenter});
    //-->
    </script>
    <link href="SpryAssets/SpryMenuBarHorizontal.css" rel="stylesheet" type="text/css" />
    </head>
    <body>
    <div id="pageContainer">
        <div id="adBanners">
            <div id="halfBanner"><a href="#" onClick="document.getElementById('adRollover').style.visibility='visible';"><img src="images/banner_half_1.jpg" alt="Half Banner" width="237" height="90" /></a></div>
            <div id="leaderboardBanner"><a href="#"><img src="images/banner_leaderboard_1.jpg" width="728" height="90" alt="Leaderboard Banner" /></a></div>
            <div class="clearFloats"></div>
        </div><!--div#adBanners-->
        <div id="mainHeader">
            <div id="homepageLink"><a href="index.html"><img src="images/spacer.gif" width="400" height="100" /></a></div>
            <ul id="MenuBar1" class="MenuBarHorizontal">
                <li><a href="feature.html">FEATURES</a></li>
                <li><a href="#">FASHION</a></li>
                <li><a href="calendar.html" class="on">CALENDAR</a></li>
                <li><a href="#">VIDEO</a></li>
                <li><a href="blog.html">BLOG</a></li>
            </ul>
        </div><!--div#mainHeader-->
        <div class="MasterDetail">
          <div class="DetailContainer" id="event" spry:detailregion="cal4">
            <div class="DetailPicture">{Picture}</div>
            <div class="DetailColumn DetailTitle">{What}</div>
            <div class="DetailColumn"><div class="DetailLabel">WHEN:</div> {When}
            </div>
            <div class="DetailColumn"><div class="DetailLabel">WHERE:</div> {Where}
            </div>
            <div class="DetailColumn">{Details}</div>
          </div>
          <div id="calHeader"><p><img src="images/calendar_hdr.gif" width="492" height="100" /></p></div>
          <div spry:region="cal4" class="MasterContainer" onclick="MM_effectAppearFade(this, 1000, 0, 100, false); MM_effectBlind('event', 1000, '0%', '100%', false);">
            <div class="MasterColumn" spry:repeat="cal4" spry:setrow="cal4" spry:hover="MasterColumnHover" spry:select="MasterColumnSelected"><div class="MasterColumnPicture">{Thumb}</div>
              <div class="MasterColumnTitle">{What}</div>
              <div class="MasterColumnText"><div class="DetailLabel">WHEN:</div> {When}</div>
              <div class="MasterColumnText"><div class="DetailLabel">WHERE:</div> {Where}</div>
              <div style="clear:both"></div>
            </div>
          </div>
          <br style="clear:both" />
        </div>
    </div><!--div#pageContainer-->
    <div id="footer">
        <div class="text">Use of this site constitutes acceptance of our User Agreement and Privacy Policy. &copy; 2008 Adobe All rights reserved. The material on this site may not be reproduced, distributed, transmitted, cached, or otherwise used, except with the prior written permission of Adobe is a trademark owned by Adobe.</div>
    </div><!--div#footer-->
    <div id="adRollover" style="visibility: hidden;">
    <script language="javascript">
        if (AC_FL_RunContent == 0) {
            alert("This page requires AC_RunActiveContent.js.");
        } else {
            AC_FL_RunContent(
                'codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0',
                'width', '536',
                'height', '479',
                'src', 'watch_ad',
                'quality', 'high',
                'pluginspage', 'http://www.macromedia.com/go/getflashplayer',
                'align', 'middle',
                'play', 'true',
                'loop', 'true',
                'scale', 'showall',
                'wmode', 'transparent',
                'devicefont', 'false',
                'id', 'watch_ad',
                'bgcolor', '#ffffff',
                'name', 'watch_ad',
                'menu', 'true',
                'allowFullScreen', 'false',
                'allowScriptAccess','sameDomain',
                'movie', 'watch_ad',
                'salign', ''
                ); //end AC code
    </script>
    <noscript>
        <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="536" height="479" id="watch_ad" align="middle">
        <param name="allowScriptAccess" value="sameDomain" />
        <param name="allowFullScreen" value="false" />
        <param name="movie" value="watch_ad.swf" /><param name="quality" value="high" /><param name="bgcolor" value="#ffffff" />
        <param name="wmode" value="transparent" /><embed src="watch_ad.swf" quality="high" bgcolor="#ffffff" width="536" height="479" name="watch_ad" align="middle" allowScriptAccess="sameDomain" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
        </object>
    </noscript>
    </div>
    <script type="text/javascript">
    <!--
    var MenuBar1 = new Spry.Widget.MenuBar("MenuBar1", {imgDown:"SpryAssets/SpryMenuBarDownHover.gif", imgRight:"SpryAssets/SpryMenuBarRightHover.gif"});
    //-->
    </script>
    </body>
    </html>

  • How to hide the URL path on click of an link to URL element,from user

    Hi All,
          I have an link to URL element, on click of the link it opens the specified url in a new window. But in new window the user is able to see the entire URL path. I want to hide this path from the user. Can any one please suggest me how to do it.
    Regards,
    lakshmi.

    hi,
    just check this help
    http://help.sap.com/saphelp_nwce10/helpdata/en/f7/f289c67c759a41b570890c62a03519/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/7d/fdc99ab37a8d42892e0d39bbd23be8/frameset.htm
    Link to URL Question

  • How do I move photos within a journal (ie from 1 page to another) in iPhoto

    How do I move photos within a journal (ie from 1 page to another) in iPhoto

    iPhoto is not very smart with multiple photos...
    I don't think you can move multiple photos and I suggest the following turnaround, using the "combine pages" option mentioned in my previous reply.
    Create a blank page that you move next to the page(s) where the photos you want to move are; 
    then move your pictures there one by one (use the new page as a temporary parking space),
    then merge this new page were you want to move the multiple pictures, using the "combine pages".
    This would save time if your journal has many pages, so you don't have to move each photo through multiple pages but just to the next/previous page.
    I just made this up but I tried it and it works!

  • How can I move pictures within an Aperture library?

    I am asking about how to manage files within a library - not doing backups, exporting, relocating or anything like that.
    I just want to move a file from "project" to "project/folder". Moving can usually be accomplished with drag&drop. However here it does not appear to work. There most be another very obvious way to do it (Though for an Apple product I kinda expected d&d to work .

    The first step to figuring this out is to realize that masters and versions behave differently when you go to move them.
    The second step is to figure out what each type of container in Aperture can hold. That is Projects, albums and folders can all hold different things.
    To really get a handle on all this see the User Manual (Aperture Help or online at  http://documentation.apple.com/en/aperture/)
    The short answer to your question is that folders hold other folders, projects or albums, They do not hold images directly. So what you are trying to do can't be done.

  • How do I move pictures within Albums?

    I have an IPAD Air with iOS8.1 installed.  Why, when I added pictures did some of them get out of order?  How do I move pictures within Albums?

    To rearrange photos in an album:
    Open the album.
    Touch "Select"
    Touch and hold on a photo and drag it to the desired location.

  • My movies are giving a URL not found on server error message, last week they worked fine. After deleting one of them, I don't get any retries for a free download. How do I contact the seller to complain?

    My movies are giving a URL not found on server error message, last week they worked fine. After deleting one of them, I don't get any retries for a free download. How do I contact the seller to complain? Obviously the one of the other movies first..

    Stan -
    Thanks again for the simple but valuable tip.
    I'm just going to repeat the relevant sections from my previous post with the screenshots this time:
    Below you'll see a snip of how my current folder structure appears. It's identical to yours, except there are no button files in the General Folder. Since you were kind enough to include a file name, I did a search on that specific one and it's nowhere to be found on my hard drive. Hmmm....
    I've seen others remark on how... "challenging".... Adobe's instructions can be sometime. I'll admit to having the same feeling when I was trying to download and install all the content files and the 7-zip stuff. Is the answer somehow that I screwed up that?  Note the 7-zip folder right above the Adobe folder. Here's a screen shot of that expanded folder contents:
    Does that look like you think it should? Have I not installed or extracted something correctly?
    Finally, the only other thing I can think of to give you as much info as you might need is to include a screenshot of where the "Functional Content" stuff got saved. Adobe's instructions about this (if I recall correctly) were that it did NOT have to be installed anywhere specific, but you then had to go into Encore (& Premiere) and through preferences point to this stuff, which I believe I did. But I don't see any button type files in these anyway.
    Other thoughts or advice?
    Thanks!

  • HOW TO MOVE FROM ONE JSP TO ANOTHER BY HIDING URL CHANGES

    HOW TO MOVE FROM ONE JSP TO ANOTHER BY HIDING URL CHANGES IN AN ADDRESS BAR

    Please check before posting that you have not accidentally turned on the CAPS LOCK feature of your keyboard.
    To answer your question. You can't do that. There are alterate ways to solve this sort of problem. What exactly is the nature of the problem you are seeking to solve?

  • How to move files between folders within Lightroom 3?

    I would like to move a file from one folder to another within Lightroom 3 (let's not discuss why). I searched the threads but couldn't find the answer (maybe I missed it). When I click on a photo within grid view then drag and drop that file onto a different folder in the folder panel (to do the move), a little plus sign (copy) appears and a copy of the file is placed in the second folder. If I try to delete the photo from the original folder (to get the move), both copies of the file are removed. I've tried holding down all sorts of keys on the imac but cannot get the move to work. Ideally, I'd like to move a group of photos but cannot even move one. Does anyone know how to move files between folders in Lightroom 3?

    Your suggestion works. Thank you for posting it.
        Ron
    2010/10/28 Dorin Nicolaescu-Musteață <[email protected]>
    Try selecting the photos, right-clicking the target folder and choosing
    "Move Selected Photos to This Folder".
    >

  • How to move an object with its animation path, without adding a new keyframe?

    Hi,
    If I create an object which has a keyframe animation, how can I change its location/scale without adding new keyframes? That is, I want to move the whole thing with all its animations & keyframes as a single entity.
    thanks
    Arun

    Hi,
    big thanks for that. Unless Im doing something stupid when I did that it made a new copy of the object but did allow me to place that new instance elsewhere.
    Is there any way just to move an object and its path without making a new copy?
    All the best
    Arun

  • SP Designer Workflow: How to Get Full URL Path to List Item and inserted same list ITem URL in another list

    Hi,
    I have requirement in Sp Designer 2010,Get List item URL and insert in another list as one column value.When open another list and click on same item  column entry url will show the parent item information.
    Here i have create work flow and insert item URL in another list but cant find appropriate item url information.I can easily make  item url link through String builder in mail body with using current id and predefine link,but
    when try to insert the same type of item link in another list where i cant find string builder for create custom url link,only get valur of Path,URL,Absolute URL and Relative server URL,all these links or not provide me exact
    item link dispaly information.
    So I opened SharePoint Designer and start creating the workflow associated to the list.
    As there is some Field from source related to current item URL I start using it
    Encoded Absolute URL – this one should be the one to use
    Server Relative URL
    URL Path
    Unfortunately, none of these options were providing the correct link. Indeed, these options are providing an incorrect path:
    Encoded Absolute URL
    http://wfe1/Lists/bpf/1_.000
    Server Relative URL
    /Lists/bpf/1_.000
    URL Path
    /Lists/bpf/1_.000
    As you can see, the item URL is composed by an ID while it should be http://wfe1/Lists/bpf/dispform.aspx?id=1
    Hasan Jamal Siddiqui(MCTS,MCPD,ITIL@V3),Share Point Application Developer,TCS

    Unfortunately, [%Current Item:URL%] doesn't seem to be available from a "Site Workflow" associated to a List.   I'm finding less advantages to doing a "Site Workflow" when I don't necessarily need to.  One problem is the workflow is initiating
    twice.   I'm thinking I should have just created the workflow as a a "List Workflow."  
    I am going to try "Association Columns" -- that may work.  Anyone have other suggestions?

  • How do I move text within a cell down in "Numbers" please?

    I am trying to move text within a cell down in Pages. I use one cell as a topic and then add text in the  next row of a cell. It may seem strange to some but I have been doing it for years in Excel. Here is the best example I can give here:
    Customer
    Customer Notes
    ABC Company
    Imagine a long row of text here and I want to start a new line of text below this one without (within the same cell)
    Text would continue here but still within the same cell (I use to be able to just hit return in excel)
    Any ideas would be appreciated.
    Thanks so much! ;-)
    Thanks so much!

    Thanks so much Wayne... I spent quite a while searching for this to no avail lol.Have a great day!

  • How can I redirect APEX(EPG) URL with afrindly one

    Hi All,
    I am using APEX with EPG on oracle 11g, and I would to redirect the URL http://localhost:8080/apex/f?p=122:1:43920293912715::NO with a friendly one like this
    http://project_name.mydomain.com
    Is there any one can help me know; how to do this redirection where I would to hide the port no 8080 within the URL
    Thank you in advance
    Yassin

    Yasen® wrote:
    hi is this solution working for Apex on 11g with EPG? whrere to run this code?Yes, it should work on 11g with EPG.
    Using SqlPlus, log in as SYS and run the code posted by "user7449726" to change the path name and default home page of the DAD.
    To change the port from 8080 (the default) to 80, run the following as SYS using SqlPlus:
    CALL DBMS_XDB.SETHTTPPORT(80);
    ALTER SYSTEM REGISTER;
    Make sure you don't have anything else running on port 80 (such as Microsoft's Internet Information Server) or you will obviously get a conflict.
    - Morten

  • Open txt file in CV02n for URL path

    Hi
    I  stored atachment Text file in SAP content server for SRM SC document.
    and i have below HTTP url.
    http://1xxxxxxxx:1090/ContentServer/ContentServer.dll?get&pVersion=0046&contRep=BBPFILESYSTEM&docId=E03E3F4E929E9BF1B4100026B98BDDE2&compId=linknew.TXT
    I want to open the file in notepad from CV02N without opening browser. How to do this.
    I used data carrier INTERNET and TYPE as UR, In this case its opening browser and opening text file.
    But i dont want to open browser, instead i want to open only text file.
    I already did customizing in ERP system for TXT file and if i checkin text file in CV02N i am able to open it in notepad.
    simmilarly i want to open URL path file also.
    Pls sugges me how to do this
    Regards
    Chandra
    Edited by: princeck on Feb 24, 2011 10:09 AM

    Make sure the filename has an absolute path. If the path is relative it will point to a different location depending on where you run the program from.
    When you run it from within Xcode itself the binary is buried way inside the project hierarchy (you can see where it is by selecting the program in the  Products folder and doing a Show in Finder).
    The safest bet is to always specify a specific directory for any writes you do.
    regards
    As an example for this program in Xcode (assumoing you will be able to see the images)
    The binary is located here

Maybe you are looking for

  • IBook, 23" Cinema Display and a G4 DP 867

    I'm trying to make a iBook 12" work with the 23" Cinema Display without the use of a VGAtor. I was thinking I could run it through the G4 DP 867 using one of Apple's apps. Can this be done?

  • How to control text animation duration?

    I found a similar question to this in a forum for a different product, but the only answerer didn't know the answer and merely recommended "experimenting around until you figure it out," which is possibly the most unhelpful answer ever.  Lol. My ques

  • Recovery of files from a damaged disk

    Mid 2008 MacBook: All the disk utilities and fsck -fy indicate an error in the disk and stop working. I can boot to a linux OS and see the contents of the drive but the documents folder is locked, saying I'm not the owner. At this point i just want a

  • ICC profiles jpeg in SWF

    Hi, Is it possible to embed an ICC profiled (CMYK/RGB) jpeg image in the SWF file? From which flash player version is it supported? Are there any API's in action script 3.0 to help creating the same? Thanks Rahul

  • How to edit webpages as pdfs

    Hi, I need to create pdf of web pages I am creating. The editor I work with wants to see how the pages look before they are published, but would like to make her annotations on a pdf. Is there a way I can do this from Muse? Thanks!