Get the parameter from the URL

Hello
I have a problem. I want to know the id that is in the url of an extern site. For example http://www.example.com/employer.jsp?id=1234
Does anybody know how I can get the value 1234 fom the url. I have no idea but it is very important for me.
Please help me,
Henk

oic. If the document location according to the browser is that URL with the id or whatever, then you could use Javascript to set the value of a hidden form field:
<body ... onload="document.forms['myform'].submit();">
<form name="myform" ... onsubmit="this.url.value=document.location.href; return true;">
<input type="hidden" name="url" />
Of course, that'll submit the form on load, you can change that part if you want.
If the page is in a frameset and you want the top page's location, you can do:
<form name="myform" ... onsubmit="this.url.value=top.document.location.href; return true;">
But, the browser is going to have the location of whatever page it thinks it's viewing, and if it got there by a redirect, it'll show the page it is on, not the page it was redirected from. For forwarding, it'll still think it is on the page that did the forwarding, not the end page. In other words, whatever you see in the brower's location bar should be what you'll get.

Similar Messages

  • 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

  • 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 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

  • 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.

  • 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)

  • Get the url address of current form

    Hi,
    Any one knows how to get the url address of the current form ?
    Thanks.
    Ivan

    You can probably use Java Script at in the html which starts the form then pass the value into the form using a user define Form's parameter.

  • WebUtil getting the URL of the current form

    Hi after reading through the documentation on WebUtil I am not sure whether the utility will allow you to get the URL that is in the browser that the user is using to display the Oracle Form that it is running from. I need this as I have to issue web.show_document commands based on the users URL and need to know the URL to figure out which server they have come from in order to issue a web.show_document command with a URL that the user will be able to read. Does anyone know if this is possible or other ways of achieving the same result
    Also has anyone got an unsupported version of WebUtil for Forms 6i as I am currently on AIX 4.3.3 and need to get our Unix teams to upgrade to AIX 5 before I can even start to think about Forms9i/10g and Oracle 9i/10g
    regards,
    [email protected]

    Mark,
    wweb.show_document() can take relative Web addresses too, which means that automatically the server that the Forms was downloaded from will be referref by the URL. Assuming
    http://myserv1:9999/forms90/f90servlet...
    is the address you started Forms Services on,
    web.show_document('/mydir/mytest.html','_blank');
    requets for a URL
    http://myserv1:9999/mydir/mytest.html
    So in fact you don't need to know of the URL.
    WebUtil does not provide this functionality, but it would be easy to add. So let me know if my suggestion using web.show_document() doesn't work as you want it and I'll add this as an ER for WebUtil.
    Fran

  • 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 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 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

Maybe you are looking for

  • Time Capsule sparsebundle corruption help please

    Hi I went away for a week and when I came back I found that the Time Capsule was not backing up. Apparently, my family tells me there was a power outage during my absence and, therefore, this might be the cause of the problems. I have a Time Capsule

  • I am going to replace  the memory module, will I loose the existing stored memory

    I have a imac desktop with one memory module,, would like to insert 2 new memory modules,, will I loose stored memory

  • ITunes on SSD and media on HDD

    I am having an issue with iTunes and cannot figure it out, tried google and came up empty.  I backup up my itunes folder to external hard drive as I was getting a new computer, the new PC has an SSD where windows is installed and iTunes is installed,

  • CJI5 commitment line items open items only

    hi guys, on the CJI5 screen paramter, there is one check box open item only. Could someone tell the exactly meaning of the paramter? How can we judge an WBS commintemnt line item is open or not open? thanks in advance

  • USB Drives (Fat formatted) mounting and size issues

    Hello all, Not really a major pain in the rear but rather a question as to whether anyone else has encountered this problem. I have a kingston Data Traveler usb drive 256mb. When connected to my Intel mac mini dual core, and then disconnect it to cop