Getting application absolute URL

Hi,
I am working with Portatl 8.1.
My need is getting the absolute URL to the portal web-app context path, i.e. the
good context path working with all desktops created using the portal administration
application.
How do I get it using the portal API ?

Thank you. I had tried that but got
(a) jndi:/localhost/myapp/
when what I wanted/hoped to get was
(b) http://localhost:8080/myapp/
Is there a solution?

Similar Messages

  • How do i get the absolute url using javascript?

    I know this isnt a jsp problem but would be grateful if anyone can help.
    In jsp the method request.getRequestURI() would be the equivilent of what I am looking for in javascript.

    document.location

  • Absolute URL of a file

    Hi:
    Does anyone know how to get the absolute URL of a file? in what form does it exist in

    I can't tell you how to GET it, because I don't know what you know about the file. But I can tell you that it should look like these examples:
    file:///user/bin/whatsit.so
    file://C:/gadget/config.txt
    Also you should be aware that the exact format of the file: URL is not well-understood (by me too) so you might have to use three slashes instead of two, or vice versa.
    Of course this is about a file on a local drive. If you're asking how to get the URL of a file accessible via HTTP or FTP, that's another question. Was that part of what you meant to ask? You weren't very clear.

  • Get runtime application server url

    I try to use web.show_document(url,target) and I don't know exactly the runtime url. It will be nice to retrieve it from form.
    Is it possible to get the runtime application server url inside form? If so how?
    Thanks!

    This was asked the other day on this forum and various suggesions came up - so have a search and see. However, there is no simple way.
    On the other hand do you really need the App Server URL - you can use relative URLS with WEB.SHOW_DOCUMENT if you neeed to..

  • Absolute url  not specified

    Hi,
    We had installed the Business Package for PPMDC (Business Package for Projects,Portfolio Management and Design Collaboration).
    While navigating to the portal on the Design Collaboration ->Collaborative Scenarios, and creating Collaborative Scenarios and clicking Save .
    We get the following error:
    The absolute url was not specified in the system administration (network tab).
    Also it also shows :
    Refer to the installation document First Steps with cFolders, which we do not find.
    Kindly assist me with this.
    Regards,
    Radeesh V

    Hi in the cFolders screen, go to the network administration link and in that go to network tab and enter the following:
    Proxy server name: http://servername (check with your basis)
    Proxy port number: xxxx (check with your basis)
    absolute url of the application: http://server:portname/cfolders/cfx_rfc_ui
    thanks
    p.s. If you are satisfied with the reply please reward.

  • Absolute url from h:form

    I need to send form data to an absolute url which is a jsp page out of my application.
    What should be in the attribute of CommandButton for this?
    Any help is greatly appreciated.

    Dear Sir, I have read your articles in your blog. http://balusc.blogspot.com/2007/03/post-redirect-get-pattern.html I have also posted a comment on this too. Frankly I am not an expert but I am learning jsf. I can still accomplish the task in jsp and html. But I want to learn JSF.
    I have the following case. I want all the <h:form> input data passed to an external url which reads them via the parameters names.
    I have created the following form in "process.jsp"
    <h:form prependId="false" id="form2" >
              <h:outputText value="Applicant Name: "></h:outputText>
              <h:outputText value="#{appbean.applicantName}" id="name"></h:outputText><br>
              <h:outputText value="AAMC ID" />
              <h:outputText value="#{appbean.aamcId}" id= "aamcid"></h:outputText><br>
              <h:outputText value="Applicant EmailId" />
              <h:outputText value="#{appbean.email}" id="email"></h:outputText><br>
              <h:inputHidden value="3.2" id="Version"></h:inputHidden>
              <h:inputHidden value="238098" id="Identifier"></h:inputHidden>
              <h:inputHidden id="Order_Items" value="0"></h:inputHidden>
              <h:inputHidden id="Order_Price" value="60"></h:inputHidden>
              *<h:commandButton  action="??" value="Process Payment" type="submit"></h:commandButton> *           
              </h:form>My appbean is as follows.
    public class ChmAppBean {
         public ChmAppBean() {
         private String email;
         private String aamcId;
         private String applicantName;
                    public String getEmail() {
              return email;
         public String getAamcId(){
              return aamcId;
         public String getApplicantName(){
              return applicantName;
         public void setEmail(String email){
              this.email = email;
         public void setAamcId(String aamcId){
              this.aamcId = aamcId;
         public void setApplicantName(String applicantName){
              this.applicantName = applicantName;
    }what should be there in the action="??" following code *<h:commandButton action="??" value="Process Payment" type="submit"></h:commandButton> *
    Your help is greatly appreciated in this regards. Kindly help..

  • Netui:anchor renders absolute url

    Hi there,
    I've got a Workshop application that runs in a clustered environment. Say, the application address is http://server1:7001/MyApp/Controller.jpf.
    The cluster has an IIS frontend. When I go to the URL https://frontend:1111/MyApp/Controller.jpf, the frontend host forwards my request to http://server1:7001/MyApp/Controller.jpf.
    This is all OK, but when my application uses authentication, the netui:anchors inside it render to absolute URL's like https://frontend:7001/MyApp/action.do.... , and I can't get past the opening page, because the frontend listens at port 7001.
    Whenever I remove authentication, the anchors are rendered to relative URLs.
    The anchors point to actions in the page flow. The WEB-INF/web.xml contains the following section:
    <security-constraint>
    <display-name>MyAppName</display-name>
    <web-resource-collection>
    <web-resource-name>myappname</web-resource-name>
    <url-pattern>/*</url-pattern>
    <http-method>GET</http-method>
    <http-method>POST</http-method>
    </web-resource-collection>
    <auth-constraint>
    <role-name>MyRole</role-name>
    </auth-constraint>
    <user-data-constraint>
    <transport-guarantee>NONE</transport-guarantee>
    </user-data-constraint>
    </security-constraint>
    <login-config>
    <auth-method>BASIC</auth-method>
    </login-config>
    <security-role>
    <role-name>MyRole</role-name>
    </security-role>
    When calling the server host directly, everything goes well with authentication, and also everything works well when calling the frontend with authentication disabled.
    Can anybody help me?
    Thanks,
    Warper

    Here's the answer.
    id="{pageContext.itemScript}"
    "JClaude" <[email protected]> wrote:
    >
    Hello I'm using a javascript that uses a calcultated id in the url link
    if I write the following:
    <netui:anchor action="navigate" id="<%=itemScript%>">
    </netui:anchor>
    I get the message : "this attribute does not support request time values."
    And if I write the following, I obviously get a string "{itemScript}"
    and not
    the value:
    <netui:anchor action="navigate" id="{itemScript}" >
    </netui:anchor>
    Is there a workaround other than "don't use javascript" or use <a>?
    Thanks,
    JC

  • New page on click of absolute url

    I need IE to open new page of the absolute url when user click the url on initial page, but as result the new page always replace the inital page but not open a new session, I also refer to the threads in the forum like adding "sap-sessioncmd=open" or "syscmd=nocookie" but still does not work, can anyone give me any suggestion?following is my coding:
    Layout of the page1.htm:
    <htmlb:link id = "link1"
                text = "google with new session"
                reference = "http://www.google.com"
                target    = "_BLANK"
                onClick   = "LinkClick">
    <htmlb:link>
    OnInputProcessing:
      if event_id = cl_htmlb_manager=>event_id. " HTMLB event?
        data: lr_htmlb_event type ref to cl_htmlb_event.
        lr_htmlb_event = cl_htmlb_manager=>get_event( request ).
        if lr_htmlb_event is not initial.
          if lr_htmlb_event->server_event = 'LinkClick'.
            call method navigation->use_absolute_url.
            call method navigation->goto_page
              exporting
                url = 'http://www.google.com/ncr?sap-sessioncmd=open'
    *          url = 'http://www.google.com/ncr?sap-syscmd=nocookie'
                session = 'NEW'.
          endif.
        endif.
      endif.
    Message was edited by: Patrick Yan

    now i got a few minutes to work on this.
    here is a sample code.
    in the layout of the flow logic:
    i am using button for example,
    1) <htmlb:button id = 'CONTINUE'
          text          = "Continue"
          onClick       = "OnInputProcessing(continue)" />
    2) create a page attribute called index and also link the 'continue' page to the same page in the BSP
    3)in the layout
    <% IF INDEX = '1'.(use the dynamic link)
    l_url = 'http://www.google.com/'. %>
        <script type="text/javascript">
      <!--
        window.open("<%=l_url%>","ErrorLog","width=400,height=250,left=250,top=200 dependent=yes resizable=yes");
      //-->
    </script>
    4) in the oninput processing of this page
    assign event
      l_event = cl_htmlb_manager=>get_event( runtime->server->request ).
      IF l_event->id = 'CONTINUE'.
      l_index = '1'.
           navigation->set_parameter( name  = 'INDEX'
                                 value =  l_index ).
        navigation->NEXT_page( 'CONTINUE' ).
    endif.
    so when you click on the button you should get the google page in a popup.
    this is working for me. let me know if you are still having problms.
    regards,
    manasa

  • Absolute URL's do not display in design editor

    if i create a new page in my Site and I display a absolute
    URL image in my page ie:
    http://images.apple.com/home/2007/images/finalcutstudio20070415.jpg
    a image from apple.com's homepage. the image displays
    perfectly inside my HTML preview inside dreamweaver.
    however.... :( if i take that same image and place it inside
    my site (in a image folder) and i link the image using an absolute
    URL ie:
    http://www.mysite.com/images/finalcutstudio20070415.jpg
    the image suddenly no longer will preview inside dreamweaver.
    what gives??? i can view a external absolute img URL from another
    companys website, but using the same site URL that my project
    contains displays a ? icon instead of the image, even though if you
    copy and paste that same URL into a browser the image loads. it
    ONLY works if the image is hosted on another site not associated
    with your sites URL. This is NOT the way dreamweaver 8 was
    working... in fact, i opened my site directly from dreamweaver 8
    and the image loaded perfectly. i can quit dreamweaver 8 and open
    CS3 and using the same site and same site settings that same image
    shows up as a ? and nothing will get through unless its a different
    website URL entierly!!! i am so confused... what has changed?
    and before someone says " you need to upload that image to
    your site" i am past that.. the image i took from apple
    http://images.apple.com/home/2007/images/finalcutstudio20070415.jpg
    i COPIED AND PASTED INTO MY WEBSERVER IMAGE DIRECTORY. so its
    absolutely 100% not a "your image shows up as a ? because it
    doesn't exist BS... no it exists.. its very much the correct URL..
    i can copy the absolute URL of my image on my site and paste it
    into a browser and it displays fine. its only dreamweaver CS3
    trying to do some weird crap that causes it to show up as a grey ?
    box. and remember.. in dreamweaver 8 i can open the page and it has
    www.mysite.com/images/image.jpg written in the code and it displays
    off my site PERFECTLY. someone have any clue why this is now not
    working, and how i can fix it without having to work entierly in
    relative URLS, and then go back and manually paste in my
    www.website.com in front of all relative URLS after i am 100%
    finished.. I would rather go back to dreamweaver 8 where it works
    than use CS3 and not have this feature working.... 1 step forward 2
    steps backward.

    you are going to have to tell me where "display remote URL's
    enabled" is at?
    i can tell you that i am able to see graphics from adobe.com
    when i place a remote URL in my code, it shows up. to make matters
    even more confusing and painful... i quit CS3, opened my site up in
    dreamweaver 8 and started working on the site. upon reading your
    reply, i quit 8 and reopened CS3 to see if i could find this
    "display remote URL's enabled" feature, and unable to find it, i
    did notice that my previous page with ??? now displayed correctly
    after being run through dreamweaver 8. what does this mean? is
    dreamweaver doing something with my remote site that CS3 is failing
    to do??? using the exact same setup and procedure... CS3 just fails
    miserably and I can't figure out why.

  • 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

  • Get the absolute path and filename of the file from the command line

    Hi,
    when we run the class we give the command
    java <filename>
    How can I capture the filename given above and get its absolute path inside the
    public static void main(String [] args){}
    args[0] gives me the command line argument after the filename. How do I capture the filename itself from the command line argument and also get that files absolute path
    Thanks

    I don't know of any way to capture the java command input, but there are ways to find out where the application is being run from. (the "absolute path")
    http://forum.java.sun.com/thread.jsp?forum=31&thread=335394

  • How to get the absolute path of a file from the local disk given the file n

    how to get the absolute path of a file from the local disk given the file name

    // will look for the file at the current working directory
    // this is wherever you start the Java application (cound be C: and your
    // application is located in C:/myapp, but the working dir is C:/
    File file = new File("README.txt"); 
    if (file != null && file.exists())
        String absolutePath = file.getAbsolutePath();

  • Get site collection url, site url and list url from a full uri?

    If I have incoming: only URI's of the format http://a.b.c/d/e/f/g/h/i/j/k/l/m/n/o/p.docx
    (And these are coming from multiple farms and multiple site collections) (and i have a web api on some remote server) (and have all the authentication details)
    And I want to query just the single the item via csom : check one column and if value="yes" then download the doc:
    a. how do i get the absolute site url out of it for " clientcontext ctx = new clientcontext(THISURL) "
    b. how do i then get the list uri out of it to push a caml query to to then retrieve it
    I could :
    a. strip off the filename, that is the easy part :)
    b.  I could paste "/_api/contextinfo" behind it and POST it first as a httprequest. Then first get the site and web url and later on
    find a way to find the list url (which is probably the first item behind the fullWebUrl), but it seems weird to mix this in the mix
    Basically im looking for something that tells me what is what in http://a.b.c/d/e/f/g/h/i/j/k/l/m/n/o/p.docx

    Sorry, GetList is only available in the O365 version of Microsoft.SharePoint.Client. If you could test for a root site collection and if there is not one then take the scheme ... + Uri.segments[0] and then get the context. After that you can use
    the GetFileByServerRelativeUrl. The following demonstrates this.
    public static void GetFileList()
    string fileUrl = "http://basesmc15/teamonesubone/teamsubonesubone/Shared%20Documents/folderholder/newauthor6.pdf";
    Uri fileUri = new Uri(fileUrl);
    Uri webUrl;
    ClientContext rootContext = new ClientContext(fileUri.Scheme + Uri.SchemeDelimiter + fileUri.Host);
    webUrl = Web.WebUrlFromPageUrlDirect(rootContext, fileUri);
    ClientContext subContext = new ClientContext(webUrl.ToString());
    File file = subContext.Web.GetFileByServerRelativeUrl(fileUri.AbsolutePath);
    List list = file.ListItemAllFields.ParentList;
    subContext.Load(list);
    subContext.ExecuteQuery();
    Blog | SharePoint Field Notes Dev Tools |
    SPFastDeploy | SPRemoteAPIExplorer

  • Getting application Name

    Hi Experts,
    I have PCD path of portal page. Can I get application path(the full path with project path and application name) of the application that portal page is holding?
    Regards,
    Gopal

    Hi  Gopal,
    Check this [thread|how do i retrieve the url for external window;
    It may be useful to you.
    regards,
    Siva

Maybe you are looking for

  • When adding albums to my library it keeps making a playlist for every album

    when i add albums to my library itunes adds them as playlist aswell how can i stop this. it only just started to do this why

  • LSMW Upload of Purchase Requisition MM

    Hi Experts, I have a quick requirement to create a LSMW project for creating the PR(Purchase Requisition) in the SAP system from a legacy data by means of uploading. I want the data of the header and item to be uploaded in one go. I searched the foru

  • All photos in album not showing in page view

    i read in one of the iweb support pages that you can only add 99 photos per album...however, i have an album that has 155 photos. so i thought, what the heck? keep loading them if it'll take it. however, in the page layout, not all 155 photos are sho

  • How to update multiple row using procedure in table

    Hi, create or replace procedure TESTLEDGER1(var_date varchar2) as var_date1 date; CURSOR C1 IS select DISTINCT ta.accountid,day PROCESSDATE, (NVL(payment,0))PAYMENT,NVL(TOTALDUE,0)TOTALDUE,NVL(currentbillamount,0)CURBILL,NVL(srf,0)SRF,NVL(sbpnt,0)sbp

  • FCPX Bug that I reported to Apple.

    Notice that the opacity on the timeline (video properties) vs the Inspector video properties opacity is different. The 1.8% and the 0% are at its smallest difference, after a bit of fiddling around with the keyframe markers and the opacity bar. I ini