Confused: relative HREF links

The following file:
project/WEB-INF/subfolder/myLink.jsp
has an HREF link to
project/myTarget.jsp
The link in myLink.jsp is:
The above link works, but I do not know why. Why wouldn't the following work? After all, relative to myLink.jsp, the target page is two folders above in the hierarchy? How do these relative links work?
I'm trying to learn Struts so does that have something to do with it? The page from which I am clicking the link is something like:
http://localhost/project/blah.do
Is there any other info I can provide to clarify my question? Explanation of this issue would be appreciated. Thanks.

../../ is equivalent to moving to previous folder twice
ie similar to performing cd.. twice in cmd prompt
suppose if your folder structure is
project/web-inf/myfolder/myjsp.jsp
if u have proj.jsp in project forlder
then you got to specify in href as ../../proj.jsp
what it does is the controller skips web-inf and myfolder folders and comes to project folder and searches for the req jsp
basically ../../ deals with folder structure.
bye

Similar Messages

  • How do I create a HREF link to javascript-created ages?

    Hello,
    I'm not sure where else to turn with this question, so I
    apologize if it's not forum-related.
    I'm using DreamWeaver MX to edit and tweak pages that are
    created with Extensis Portfolio 8 and their NetPublish plug in. I
    am attemping to add a link to my Search, Results and Details pages
    that would open each of these pages in a new window in order to
    make them "printer-friendly" (these pages are currently nested
    within a few frames). The catalog that I've created features
    keyworded photos, and since the users will all get different search
    results based on what they're looking for, the address will always
    vary (especially for the Results page). An example of this address
    would be:
    http://ourwebadress/netpub/server.np?find=&catalog=catalog&site=catalognamehere&template=
    results.np&field=Keywords&op=matches&value=Dallas&value=brownstone&field2=Keywords&op2=
    matches&search=View+Your+Search+Results
    This address shows images based on my search for "Dallas" and
    "brownstone," and because this address would change with every new
    search it's useless as a permanent link.
    My questions is, is there an HREF link command (or perhaps
    something else) that would simply open the existing page in a new
    window, no matter what the page's current HTTP address is? Any
    insight with this would be very appreciated!
    Many Thanks!

    Adobe does NOT make the iPad, Apple does.
    This forum is not for general iPad questions. For that head to the forums at the Apple website: www.apple.com.
    You can download the documentation for your iPad in PDF form at the Apple website, and ask questions there.

  • How do I create a HREF link to javascript-created pages?

    Hello,
    I'm not sure where else to turn with this question, so I
    apologize if it's not forum-related.
    I'm using DreamWeaver MX to edit and tweak pages that are
    created with Extensis Portfolio 8 and their NetPublish plug in. I
    am attemping to add a link to my Search, Results and Details pages
    that would open each of these pages in a new window in order to
    make them "printer-friendly" (these pages are currently nested
    within a few frames). The catalog that I've created features
    keyworded photos, and since the users will all get different search
    results based on what they're looking for, the address will always
    vary (especially for the Results page). An example of this address
    would be:
    http://ourwebadress/netpub/server.np?find=&catalog=catalog&site=catalognamehere&template=
    results.np&field=Keywords&op=matches&value=Dallas&value=brownstone&field2=Keywords&op2=
    matches&search=View+Your+Search+Results
    This address shows images based on my search for "Dallas" and
    "brownstone," and because this address would change with every new
    search it's useless as a permanent link.
    My questions is, is there an HREF link command (or perhaps
    something else) that would simply open the existing page in a new
    window, no matter what the page's current HTTP address is? Any
    insight with this would be very appreciated!
    Many Thanks!

    Thank you.  After renaming the ePub file extension to ZIP, I updated the html files to replace the "http://tel" with "tel", rezipped the files, renamed to ePub -- and this corrected the issue.

  • Href links in slideshow not working

    hi,
    I have created a non-flash slideshow with WOW Slider which I find to be a very good program and is jquery based.
    the actual slideshow runs fine on iPad, my PC - and Android devices,
    but:
    the six slides have links embedded to other websites, that I have set up to run in a new window, and work fine on PC & Andoid
    but on the iPad the outbound links do not work - yet an href link will work on the iPad if called from a static image.
    I'm at my wits end with this, and any help would be really appreciated.
    thanks,
    Kevin UK
    nb: the problem page is:  http://www.kevbro.co.uk/slides.htm
    the wow slider code is:
    <!-- Start WOWSlider.com BODY section --> <!-- add to the <body> of your page -->
    <div id="wowslider-container1">
    <div class="ws_images">
    <ul>
    <li><a href="http://www.farnworthsom.co.uk/" target="_blank"><img src="data1/images/010.jpg" alt="my latest work" title="my latest work" id="wows1_0"/></a>Driving Instructor training, help with the ADI Standards Check etc</li>
    <li><a href="http://www.kevbro.co.uk/chris/index.htm" target="_blank"><img src="data1/images/007.jpg" alt="small business site" title="small business site" id="wows1_1"/></a>Hanging Baskets and Landscaping </li>
    <li><a href="http://www.kevbro.co.uk/magellanfoods/index.html" target="_blank"><img src="data1/images/009.jpg" alt="local Food Company" title="local Food Company" id="wows1_2"/></a>a large site with an online ordering system</li>
    <li><a href="http://www.carols-pastels.co.uk" target="_blank"><img src="data1/images/001.jpg" alt="Carol's pastels" title="Carol's pastels" id="wows1_3"/></a>the lovely artwork of my talented wife </li>
    <li><a href="http://www.carols-pastels.co.uk/books/" target="_blank"><img src="data1/images/002.jpg" alt="Carol's first book" title="Carol's first book" id="wows1_4"/></a>a charming fantasy tale for children. </li>
    <li><a href="http://www.kevbro.co.uk/canyon/index.htm" target="_blank"><img src="data1/images/005.jpg" alt="Grand Canyon" title="Grand Canyon" id="wows1_5"/></a>my tribute to 9 brave men in replica boats</li>                 
    </ul>
    </div>
    <div class="ws_bullets"> <div>
    <a href="#" title="my latest work">1</a>
    <a href="#" title="small business site">2</a>
    <a href="#" title="local Food Company">3</a>
    <a href="#" title="Carol's pastels">4</a>
    <a href="#" title="Carol's first book">5</a>
    <a href="#" title="Grand Canyon">6</a>
    </div>
    </div>
    <span class="wsl"><a href="http://wowslider.com/vu">image carousel</a> by WOWSlider.com v7.3</span>
    <div class="ws_shadow"></div>
    </div>   
    <script type="text/javascript" src="engine1/wowslider.js"></script>
    <script type="text/javascript" src="engine1/script.js"></script>
    <!-- End WOWSlider.com BODY section -->

    I have tried many of them Frank ...
    jquery ones like Wowslider, Virtual lightbox, Juicebox, Nivo slider, and css based one's like CSS slider et al.
    and believe me when I say that I have found none of them to be totally reliable across all the varied devices.
    whilst what I have resorted to is quite basic, it gets the job done - particularly given my age and what I am hoping to achieve with my site.
    as a kind of thank you to Michael and yourself, there are links below to two small pages I did ages ago that may give you a bit of a chuckle.
    they are not mentioned on my site, and I'm not sure if they work on iPads.
    http://www.kevbro.co.uk/galway/bay.htm
    http://www.carols-pastels.co.uk/Nigerianphone/phone.htm
    all the best,
    Kevin

  • Related Item link is broken in DispForm.aspx for a task in Workflow Tasks list if file name contains " ' " (single quote)

    Description:
    We have created a custom workflow in Microsoft Visual Studio 2013 and SharePoint 2013. This Workflow is associated with a Document library.
    This Workflow starts as soon as any new item is created OR updated in Document library and creates a Task in Workflow Tasks list.
     Related Item link is not working in following scenario -
    Upload a file that contains “ ' “
    in its name, in a document library
    Navigate to Workflow Tasks list
    Open View Item form (DispForm.aspx ) of  Task Created by workflow then click on link in Related Item fields
    OUPUT:
    Related Item link  truncates after “ ' “
    Eg.
    Original Link: http://<Site URL>/Documents/te'st.txt
    Related Item Field: http://<Site URL>/Documents/te
    Is this known bug in SharePoint 2013 OR any hotfix available to fix it.

    Hi,
    As I tested per your description, I can reproduce the issue as well.
    From what I have found out, it seems SharePoint resolve single quote into different code in different place. During the test, if I set Task Name to Document Name, single quote will be resolved to &#39; , if I set some field to Document encoded URL, single
    quote will be resolved to %27 . For now, I haven't found out any article talking about this issue.
    As workaround, we may find out a way to change the Related Item field. However, it is OOB field in workflow task (SharePoint 2013) content type, and this content type cannot be modified in form.
    I'd suggest you add new column to get document url and place in the form in Task content type settings.
    Regards,
    Rebecca Tu
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • Relative href problems

    Up to recently I've been working with XSLT 1.0 stylesheets and using relative hrefs without trouble. Now with the XSLT 2.0 stylesheets I get an error that the protocol is missing.
    If I change my hrefs to "file://myxsl.xsl" there is an error message, unknown host mysxsl.xsl. If I use "file://full/path/to/file/myxsl.xsl" it works, but I need a relative path. Can anyone explain how to get relative hrefs to work in XSLT 2.0?

    Hi Leon,
    Hope you are using this to load the xsl file.
    Are you doing like this?
    Transformer transformer = null;
    TransformerFactory transformerFactory = TransformerFactory.newInstance();
    transformer = transformerFactory.newTransformer(new StreamSource(<XSL FILE>));
    For this you need to provide the absolute path or the xsl should be in the classpath
    If your XSL is in the class path then it doesnt matter.
    Regards
    Aneesh A.V

  • MSS - General Information - authorisations with Related Activities Links -

    Hello,
    We implemented related activities links on the MSS portal. We can see the links, but when we click on it, nothing happens, the iview (JAVA dynpro) is not executed.
    I checked the monitoring, and I noticed an authorisation problem with this service : sap.com/mss~eepro/GeneralInformation.
    It's been few days I am looking for where add this authorisation... could you help me ?
    Thank you.
    Nick

    Can you paste the exact error trace from Monitoring....
    However, required authorizations could be given at :
    System Administration -> Permissions ->
    and then below path in PCD
    pcd:portal_content/com.sap.pct/srvconfig
    I think exact is
    pcd:portal_content/com.sap.pct/srvconfig/com.sap.pct.erp.srvconfig.mss/com.sap.pct.erp.srvconfig.eepro/com.sap.pct.erp.srvconfig.fpmapplications/com.sap.pct.erp.srvconfig.GeneralInformation
    However there could be an authorization problem with R/3 end.....
    So please add informative part from Monitoring to this thread....
    Edited by: Saurabh Agarwal on Jul 22, 2011 1:31 PM

  • MSS - General Information - Related Activities Links

    Hi,
    what is the best/easiest way to change the MSS - General Information - Related Activities links?
    Thanks!
    Elvez

    Hi,
    created a custom area and assigned it to my "Related Activities" iView.
    /Elvez

  • Related Information link on Vendor & Voucher Component not appearing on 9.1

    Greetings All,
    I am not able to see the "Related Information link" on the Vendor & Voucher Components. I know this feture is something new and delivered as part of 9.1; Can someone help me out? How can i see this on my components.
    Thanks in advance.

    Do you have an authentication domain setup for PIA/web profile?
    Is your integration broker setup properly?
    Have a look at this post
    http://bloggingaboutoracleapplications.org/setting-up-predelivered-related-content-services/
    Edited by: Hakan Biroglu on May 30, 2013 9:23 PM

  • Related Content links in the repository tables

    We have 150 FR reports and many of them are using Related Content links. I am trying to find the easiest way to view all the Reports that have Related Content links and which reports they are linking to. I was trying to see about writing a sql against the tables but need to know which tables to join and what fields to select.
    If anyone has a sql they have built to do similar selects or a feature in EPM that I am missing let me know.
    Thanks!
    Robert

    Indeed, we have the same issue with our Solaris 10 containers.
    None of the network interface are visible since we upgraded to Solaris 11.1.
    Highly likely that we will have to fallback to 11.0
    root%A-infmagt004[8] zoneadm -z udsr02 boot
    Dec 7 09:55:41 gvas-infmagt004 mac: [ID 469746 kern.info] NOTICE: net0 registered
    Dec 7 09:55:41 gvas-infmagt004 mac: [ID 469746 kern.info] NOTICE: dmz0 registered
    Dec 7 09:55:41 gvas-infmagt004 mac: [ID 469746 kern.info] NOTICE: vd155 registered
    Dec 7 09:55:41 gvas-infmagt004 mac: [ID 469746 kern.info] NOTICE: vd157 registered
    Dec 7 09:55:41 gvas-infmagt004 mac: [ID 469746 kern.info] NOTICE: vd153 registered
    Dec 7 09:55:41 gvas-infmagt004 mac: [ID 469746 kern.info] NOTICE: vd301 registered
    Dec 7 09:55:43 gvas-infmagt004 dlmgmtd[65]: [ID 183745 daemon.warning] Duplicate links in the repository: net0
    Dec 7 09:55:43 gvas-infmagt004 dlmgmtd[65]: [ID 183745 daemon.warning] Duplicate links in the repository: dmz0
    Dec 7 09:55:43 gvas-infmagt004 dlmgmtd[65]: [ID 183745 daemon.warning] Duplicate links in the repository: vd155
    Dec 7 09:55:43 gvas-infmagt004 dlmgmtd[65]: [ID 183745 daemon.warning] Duplicate links in the repository: vd157
    Dec 7 09:55:43 gvas-infmagt004 dlmgmtd[65]: [ID 183745 daemon.warning] Duplicate links in the repository: vd153
    Dec 7 09:55:43 gvas-infmagt004 dlmgmtd[65]: [ID 183745 daemon.warning] Duplicate links in the repository: vd301
    root%A-infmagt004[4] zlogin udst02 ifconfig -a
    lo0: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232 index 1
    inet 127.0.0.1 netmask ff000000
    useless.

  • Hide href link Sharepoint page

    How can I hide a href link in my sharepoint page depending on permission ?

    Hi,
    string groupName = "Team Site Visitors";
    SPUser userName = SPContext.Current.Web.CurrentUser;
    string strconcat=string.Empty;
    using (SPSite spSite = new SPSite("http://sp-test/"))
                    using (SPWeb spWeb = spSite.OpenWeb())
                        SPUser user = spWeb.EnsureUser(userName.LoginName);
                        strconcat = "<a ";
                        if (user.Groups.Cast<SPGroup>().Any(g => g.Name.Equals(groupName)))
                            strconcat += "href="+"'http://www.google.com'";
                        strconcat += ">First</a>";
                        links.InnerHtml = strconcat;
    Thank You, Somnath Matere

  • Href link problem in portlet

    Hi guys,
    I created a map in a page flow and generated a portlet for the "page flow". Moreover the portlet is just one of my portlets in a portal.
    When I click a href link in the map's page,I want the link page shown in the portlet.But in recent situation,the link page will appear in a independent page.Namely,the link page appear out of my portal environment.
    I hope that the link page can appear in my portlet.Does anyone have some idea about it?

    Thanks for your reply. In my application, I want to make a map like the codes below,but I think "netui tag library" doesn't support it.So..is there anyway to transform the <area> tag to a netui tag? And I want all these pages in a portlet,namely,I want each portlet to be a function unit.
    <map name="estoremap">
    <area alt="China" coords="446,123,554,206" href="/portalproj/china.jsp" shape="RECT" />
    </map>
    <img border="0" usemap="#estoremap" src="/portalproj/img/worldmap.gif"/>

  • Href links in theme_6 (centered blue)

    Running hosted Apex 4.0.1.00.03
    I use theme_6 in my apex application. The problem I would like to solve is the href links. This theme sets the text-decoration to "none" (/i/themes/theme_6/css/theme_4_0.css). Is there anyway I can change this behavior from withing Apex. I want my links underlined as it is common standard in web pages.
    Again I run this application on hosted box so no possible to change the css itself.

    Tomek,
    On a page, you would edit the page
    <script type="text/css">
    a:link {
    text-decoration:underline;
    </script>
    For an application, you would replace the page template:
    1. Create a MYCSS.css [where MYCSS is your CSS file - any name would do]
    2. Go to Shared Components and click on Static Files. Click on Create, choose the application, and select MYCSS.css as the Filename, and click on [Upload]
    3. Copy your current page template to mypagetemplate.
    4. Modify mypagetemplate:
        Before th #HEAD#, you would place the following statement
       <SCRIPT type="text/javascript" src="#WORKSPACE_IMAGES#MYCSS.css" ></SCRIPT>
    5. Edit your theme - Click Themes in Shared Components, Click on Theme 6, click on Edit Theme 6 under Tasks, and replace page in Component Defaults to  mypagetemplate.** Note: Please click on Helpful and/or Correct to give credit to the helper **
    Robert
    http://apexjscss.blogspot.com

  • Sending a href link through data services

    Hi Ive been tring to send a href link in my chat but it just
    appears in the plain text and not clickable. Does anyone know how
    to do this or if its possible.
    private function sendMessage():void
    var message:AsyncMessage = new AsyncMessage();
    message.body = {userId: userId.text, recipientId:
    dg.selectedItem.userId, text:lbl.htmlText};
    producer.subtopic = dg.selectedItem.userId;
    producer.send(message);
    <mx:Label id="lbl" selectable="true" >
    <mx:htmlText>
    <![CDATA[<a href='event:
    http://www.adobe.com'>Navigate
    to Adobe.com.</a>]]>
    </mx:htmlText>
    </mx:Label>

    Hi,
    If I am correct, as far as the messaging is concerned it is
    just a text which you are passing. If you want the text (Anchor in
    your case) to be work as an anchor, then I think you need to handle
    that when you are displaying the text.
    Hope this helps.

  • Relative symbolic links damaged by Finder

    I have little experience of these matters and would be grateful if somebody could explain the apparent differences between command line and Finder use of relative symbolic links. The example below examines relative symbolic link z before, during and after it has been moved twice by the Finder.
    G4:~ neville$ cd /x/y
    G4:y neville$ ln -s ../ z
    G4:y neville$ ls -l
    total 8
    lrwxr-xr-x 1 neville staff 3 4 Jul 21:46 z -> ../
    Move z to x with Finder.
    G4:y neville$ cd ../
    G4:x neville$ ls -l
    total 8
    drwxr-xr-x 3 neville staff 102 4 Jul 21:48 y
    lrwxr-xr-x 1 neville staff 3 4 Jul 21:46 z -> ../
    The above listing is as I would expect and Finder's Get Info confirms that z points to root.
    Move z to y with Finder.
    G4:x neville$ cd y
    G4:y neville$ ls -l
    total 8
    lrwxr-xr-x 1 neville staff 3 4 Jul 21:46 z -> ../
    The above listing is as I would expect but Finder's Get Info still shows z pointing to root.
    Is it possible that the first Finder move converts the Finder's view of z to an absolute path so that subsequent Finder moves no longer maintain the correct relative relationship? Clearly the Terminal continues to report what one would expect although, unfortunately, double clicking z appears to confirm the Finder's incorrect interpretation.
    How can I ensure that the Finder does not alter relative symbolic links and hence maintain consistency between Terminal and Finder?

    Neville Hillyer wrote:
    I was not aware that the Finder had a cache - where is it?
    In the Finder process.
    killall Finder is a little drastic - is there a way to clear the cache or force an update without relaunching the Finder?
    No. The cache is there to prevent repeated disk accesses. It wouldn't help to store such a cache on disk.
    I wonder if this cache foible is likely to ever result in serious loss of data due to imperfect backups etc - can anybody think of any such issues?
    No. This is only in the Finder processes. If your backups relied on the Finder, opened relative symbolic links, then moved them around, then opened them again, it might have problems. That would be a really wacky backup program.
    Symbolic links are UNIX things and, as such, are rarely manipulated by the Finder. The expectation is that anyone using symbolic links will do so from a shell.
    My understanding is that relative links are often used by applications during normal operation and installation.
    Not often. When they are used, they are rarely opened with the Finder and then moved.
    I came across this while customising Thunderbird for easy deployment with different users/Macs. Relative links made the task much easier.
    The links themselves have not been changed. They will work fine in Thunderbird.
    There is an almost total lack of information in man pages about relative links
    There is plenty of information. It is mostly in developer documentation related to file systems.
    It would be much more helpful if Finder Get Info were to display relative paths in the same way as the Terminal ie: z -> ../
    That would only make the problem worse. Get Info clearly shows the Original being in the wrong location. The Finder was designed for Aliases, not symbolic links. Symbolic links work in the Finder a whole lot better than Aliases work in the Terminal.

Maybe you are looking for

  • Schedule view in Calendar

    Up to OS10.9, there is an option to show calendar events in a column, and event details in an adjacent column. Days without events were skipped. This was called "Schedule View". After upgrading to Yosemite, this option has disappeared. I find it very

  • Regarding rounding off value in pricing procedure

    hi fi professionals, i have an issue regarding pricing procedure, pls help me out, its urgent i have a condition type, zrou(rounding off value) the fanda is- when i am creating po- my net value is suppose- 19.90. so my client requirement is- 0.10 so

  • Required details not found in foundation tables (FND_TABLES, FND_COLUMNS)

    Hi, We are trying to extract the details of database tables in Oracle E-business Suite(12.1.1) applications (and column details of these tables). For this, we are using following foundation tables in Oracle E-Business Suite database: FND_TABLES and F

  • What are the tables that Contains DTP Filter Entries

    Hello, for the filter entries on a DTP Process I found the table RSBKSELECT "Selections for DTP Request (Summary)". But that holds only value which are done generic by Formula etc. but not the information which are entered manual. Does anybody knows

  • Question about logon screen customization

    Hi, I have to customize the web logon screen of the BEx. In SICF, on the BEx service, on the Error Pages tab, System logon is checked. If i click on the Setting button I have : Define Service-Specific Settings System ID Language System Messages Logon