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)

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 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 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 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 F4 help for a field in the selection screen

    Hi all,
    I am working on a report program. In the selection screen, I have the field 'Brand Node ID'(ZNODEID). The requirement is to have the F4 help for this field. This field is available in a 'Z' table ZNODETAB. There is no Value table maintained for the corresponding data element. So, without disturbing the table data element/domain, I should get the F4 help in the selection screen of the report. In the F4 help, data should be fetched from the table ZNODETAB and the field is ZNODEID. Is there any way to do this.
    By searching the function modules, I could find that, we can use the FM F4IF_INT_TABLE_VALUE_REQUEST. But, I am not Sure. Can someone tell me the parameters to be passed to this function module to get the F4 help and the procedure to follow. S_NODEID is the select option used in the program. Please help me in this regard. Thanks in advance.
    Thanks & Regards,
    Paddu.

    look at this code and try
    select-options : S_NODEID for ZNODETAB-ZNODEID.
    at selection-screen on value-request for s_nodeid-low
    perform f4_nodeid using 'S_NODEID-LOW'.
    at selection-screen on value-request for s_nodeid-low
    perform f4_nodeid using 'S_NODEID-HIGH'.
    end-of-selection.
    FORM f4_nodeid  USING    p_field.
      declare it_node.
    select znodeid from ZNODETAB into table it_node.
      CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
        EXPORTING
          retfield        = 'ZNODEID'
          dynpprog        = sy-repid
          dynpnr          = sy-dynnr
          dynprofield     = p_field
          value           = space
          value_org       = 'S'
          display         = 'F'
        TABLES
          value_tab       = it_node
        EXCEPTIONS
          parameter_error = 1
          no_values_found = 2
          OTHERS          = 3.
    endform

  • 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

  • I keep getting the iTunes help screen in German Language on restart, how do I stop this?

    Ugraded to iTunes 10.5 and now on restart I keep getting the iTunes help screen in German Language how do I stop this?

    Hi Thanks,
    I could only see posts from some months ago and thought I had something different.
    Looks like I have not been using the correct search terms.
    Will wait and see what happens.

  • 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

  • PROBLEM IN SUBNETs CLASSFULL AND CLASSLESS!!!!!!!

    SUBNET PROBLEM In classfull we can use 10.0.0.0/8 as class A so we can start subnettting from /8/9...upto/32 so in short we have to start from /8 ..upto /8 all r NETWORK.... But in classless 10.0.0.0 we can use from /1 right or /25 or any mask Questi

  • MRP creating cancel notices for min max purchased items

    We use min max planning for many repetitive purchased items. These same items are also set to MPS/DRP Planned as well. This is only so we can use the Planned Order report to identify material shortages to flow schedules. However, MRP exceptions is re

  • 4.1EA2 - SQL Worksheet button/dropdown - Main toolbar

    SD: 4.1.0.18.37 Java: 1.8.0_40 I have a large number of connections defined and regularly would like to be able to open a worksheet directly, without opening the connection in the connection tree view. The list that is displayed when the toolbar butt

  • CREMAS05 Vendor idoc other fields

    Hi, Basic type CREMAS05 Vendor master data distribution Released since Release 700 1). In idoc it is showing the      REGIO : Region (State, Province, County) &  LAND1 : Country of company only, but i want its text. Ex: For 22 - Tamilnadu &       for

  • G5 Tower (Tiger) won't boot from disk

    When I try to boot from the Tiger install disk, it just ejects. I tried inserting the disk while the computer was running and it worked fine (meaning I was able to view the files), so I tried to run the install from there, and it ejected. So per some