How to get the base url

Hi,
when configure the BPM, we set the base url (http://host:port/), which will be used in the default notification sent by bpm.
now we want to include that url in our notification step. is there a way to get that url?
Best regards,
John

Hi John,
Would you please share the solution you found for this problem, maybe the EJB source codes or something like that? It would really help the ones like me who have the same problem and looking for a solution.
Thanks in advance...
Best regards,
Utku.

Similar Messages

  • How to get the customize url of an portlet using PLSQL

    How to get the customize url of an portlet using PLSQL.

    Are you trying to call the portlet Customization form directly from the browser?

  • How to get the current URL in UIX

    I've tried:
    ${pageContext.request.requestedURL}
    ${uix.bajaContex.servletRquest.requestURL} (works but returns .uix, I want .do links)
    They didn't work.
    Thanks,
    Eduardo

    Eduardo,
    I guess that this has to do with the way that Struts and UIX controllers work together. My assumption is that though you see .do in teh URL, its actually .uix that is processed at last.
    Can't you get the request URL from the findForward method in the Struts DataAction ?
    Frank

  • How to get the server URL?

    I am running WLS server on my machine to host a web app in ADF. How can I get the server name in my manged bean. I dont want to hardcode. The URL is something like this
    http://<my-machine-name>:<port>/epmos/faces/myapp/MyPage.jspx
    How can I retrieve the part
    http://<my-machine-name>:<port>

    In JSFUtils there is a getPageURL method. it will give the whole URL of your page. you can play with the URL string to get the part you need.
       * Method to create a redirect URL. The assumption is that the JSF servlet mapping is
       * "faces", which is the default
       * @param view the JSP or JSPX page to redirect to
       * @return a URL to redirect to
      public static String getPageURL(String view)
        FacesContext facesContext = getFacesContext();
        ExternalContext externalContext = facesContext.getExternalContext();
        String url =
          ((HttpServletRequest) externalContext.getRequest()).getRequestURL().toString();
        StringBuffer newUrlBuffer = new StringBuffer();
        newUrlBuffer.append(url.substring(0, url.lastIndexOf("faces/")));
        newUrlBuffer.append("faces");
        String targetPageUrl = view.startsWith("/")? view: "/" + view;
        newUrlBuffer.append(targetPageUrl);
        return newUrlBuffer.toString();
      }

  • CodeActivity, how to Get the OrganizationService URL?

    Hello,
    I'm developing a CodeActivity and I need to know which environment I'm using. To acomplish this task I need to know what is the Server URL that the IOrganizationService is using. Do you know how to do this in a CodeActivity?, is the URL in some place inside
    the CodeActivityContext?, this is my code:
    protected override void Execute(CodeActivityContext executionContext)
    try
    IWorkflowContext context = executionContext.GetExtension<IWorkflowContext>();
    IOrganizationServiceFactory serviceFactory = executionContext.GetExtension<IOrganizationServiceFactory>();//String orgURL = ...
    Just Programming

    function () {
    ///<summary>/// Returns the URL for the SOAP endpoint using the context information available in the form/// or HTML Web resource.///</summary>var OrgServicePath = "/XRMServices/2011/Organization.svc/web";
    var serverUrl = "";
    if (typeof GetGlobalContext == "function") {
    var context = GetGlobalContext();
    serverUrl = context.getServerUrl();
    else {
    if (typeof Xrm.Page.context == "object") {
    serverUrl = Xrm.Page.context.getServerUrl();
    else
    { thrownew Error("Unable to access the server URL"); }
    if (serverUrl.match(/\/$/)) {
    serverUrl = serverUrl.substring(0, serverUrl.length - 1);
    return serverUrl + OrgServicePath;
    Theres a SDK function that grabs the URL ...not sure if it can be called in that context but figured i'd throw it out there just in case.

  • How to get the page url

    Hi,
    I have a form and a dynamic page for displaying error. If error occurs I want to go to the dynamic page , display the error and go back to the previous page with same session. I want the url to go back to the previous page with session.
    Thanks,
    Sumita

    Hi,
    You can try using this
    wwa_app_module.set_target('<portalschema>.dynamic_page.show?p_redirect_url=<portalschema>.wwa_app_module.show?p_sessionid=','CALL');
    Thanks,
    Sharmila

  • How to get the Real Path of a file which is accessed  by URL?

    iam using tomcat6.0.
    I have a file xyz.xml at the top of the webapplication HFUSE which i can able to access by URL
    http://localhost:8080/HFUSE/xyz.xml
    My problem is how to get the realpath of the file "xyz.xml" for reading and writing purposes.
    I tried various things but i could not able to successfully solved the problem?
    1) File f = new File("/xyz.xml");
    print(f.getAbsolutePath()) ============== it is not fetching the file @ http://localhost:8080/HFUSE/xyz.xml rather it is creating a file
    at the root of the drive where eclipse is running.
    2) File f = new File("xyz.xml");============> this is also not working , it is creating the file xyz.xml in the eclipse directory ..................
    Can anyone please guide on this problem?

    RevertInIslam wrote:
    If you want your context root(i.e HFUSE)
    use this:
    request.getContextPath() //where request is HttpServletRequest object to get the needful path.
    e.g:
    File f = new File(request.getContextPath()+"/xyz.xml");//it will create the file inside HFUSE.
    Hope this helps.
    Regards
    BWrong. The File constructor expects an absolute filesystem path. The HttpServletRequest#getContextPath() doesn't return the absolute filesystem path, it only returns the relative path from the current context root. Use ServletContext#getRealPath() instead, it returns the absolute filesystem path for the given relative path from the current context root.
    File file = new File(servletContext.getRealPath("/"), "xyz.xml");

  • How to get the current page URL

    HI All
    I am working in oracle apps 4.0
    I have one page called history in that i have one page item called Application url. My application id is 122 but its a copy of application 106
    How to get the current page url for the page item.
    Any steps should be help ful
    Thanks & Regards
    Srikkanth.M

    I'm not 100% clear on what the requirement is from the description, however it does sound like you are making things unnecessarily complicated.
    If you want permanent/ID-independent links then use application and page aliases.
    so here we used to display the url like this: <tt>{noformat}http://81.131.254.171:8080/apex/f?p=122{noformat}</tt>
    Do you mean that the URL is displayed like that? If so that doesn't seem particularly helpful. How is anyone supposed to know what it is?
    There are many ways to provide links in APEX&mdash;including lists and nav bars.
    Where the link is to another resource located on the same server (such as another page in the same app, or a different app in the workspace), relative addressing can be used, making it unecessary to include scheme, domain and port information in the URL. For example, if the page to be linked to has a page alias <tt>ABOUT</tt> in an application with alias <tt>UNITY</tt>, and the apps share an authentication scheme/cookie to permit shared sessions, then the link URL is simply
    f?p=UNITY:ABOUT:&APP_SESSION.

  • How to get the information of the log related to t.code generated by basis.

    In the log generated by the basis personnel we found the details of user and corresponding t.code used details.  How to get the information reg. which document he went into using this t.code? For example me29 t.code used by 'x' user.  The log is showing time date t.code and user.  By using me29n which document he attended is the requirement. How to get this information. Let me know it pl.
    TS

    Thanks all for the help.
    Here is my solution. A mix from Julian and Thomas.
    In future I will encapsulate the code in a function module.
    DATA: BEGIN OF usr_tabl OCCURS 10.
            INCLUDE STRUCTURE uinfo.
    DATA: END OF usr_tabl.
    DATA: th_opcode(1) TYPE x.
    DATA: LV_TID LIKE  SY-INDEX.
    CONSTANTS: opcode_list LIKE th_opcode VALUE 2.
    CALL 'ThUsrInfo' ID 'OPCODE' FIELD opcode_list
      ID 'TAB' FIELD usr_tabl-sys.
    CALL FUNCTION 'TH_USER_INFO'
      EXPORTING
        CLIENT = sy-mandt
        USER   = sy-uname
      IMPORTING
        TID    = LV_TID.
    read table usr_tabl with key tid = lv_tid.
    IF sy-subrc = 0.
      CASE usr_tabl-type.
        WHEN 2.
          write :/ usr_tabl-type, 'SYSTEM'." (system)
        WHEN 4.
          write :/ usr_tabl-type, 'GUI'." (Gui)
        WHEN 32.
          write :/ usr_tabl-type, 'RFC'."(RFC)
        WHEN 202.
          write :/ usr_tabl-type, 'PLUG-IN'." (Plug-in &).
      endcase.
    ENDIF.

  • How to get the URL parameter value when navigating from JSP Page to portal

    Hi All,
    I have web Dynpro application with one button, while clicking that button It will navigate to JSP page as external window. In the JSP page I have a input field and Button.
    In the JSP page input field I will enter some values and press submit button, it will navigate to Portal page by passing some URL parameter with values.
    Once user entering to portal by default WD page displayed, the same WD page I try to get the URL Parameter which I have passed from JSP page, but I am not able to get the URL parameter value.
    If same application running in without portal, I can able to get the URL parameter values. I am getting the URL parameter by interface view default inbound plug parameter.
    How do we resolve this problem?
    Regards,
    Boopathi M

    Hi
    Please try  these link might helpful for you
    1.[How to call WebDynPro application from JSP |/thread/452762 [original link is broken];
    2.[How to get the previous page url from abstract portal component? |/thread/1289256 [original link is broken];
    3.[how to launch and pass a parameter |/thread/5537 [original link is broken];
    Best Regards
    Satish Kumar

  • How can I get the whole URL to my BSP Controller

    Hi,
    I need to build up a html-link with my bsp-url. How can I get the whole url to a specific controller, but without the session-id (sap(id))?
    I need something like the following:
    http://server:port/sap/bc/bsp/sap/<application>/<controller>.do
    Thank You!

    Hi Arne,
    you can create the URL with the method:
    CALL METHOD cl_bsp_runtime=>if_bsp_runtime~construct_bsp_url
       EXPORTING
          in_application_ns = ...
          in_application    = ...
          in_page           = ...
          in_parameters     = ...
        IMPORTING
          out_abs_url    = ....
    Regards,
    Rainer

  • How can I don't get the gatewayed url?

    I integrated a customized application into my portal.
    but ,portal always generates gatewayed url,
    for example
    http://demo:80/portal/server.pt/gateway/PTARGS_0_200_359_207_0_43/http%3B/demo%3B80/tpl/abc/totalReport.do?method=drawPieChart&type=16
    I only want to get the true url,that is
    http:/demo:80/tpl/abc/totalReport.do?method=drawPieChart&type=16
    How can I set the portal not to gateway the url?
    thanks for any ideas.

    Adjust the webservice that you are using so that it doesn't gateway that URL.
    This is set on the HTTP Configuration page of a webservice.
    It would appear that your is set to something like:
    http://demo:80/portal/server.pt/(perhaps more path here/).
    so just remove that

  • How to dynamically form the base URL for a region?

    For Application Express 2.2.1, I've created a URL region for a static html page:
    e.g.
    http://xxxx-dev.website.com/html/page1.html
    The problem is that when I promote this application to production (using export/import), this URL still refers to the development website.
    I need Application Express to use the base URL of its current URL path rather than http://xxxx-dev.website.com
    Can this be done?
    Thanks

    Hello,
    If you omit the http:// part from your static URL, the APEX engine will automatically attached the local server prefix to it.
    Regards,
    Arie.

  • On my iPad, when I try to open a movie I purchased from iTunes, I get "The requested URL was not found on this server."

    On my iPad, when I try to open a movie I purchased from iTunes, I get "The requested URL was not found on this server."  It's on my laptop but when I play it there, it 'jerks' every couple of seconds.  How can I fix both these issues?  Thanks!!

    Select the content which is causing a problem and use the 'Report a problem' button in Your Purchase History on your computer.

  • How to get the values from repeated frame?.

    Hi
    how to get the values from repeated frame?. i have to disply the first 3 digits in another place in my report.
    i have field empno in repeated frame and i want to disply first 3 digits in another place in the same report.
    thanks

    How often do you need to display it? It sounds like you might want to base a summary on that formula with a function of first or last. If it's a per page basis, it can be a page level summary. If it's at a higher level repeating frame, then you can create the summary at that level. I'd suggest taking a look at the online help for summaries using the first/last functions.
    Hope that helps,
    Toby

Maybe you are looking for

  • Form Line Space Work Around (permanently set leading)

    Hi All, new to the forums – I find the format confusing, but I'll try to do my best! I have discovered a way to permanently set the line space (leading) of a form field. If you all discover a better way, then let me know!      Create a small, multili

  • HT204023 What is 'sim pin' under Cellular data on my iPad mini?  How do I use that and change cards from one country to another?

    I have a new ipad mini with retina display, and cellular capability. I've learned how to set up an account and use it in the US.  I'm now traveling internationally and need to learn about changing the sim card. My first question is about the notation

  • Album wouldn't play on iPod now won't sync

    All of a sudden, one album won't play and now won't sync on my iPod 4 (IOS 6). I'm using MS XP Pro. Any suggestions on what to do? It isn't a new album and I've had it on my iPod for years.

  • Always new mail, in mutt

    I am experiencing a strange problem with mutt and muttng: I tried all the versions (cvs, snapshots, packages in current and unstable, without any change). Some mail folders (I use traditional mboxes) are marked as including new mail also after I read

  • IPad 1, iOS 5.1 Photostream not working

    I have tried all the usaual kind of tricks, i.e., deleting my icloud account, toggling the photostream on and off, I've even reset my photostream? anyone have any other ideas I could try? Hugh