Get the URL

Hi all.
I am quite new to BSP. Actually my BSP is being called from web dynpro.
I need to get some parameters from the URL. How can I read back the URL and analyze the parameters?
Thanks in adv.

Hi Shewta,
need to get some parameters from the URL
If yours is page with flow logic based application , you just need to declare page attributes with exactly same name as parameters have in url and set the auto flag for these parameters.
Regards,
Anubhav

Similar Messages

  • How to get the URL of the request.

    I am trying to get the URL from where the request is coming to the servlet. If http://www.xx.com/ calls my servlet i want to know that the request is coming from http://www.xx.com/ URL. If i use request.getRequestURL() which is displaying my servlet URL. Please help me which is very urgent.

    You actually want the referrer? You can obtain it from the request headers as follows:String referrer = request.getHeader("referer"); // Yes, with the legendaric misspelling in there.Having said that, be aware that the client has full control over what he sends with the request headers. So the client can change/spoof/remove the referrer entry to his taste anytime. Your code should not rely that much on it, it should rather be used for statistics only.

  • How to get the URL of an iView using AbstractPortalComponent

    Hi All,
    I need to get the URL of an iView using AbstractPortalComponent using the following code.
    But i am unable to open the URL from the Browser
    This is the following code snippet
    public class AbsClass extends AbstractPortalComponent
        public void doContent(IPortalComponentRequest request, IPortalComponentResponse response)
    IPortalComponentURI componentURI = request.createPortalComponentURI();
    componentURI.setContextName("pcd:portal_content/LOG_Viewer/LogViewer");
    String URI=componentURI.toString();
    response.write(URI);
    The output i got from the browser is:
    /irj/servlet/prt/portal/prtroot/pcd!3aportal_content!2fLOG_Viewer!2fLogViewer
    Actual Path: pcd:portal_content/LOG_Viewer/LogViewer
    Output Path: /irj/servlet/prt/portal/prtroot/pcd!3aportal_content!2fLOG_Viewer!2fLogViewer
    Why some extra numerics are embeded in the output path when compare with the Actual Path.
    Can any one send me the modified code and your suggestions, how to achieve this problem.
    Regards
    Phani

    Hi,
    Now i need to get the URL of this component.
    IPortalComponentRequest request = (IPortalComponentRequest) this.getRequest();
    IPortalComponentURI componentURI = request.createPortalComponentURi();
    componentURI.setContextName("com.sap.portal.appintegrator.sap.bwc.Transaction");
    String URI=componentURI.toString();
    response.write(URI);
    I export this component into Portal and i tested with an iView based on this par file, i got the URL in the Preview.
    But when i tried to run this URL by adding the http://<IPADDRESS>:<PORTNO>+URL
    I am facing one AccessDenied Exception for this Object. ( USER/GUEST)
    Is there any security zone, or other Permissions Problem, if so can you plz guide me what are the settings i have to change inorder to resolve this exception
    Regards
    Phani

  • I am unable to reply to your e-mail convermation--how can I get the URL to past into my browser?

    Received a confirmation e-mail requestion me to reply to it and I cannot get the URL to paste to my browser--how can I do this???????/

    Hi June,
    Sorry for the trouble you've had.
    I've verified your account on our end and you should be able to access the ExportPDF service now.
    Please let us know if you have any questions!
    -David

  • How to get the url of a document in content management?

    Hello,
    I have used API  'SKWF_PHIO_CONTENT_URL_GET to get the url of a file in CRM content management. But when I tried to open this url in explorer got error message "SSF error: Decoding not possible". Could any one please help me to resolve this problem.
    Thanks
    Nisha

    Thanks for replying - unfortunately, there is not much
    support on these forums.
    I wish there was some way to emulate the mouse from
    Javascript to click the play, pause, and slider buttons... but one
    would't even know, programmatically, the location on screen of the
    play, pause, and slider buttons.
    quote:
    Originally posted by:
    davexnet
    You'll notice that questions like this don't get answered on
    this
    forum. The Flash player has a philosophy that skews the power
    over almost everything about it to the content providers,
    and precious little control, if at all, to the client player.
    It's a crappy situation - I use Flashblock in Firefox and
    only view the
    content *I* want to see.
    It works for me, particularly since I'm using an older
    (slower )
    computer that really gets bogged down by aggressive Flash
    content.

  • Webkit get the URL of a link

    I am trying to add policy functionality to an app that I have written so that, for example, instead of opening a link to a page within my app itself it might open the link in the default browser or open a window to handle the functionality internally rather than use the functionality provided online.
    At this stage I am only trying to log what the URL is so that I can see what the format is. Once I've worked that out, I'll put together the policy code. The code that I have written so far is this:
    <pre>
    - (void)webView:(WebView *)sender decidePolicyForNavigationAction:(NSDictionary *)actionInformation
    request:(NSURLRequest *)request
    frame:(WebFrame *)frame
    decisionListener:(id<WebPolicyDecisionListener>)listener
    // get the url from the information dictionary:
    NSURL *url = [\[actionInformation objectForKey:@"WebActionElementKey"] objectForKey:@"WebElementLinkURL"];
    // log the url's scheme
    NSLog(@"absolute string is \[%@]", [url absoluteString]);
    // NSLog(@"relative string is \[%@]", [url relativeString]);
    // NSLog(@"fragment is \[%@]", [url fragment]);
    // NSLog(@"host is \[%@]", [url host]);
    // NSLog(@"parameter string is \[%@]", [url parameterString]);
    // NSLog(@"user is \[%@]", [url user]);
    // NSLog(@"password is [%@]", \[url password]);
    // NSLog(@"path is \[%@]", [url path]);
    // NSLog(@"relative path is \[%@]", [url relativePath]);
    // NSLog(@"port is \[%@]", [url port]);
    // NSLog(@"query is \[%@]", [url query]);
    // NSLog(@"resource specifier is \[%@]", [url resourceSpecifier]);
    // NSLog(@"scheme is \[%@]", [url scheme]);
    }</pre>
    As you can see, I've tried every component of the WebElementLinkURL - but without luck. The results mostly came back null - only absoluteString seemed useful (hence it's the only one not commented out). But even that didn't so far enough.
    For example, when clicking a link, absoluteString returns
    22/04/2009 09:58:00 Test[646] absolute string is [https://test.internal.com/#]
    Hovering over the same link in Safari, or clicking on it, returned https://test.internal.com/client/help
    The question, therefore, is how can I get my code to return the URL in the same manner that Safari does. The website I'm trying to view does contain a fair bit of Javascript - I don't know if this is relevant though.
    Methinks I am looking in the wrong place!

    Hi Jun,
    Before creating a customised framework page, copy the default framework
    page provided my SAP to your own namespace and make changes.
    Just open the copied page, set masthead to invisible ,this can be done
    for any other component that you want to hide on the framepage.Then
    make only the inner page visible, if that's what you want.
    Then create a url iview that points to this page and pass room details as
    parameters.This can be assigned to any role that you wish.
    <i>Pls reward points if helpful</i>
    Regards
    Vineeth

  • How to get the url of the document in quick parts?

    I have document library in which there is one content type with the document template uploaded. In the footer of the document, I want to show the URL of the document which is opened in word application.
    Is there any way to get the URL? I am not able to see the field in Quick Parts while configuring footer of document template.

    Alexdu_,
    You can create a single line text site column in that content type to hold URL information.
    Create a SPD workflow to populate URL field using update field of current list.
    This custom column will be available as Quick part in word.
    This could be an alternate approach as URL is not available as quick part field.
    Please 'propose as answer' if it helped you, also 'vote helpful' if you like this reply.

  • How do I get the URL of a jsp page?

    I have a jsp page which has a link to a servlet page, in the servlet page, I want to get the URL of the jsp page.
    I tried to use request.getHeader("referer"), it seems like if it is a link in the jsp directly lead to the servlet, it works, but if the link calls a javascript function which opens up a window runing the servlet, it is not working. I have to do the second way, so it is not working by doing request.getHeader("referer")
    I tried to use javascript "location.href", I get the whole url by alerting the url in the jsp page:
    http://localhost:8080/pos-webapp/serv/qt_old?currentpage=portal&bcd=ABC123&pnm=P1001830&prnm=1&psd=236863.0&ln=01&sln=NYPPA&stp=2.1&stt=A&_POSID=1F8464122ADAF4EEC9B1A94C286EB252
    then I pass this url when calling with my servlet, in the servlet page, when I do request.getParameter("url"), the url is actually cut off like this:
    http://localhost:8080/pos-webapp/serv/qt_old?currentpage=portal
    anything after &pnm is cut off, anyone has any idea?
    Thanks in advance.

    Thank you.
    but how do I put encoding in the javascript code? do I need to decode in my servlet page?
    here is my code in the jsp page:
    linkset[3]+='<div class="menuitems">Email Diagnostics to AutoOne</div>'<%     
    function emailDiagnostics()
    win = window.open("/pos-webapp/serv/email_diagnostics?url=" + location.href + "&browser=" + navigator.appName, "emailDiagnostics",
    "width=350, height=140, resizable=no, scrollbars=no, toolbar=no, location=yes, directories=no, status=no, menubar=no, copyhistory=no, left=450, top=300");
    win.focus();
    }

  • Can I get the URL of any other browser window in java

    Can I get the URL of any other browser window in java

    Hi, did you find the way to find the URL of the WSDL? I have the same problem.

  • 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 do I get the URL to "My Photo Stream" (the base one, Not the one I created to share out)?

    How do I get the URL to "My Photo Stream" (the base one, Not the one I created to share out)?

    You can't get a url for my photo stream; only for publically shared streams.

  • How Can i get the URL of a page

    How Can i get the URL of a page . like in ASP the
    Request.QueryString() ...
    Thanks

    Are you wanting actual URL or just the url (query string
    variables)?
    For url variables you would reference the structure.variable
    name like so:
    #url.variablename#
    So if you had a url like this:
    http://www.somedomain.com?page=home&action=view
    You could access the variables like so:
    #url.page#
    #url.action#
    If you are wanting to actual page you could use:
    #cgi.script_name#
    Bryan Ashcraft (remove brain to reply)
    Web Application Developer
    Wright Medical Technologies, Inc.
    =============================
    Macromedia Certified Dreamweaver Developer
    Adobe Community Expert (DW) ::
    http://www.adobe.com/communities/experts/
    "Yasmin_lady" <[email protected]> wrote in
    message
    news:e4fhjv$fpl$[email protected]..
    > How Can i get the URL of a page . like in ASP the
    Request.QueryString()
    > ...
    > Thanks

  • Applescript to get the Url's of Safari for multiple browser instance??

    Hi All,
    am trying to get the URL's of the opened windows in more than one instance of Safari.
    I have got the script to get the url's of single instance, Pls suggest the same for multiple instances of safari browser with different windows opened for each instance. current code am uisng:
    tell application "System Events"
              set theURL to URL of current tab of window 1 
    end tell

    Try this:
    set theURLs to {}
    tell application "System Events"
        get id of processes whose name is "Safari"
        repeat with thisID in result
            tell (process 1 whose id is thisID)
                tell windows
                    copy value of text field 1 of group 2 of tool bar 1 to the end of theURLs
                end tell
                tell (windows whose name contains "abc")
                    click button 1 -- close
                end tell
            end tell
        end repeat
    end tell
    theURLs

  • Get the URL to call a webdynpro in ABAP

    Hi,
    how can I get the URL that is generated automatically for a webdynpro?
    When creating a webdynpro a URL where I can call it is automatitcally created - how to get this URL in my ABAP coding?
    Many thanks for every suggestion,
    C.

    Try this code.
    data :lc_webdynprourl type ref to CL_WD_UTILITIES.
    data :lv_url type string.
    create object lc_webdynprourl.
    CALL METHOD CL_WD_UTILITIES=>CONSTRUCT_WD_URL
      EXPORTING
        APPLICATION_NAME               = 'Test'   "Your web dynpro applicaiton name
       IN_HOST                       =
       IN_PORT                       =
       IN_PROTOCOL                   =
       IN_PARAMETERS                 =
       IN_CLIENT                     =
       IN_FORWARD_ACCESSIBILITY_FLAG =
         NAMESPACE                     = 'sap'
      IMPORTING
       OUT_HOST                      =
       OUT_PORT                      =
       OUT_PROTOCOL                  =
       OUT_LOCAL_URL                 =
         OUT_ABSOLUTE_URL              = lv_url.
    Good luck,
    Krishna

  • How do I get the URL of a jsp page which calls a servlet?

    I have a jsp page which will lead to a servlet, I can get the URL of the servlet, but how do I get the URL of the jsp page which lead to the Servlet in the servlet?

    You could try doing:
    request.getHeader("Referer");

  • Get the url!help pl!

    Hi!
    Am doing a redirection to a page if the user gives the url directly in the browser.After redirecting I need to get the url which the user typed!Can anybody help pl!Thanks.

    Why don't you get the URL BEFORE the redirect?
    E.g.:
    Suppose the text field is named "newlocation":
    String newlocation = request.getParameter("newlocation");
    // save newlocation in a session or diskfile or something
    response.sendRedirect(newlocation);
    // Later on, back in your JSP code ...
    String newlocation = (read from session or diskfile or something)

Maybe you are looking for

  • Analyze error in RWB

    After some performace testing I have an error in rwb (sender ) Transmitting the message to endpoint http://xi:8000/sap/xi/engine?type=entry using connection AFW failed, due to: Received HTTP response code 500 : Internal Server Error. smq1/smq2 doesn'

  • Capex IO

    Hello, we have a scenario of Investment order for Asset.On making downpayment for asset & on settlement-the internal order report for actuals does not show the amount after settlemtn.Have created relevant statitical cost elements. Regards Shreeratan

  • Best Practise for rebooting ISE Nodes?

    Hello Community, I administer an ISE installation with two nodes (I am not an ISE Specialist, my job is just to manage the user/mac-adresses... but now I have to move my ISE Nodes from one VMWare Cluster to another VMWare Cluster. (Both VMWare enviro

  • Open balance in oracle Discoverer 4

    hi, I have supplier statement in oracle discoverer and it works fine. I give from date / to date parameters and it return transactions summary per each supplier. I need to add the open balance amount for each supplier to have real statement. so can y

  • BAPI to remove location-products from Active Model

    Hi All, Can you tell me the BAPI to remove location-products from active model in MASS? Thanks. Best Regards, chandan