How do I find out which "page" the user was on

I am using JAVA servlets and XSLT's to create a web service. I need to know how I can use the HTTPRequest that is sent to me to the server to find out, which "page" they were on when they clicked the login link.
The login link appears on all "pages" and once they click it a loginServlet is activated an a login page is shown. I need to know which "page" they were on so I can take them back to it after login has completed.
So take for example I am at http://localhost:8080/contact/ and then they clicked a hyperlink with value http://localhost:8080/login to call loginServlet. I know getPathInfo will give me the "/login" but how do i get that "/contact" so i can send them back to that page once the system has logged them in.
Any help, suggestions, comments would be highly appreciated it. Thanks.

Retrieve the "Referer" value from the requestHeader:
String referer = request.getHeader("Referer");Notice the misspelling, you must spell it this way. BTW, check for nulls. I don't think there's any guarantee this value is set, although I've never run across a situation where it wasn't.

Similar Messages

  • HT4519 when i try send a email off my iphone its says my house name is ,how do i find out which is the correct name?

    when i try send a email off my iphone its says my house name is wrong,how do i find out which is the correct name?

    Try deleting the account and then add it back.

  • TS1702 How can I find out which is the correct app to read a PDF on my iPhone 5?

    I purchased a PDF reader from the app store, but I still cannot read the file. When I try to download the file, it states that I need an updated version of PDF. I notice there are several PDF apps available, but I don't know which is the correct one. How can I find out the correct application I need?

    Select the tune and then - Get Info - in the dialog box is a note of the Apple ID used to purchase.
    MJ

  • How can i find out what cursor the user has selected on an xy graph?

    I have an XY graph in which while the program runs it will be creating cursors in certain locations on the plot. I want to give information about this cursor when selected upon, I THOUGT that active cursor does this.. but appreently not.. it seems to jsut keep spitting out 0, any ideas?

    > I have an XY graph in which while the program runs it will be creating
    > cursors in certain locations on the plot. I want to give information
    > about this cursor when selected upon, I THOUGT that active cursor does
    > this.. but appreently not.. it seems to jsut keep spitting out 0, any
    > ideas?
    You might look at the Selected Cursors property. It indicates which
    cursors will be acted upon by the movement palette. It should be
    equivalent to the small LED buttons on the cursor palette.
    Greg McKaskle

  • HT5071 when a user buys my ibook in iTunes store, how can I find out more about the user, state purchased in, email it downloaded to, etc ?

    when a purchaser reads my email message in mailchimp, I am provided with the user details, email address used, state located in, etc.....why can't I get the same information from Apple iTunes when a purchaser downloads a paid copy of my iBook from the Itunes bookstore.?????  in order to complete the download of a purchased iBook, that information is gathered by Apple, but is not provided to the iBook author.....any solutions out there...

    All Apple will give you are sales counts and other such general information. Personal information about individual purchases will not be available to you.
    Regards.

  • HT204053 how can i find out which id i used to purchase an app?

    i can't update iphoto, imovie and garageband cause it says "sign in to the account you used to purchase it" but those were pre-installed when i bought my iMac and i don't have a second id. what can i do or how can i find out which is the right account for these apps?
    thanks in advance

    I also have a linked problem like that. I bought various apps under different ids and now I don't know how to sign in - where to sign in under the emails that I bought them on so i can't update my Pages app.
    Can anyone help us please?
    Is there a way to put them altogether now under my apple id with icloud?
    Thanks

  • I want to update my phone, but i purchased many apps and music on the phone. it won't let me authorize my computer so i cannot update. i don't want to deauthorize all my computers. how can i find out which 5 computers i have authorized?

    i want to update my phone, but i purchased many apps and music on the phone. it won't let me authorize my computer so i cannot update. i don't want to deauthorize all my computers. how can i find out which 5 computers i have authorized? also how can i update the software?

    This is a tedious solution, which is stupid!  And some users report an inability to reauthorize a computer after an "en masse” deauthorization.  I can’t believe Apple doesn’t provide a list or menu to find out which computers you’ve authorized! Obviously, APPLE knows (or else they couldn’t tell us how many computers we have authorized)--so why can’t they give us access to that information about our own computers??!!!
    And for an already-authorized computer with a hard drive that’s since been replaced and upgraded from Mavericks to Yosemite, would it be recognized as a “new computer” and require authorization? Would its previous incarnation (i.e., with the old hard drive and OS) be considered a separate computer? Some users report they can’t authorize a computer after an OS upgrade because of that. Can’t believe we have to do such a bass-ackwards kludge!

  • TS1277 how do i find out which 5 computers i have authorised ofr itunes. i think i only have 4 but cant find out which one is the fifth

    I am told from itunes that i cannot authorise my macbook air as i already have 5 computers authorised on this account. I only have 4 but dont know how to find out which is the fifth authorised computer

    You cannot.
    There is no list
    Deauthorize all, then authorize the active computers.

  • How to find out which page contains a specific ITextFrame

    Hi all,<br /><br />I would like to ask if it is possible to find out which page contains a specific text frame?<br /><br />I used the following code to find the ITextFrame that contains the caret<br />ISelectionManager* mgr = activeContext->GetContextSelection();<br />InterfacePtr<ITextEditSuite> esuite(mgr, UseDefaultIID());<br />InterfacePtr<ITextTrackerAccess> tracker(esuite, UseDefaultIID());<br />ITextFocus* focus = tracker->QueryTextFocus();<br />ITextModel* model = focus->QueryTextModel();<br />IFrameList* flist = model->QueryFrameList();<br />RangeData range = textFocus->GetCurrentRange();<br />TextIndex cposition = range.Start(0);<br />int32 fidx;<br />ITextFrame* frm = flist->QueryFrameContaining(cposition, &fidx);<br />UIDRef frmUIDRef = ::GetUIDRef(frm);<br /><br />However, when I use the following code to iterate through the pages, I cannot find any UID that matches the ITextFrame<br />for (int32 sIdx = 0; sIdx < spreadList->GetSpreadCount(); sIdx++) {<br />  UIDRef spreadUIDRef(database, spreadList->GetNthSpreadUID(sIdx));<br />  InterfacePtr<ISpread> spread(spreadUIDRef, UseDefaultIID());<br />  for (int32 pIdx = 0; pIdx < spread->GetNumPages(); pIdx++) {<br />    spread->GetItemsOnPage(pageIndex, &uidList);<br />    if (uidList.Contains(frmUIDRef.GetUID()) == kTrue) {<br />      ...<br />    }<br />  }<br />}<br /><br />Any help is appreciate. Thank you.<br /><br />Ikki

    I think your frmUIDRef is too far down the hierarchy to show up in GetItemsOnPage(). Try getting the IHierarchy interface from frmUIDRef and calling QueryParent(). That should get you from the kFrameItemBoss to the kMultiColumnItemBoss. Do the same again and you'll get to the kSplineItemBoss, which should appear in GetItemsOnPage().
    If you're running the debug version of InDesign, you can use the Test menu to run the Diagnostics > Document Structure > Trace Content Hierarchy command, which will print out the UIDs of all the items on a page and let you see what's happening.
    Charles

  • When using tethered capture I often get this notification "The metadata for this photo has been changed by both Lightroom and another application". This slows or stalls the loading of incoming photos. How do I find out which other application is changing

    When using tethered capture I often get this notification "The metadata for this photo has been changed by both Lightroom and another application". This slows or stalls the loading of incoming photos. How do I find out which other application is changing the metadata and stop it?

    Thanks Sean,
    I've had a look at the TC settings dialog and tried to keep it as simple as possible. I also had a copy of LR 4 on the hard drive so have trashed that also incase of any conflicts. LR seems to be running ok now but as said it's an intermittent problem.
    I also have a copy of Capture One on the hard drive so am going to uninstall that also in case it is trying to launch.

  • How could I find out which user did release a transport request in the sour

    How could I find out which user did release a transport request in the source system

    Hi Tina,
    Use SE10 t-code and type abaper user name in the user field then check released check box then display and select request number which is released, double click on said request number and click on "object list of request" Then click on "comment: released" than you can find out the released user name at the end of request number along with dated of released.
    I hope you problem will be solved.
    Regards,
    Anil

  • How can i find out which of my apple devices made a purchase from the app store?

    How can i find out which of my apple devices made a purchase from the app store?

    Not possible as purchases can be downloaded to all devices using the same Apple ID.

  • HT201359 how can i find out what all the charges on my checking account are for?

    how can i find out what all the charges on my checking account are for?

    If you log into your account on your computer's iTunes via the Store > View Account menu option, you should then see a Purchase History section with a 'see all' link to the right of it. Click on that and you should then see a list of your purchases - the most recent purchase is above the list. I'm not sure if that shows auto-renewing subscriptions (I don't have any so I can't check).
    If you can't find the charges and you haven't added or changed your card details on your account (when you do then a small temporary store holding charge may be applied to check that the details are correct and valid, which should disappear within a few days) then you can contact iTunes Support via this page : http://www.apple.com/support/itunes/contact/ - click on Contact iTunes Store Support on the right-hand side of the page, then Purchases, Billing & Redemption

  • How do i find out which computers are authorized?

    How do I find out which computers are authorized?

    Log into iTunes from your desktop. (Sign in upper right corner of iTunes page.)
    On your user name/e-mail (upper right corner) use the drop down menu and select account.
    Select manage your devices.
    That's it folks ....

  • I share an itunes account with 3 users. How can I find out which person downloaded a certain app?

    I share an itunes account with 3 users. How can I find out which person downloaded a certain app?

    Agile,
    Any of the above will work, depending how you would like to set it up.
    Given that kids tend to eventually grow up and be independent, the best long term answer for most people is to let her have her own account and her own library as soon as she can handle it.  Keep in mind that content purchased from the iTunes Store is permanently tied to the account from which it was originally purchased, so separating later is a challenge.
    If you want to sync multiple devices to the same library, that will work.  Or if you want separate libraries (as I would recommend), they can be either on separate computers or on separate Windows user accounts on the same PC.
    For the name change:  Connect the device.  When the name appears in the left sidebar of iTunes, highlight it and change it.

Maybe you are looking for