How to get only the last part of the URL in the doGet() method?

In the doGet() method is there a way to check what URL it was called from ? For example the URL was: http://localhost:8080/myproject/jsp/randomPhrase.php (the php here is purely for misleading purposes - it's all Java really). in the doGet() method I would like to get the "randomPhrase" part of the URL only - to determine where to redirect the user. How can I do that?
Thanks.

Hello there,
As it seems to me the part of the URL you're looking fo,r corresponds actually to the name of the servlet, so why don't you just call the getServletName method?

Similar Messages

  • With the new IOS7 I get every email in my inbox. How can I limit to the last 50 like it was before the upgrade?

    With the new IOS7 I get every email in my inbox. How can I limit to the last 50 like it was before the upgrade?

    You can set the pref <b>browser.urlbar.formatting.enabled</b> to <i>false</i> on the <b>about:config</b> page.
    To open the <i>about:config</i> page, type <b>about:config</b> in the location (address) bar and press the "<i>Enter</i>" key, just like you type the url of a website to open a website.<br />
    If you see a warning then you can confirm that you want to access that page.<br />
    *Use the Filter bar at to top of the about:config page to locate a preference more easily.
    *Preferences that have been modified show as bold(user set).
    *Preferences can be reset to the default or changed via the right-click context menu.

  • TS1277 In The last Apple Itunes update it deleted the file MSVCR80.DLL, how do I get it back, i have followed all the instructions to remedy this lost file to no avail.

    In the last Apple Itunes update it deleted the file Msvcr80.dll, how do get it back so I can download Itunes again? 

    Uninstall your existing copy of iTunes. Delete any copies of the iTunesSetup.exe (or iTunes64Setup.exe) installer files from your downloads areas for your web browsers and download a fresh copy of the iTunes installer from the Apple website:
    http://www.apple.com/itunes/download/
    (The current build of the 11.1.4.62 installer was changed a few days ago, which fixed the bulk of the reports of MSVCR80.dll/R6034/APSDaemon.exe/Error-7/AMDS-could-not-start trouble ... but the build number on the installer was not changed. So we're trying to make sure you do the reinstall using a "new good" 11.1.4.62 installer instead of an "old bad".)
    Does the install with the new copy of the installer go through properly? If so, does that clear up the error message?
    If you still have the same error messages cropping up, then try the procedures from the following user tip:
    Troubleshooting issues with iTunes for Windows updates

  • HT4075 I don't have any problems merging the documents by dragging, but when I try to save and open afterwards, only the last shown doc was saved, not the combined files I wanted to merge. I tried save and export, how can I create the file after merging?

    Hi, I'm having trouble saving the documents when merging in Preview. I don't have any problems merging the pdf documents by dragging them in preview, but when I try to save and open afterwards, only the last shown doc was saved, not the combined files I wanted to merge. I've tried save and export, but none merge the documents after saving... how can I create the file (with all the pdf files) after merging?

    That's a comment in the file. It has no effect at all.

  • How to get only the first result in extract function

    do you know how to get only the first element of the function extract.
    v_result := p_response.doc.extract('//'||p_name||'/child::text()').getstringval();
    if i have 5 responses like '100','100',100','200','200' e get '100100100200200' and i want only '100'.
    thanks in advance

    Two ways .....
    1. Use Javascript E4X instead ...there are nice functions for getting children of parents.
    2. Cycle through all of the form1.nodes and look for objects that have a className of "subform". For loops are useful for this task.
    Make sense?
    Paul

  • The last few times I imported photos, the backup location was set to "documents" with no sub-folders. How do I get them into sub-folders - like year and month?

    the last few times I imported photos, the backup location was set to "documents" with no sub-folders. How do I get them into sub-folders - like year and month?

    Use the Subfolder pulldown to set the subfolders:

  • The theme/background (AWESOME futuristic space scene) shown in the last part of "Getting Started video available for download?

    In the last part of the video "Getting Started" right after I downloaded Firefox 4, there was a background scene of an awesome page that showed some futuristic space scene that has the mozilla theme (fox) in the picture. I would like to know if it is available for download and/or it's name. I searched through the themes, but they don't show enough of the theme to actually see what the background would be once downloaded. Thank you in advance for any help you can offer.
    Gina Taylor

    Maybe you like this video as well:
    * http://vocamus.net/dave/?p=1233 Flight of the Navigator
    * http://videos.mozilla.org/serv/mozhacks/flight-of-the-navigator/
    * http://blog.vlad1.com/2010/12/21/webgl-in-firefox-4-beta-8/

  • How to get only current exception message from tables

    Hi
    In my sceanario , I want to have the list of Current MRP exception messages list from table
    I understand that MRP detailed lists, including all exception messages, are stored in transparent table MDKP and cluster table MDTC.
    I can tell ABAPer to write a report for me , to read the data from these tables , but I guess these tables contain old exception message also , which are not currently appearing in MRP list
    How to get only current exception message
    Rgds,
    sandeep

    Sandeep,
    MDTC contains only data from the most recent MRP run.  So, all messages you see are those which are currently valid.
    The messages might have first appeared during a previous run, but they still need to be addressed.
    Before you invest a lot of time and effort into writing and debugging a custom report, you should probably try to use the standard SAP functionality found in MD06.  On the Processing indicator tab, you can select "Only with new exceptions".  Here you can tag a material/plant as 'processed', and thereafter, the exceptions that existed there before you tagged the part will not be re-displayed.
    Best Regards,
    DB49

  • Why is the last part of the Word Press install not working?

    I am installing Word Press to work in Dreamweaver. I have installed MAMP and everything is working fine, I assume. The location of the files are /applications/MAMP/htdocs/wp-content/themes/twentyten.
    I have installed PHP/MySql on my machine and have set up the wordpress database as instructed. The last part of the process has me bogged down. In following step one of the process, I get a blank screen. Here's the url: http://localhost/wp-admin/install.php and the instructions to complete the process.
    With the WordPress files copied to the correct location in the htdocs folder, the web server installed, and a database created, open a browser and browse to http://localhost/wp-admin/install.php.
    A screen telling you to create a configuration file will appear. Click the Create a Configuration File button.
    Click the Let’s Go button to go to a page that allows you to enter your database information.
    Type your database name, wordpress.
    Type your MySQL user name and password (usually the user name and password are both admin, unless you changed them in the database).
    For the Database Host type localhost.
    Click Submit
    Can anyone help?
    Thank for your help,
    GWalton55

    I'm stuck installing virtualhosts in DW and using Wordpress templates, but I may be a few steps further than you are, so I'll try to help. I'm also using Windows, so who knows?
    I'm assuming you are not using a virtual host, just a local host; therefore, I went to the section that has instructions for the steps you are on in David Powers' "Adobe Dreamweaver CS5 with PHP: Training from the Source" and right after he has you launch the browser and open "wordpress/wp-admin/install.php" in "your [site name here] site." He goes on to write:
         The URL depends on how you set up your testing environment:
    Virutal host: http://[site name here]/wordpress/wp-admin/install.php
    Localhost: http://localhost/[site name here]/wordpress/wp-admin/install.php
    NOTE: if you are using the MAMP default ports on a Mac, add :8888 after [site name here] for a virual host, or after a localhost.
    So perhaps that's what you're missing, I really don't know.
    Good luck!

  • I have two companies sending me indesign documents. One opens up and the dictionary is set to English. The other file opens at is in Hebrew, Not sure how to fix the Hebrew part and whether or not the fualt lies at my end or at the other end

    I have two companies sending me indesign documents. One opens up and the dictionary is set to English. The other file opens at is in Hebrew, Not sure how to fix the Hebrew part and whether or not the fault lies at my end or at the other end

    If only the language is Hebrew, you should correct it in the Paragraph and Character Styles.
    But in such a case I would expect more problems.
    If you are a creative cloud subscriber you should additionally install the InDesign version, English with Hebrew support:
    Go to the preferences of you CC.app. It is found behind the Gear Symbols on the top right.
    When the preferences open, go to the Apps section.
    Change the App Language to English with Hebrew support.
    Now you can install it. It will install on the very same place where your InDesign program is found some additional plugins, which will give you access to Hebrew functionality, like RTL text. Otherwise you will inherit in the document (and where you copy and paste it from such a document into another one). But now you can change or repair problems.
    Now repeatstep 1 + 2, but you need not to install your own language again. InDesign will now, when started, run in the language of your OS (when you have it installed in that language) but with more functionality to handle problems with Hebrew documents.
    The same steps you would have to do with Arabic or Asian documents. These languages will also add more plugins. But keep it limitted to those language you need. I have installed it that way, because I get sometime documen where the text flows the wrong direction or the numbers come up in Farsi digit, not in Arabic digits. For such purposes I need versions in languages I don’t understand myself.

  • In Table Control How to get only a single row .

    Hi
    In Table Control How to get only a single row .I am able to decrease it its height to 4 but then 2 rows is getting dsplayed .I want only one row to be display and 2nd row should be deactivated or not visible.
    regards
    Avik
    Edited by: Julius Bussche on Jan 30, 2009 1:10 PM
    Removed friendly greeting from the subject title

    Hi Avik
    use this code it will help you.
    MODULE passdata OUTPUT.
      READ TABLE it_revision INTO wa_rev INDEX tab_clc-current_line.
      IF sy-subrc = 0.
        LOOP AT SCREEN.
          IF screen-group1 = '111'.      " 111 IS THE GROUP NAME
            screen-input = 1.          " input mode
            screen-active = 1.         " input mode.
            MODIFY SCREEN.
          ENDIF.
        ENDLOOP.
      ELSE.
        LOOP AT SCREEN.
          IF screen-group1 = '111'.       "GROUP NAME
            screen-input = 0.           " display mode
            screen-active = 1.          " DISPLAY MODE.
            MODIFY SCREEN.
          ENDIF.
        ENDLOOP.
      ENDIF.
    ENDMODULE.                 " PASSDATA  OUTPUT
    Make sure in group tou are passing the field name that you want in input mode on the base of other field
    Hope it will help you.
    Thanks
    Arun Kayal.

  • I recently purchased songs from itunes via my pc and I dont know how to get them onto my iphone? When I click the sync button it says I will lose all the music currently on my iphone.. Help :(

    I recently purchased songs from itunes via my pc and I dont know how to get them onto my iphone? When I click the sync button it says I will lose all the music currently on my iphone.. Help

    If you're syncing with a different iTunes library than the one you previously synced with, then there is no way around it. You're gonna loose the old data. The only way round it would be to make sure that all the music files on your iPhone is also in your iTunes library. If you still have access to the computer with the old library, you could copy the files on to an external harddrive, and then import them into your new iTunes library.
    If it is in fact the same library, then the music currently on your iphone, is also in your itunes library. Just make sure that the artists/albums/playlists, or whatever you sync contains these tracks, that you allready have on your phone and don't want deleted. What i do is, i create a playlist specifically for my iPhone, and i set it up to only sync with this playlist. Whenever i hear a track from my iTunes library or buy a new track that i want on my phone, i just drag it to this playlist and next time i synchronize, it's there without deleting anything else.

  • Z Tcode doesn't write the last part of program

    Hi experts,
    I have a program in a transaction code, and the last part, must be write:
    Send it to the world
        lv_sent_to_all = lo_send_request->send( i_with_error_screen = 'X' ).
        IF lv_sent_to_all = 'X'.
          WRITE 'Email Sent Successfully'.
        ENDIF.
        COMMIT WORK.
      CATCH cx_document_bcs INTO bcs_exception.
        WRITE: 'Error Occurred'. WRITE: 'Error Type', bcs_exception->error_type.
        EXIT.
    ENDTRY.
    If I execute only the program, the write works correctly.
    But if I execute the tcode (X) with the program, no write is working.
    Someone knows about it??? Why is working if you execute the program and not when you execute the transaction??
    thanks you very much!

    Its simple. While creating transaction code in SE93, u might have selected radio buton Program and screen (dialog transaction)
    It should be 2nd option Program and selection screen (report transaction)
    Create another transaction code selecting radio buton Program and selection screen (report transaction) and run the transaction code. It will work

  • Recently, U2 music appeared on my ipod without my requesting it or wanting it. I was able to delete all of the songs except for one. How do I delete the last one from my ipod? The song does not show up in iTunes when I plug my ipod into the computer.

    Recently, U2 music appeared on my ipod without my requesting it or wanting it. I was able to delete all of the songs except for one. How do I delete the last one from my ipod? The song does not show up in iTunes when I plug my ipod into the computer. The version installed on my ipod is 7.1.2(11D257).

    Hi donfrommars,
    Welcome to the Apple Support Communities!
    Please use the following article for information and instruction on deleting the U2 album from your devices and account.
    Remove iTunes gift album "Songs of Innocence" from your iTunes music library and purchases
    Have a great day,
    Joe

  • My mini died. bought one used from a friend... all of my songs and books are on my iPhone, and I cant figure out how to get them onto this new computer. this is frustrating. the things i really want are purchases I've made from itunes store... help

    My mini died. bought one used from a friend... all of my songs and books are on my iPhone, and I cant figure out how to get them onto this new computer. this is frustrating. the things i really want are purchases I've made from itunes store... help
    !!!!!

    Hey kevyg3,
    I was able to find an article that I believe will help you move your iTunes purchases from your iPhone over to your new computer:
    iTunes Store: Transferring purchases from your iOS device or iPod to a computer
    http://support.apple.com/kb/HT1848
    Hope this helps,
    David

  • I'm using Adobe Acrobat with the hope of editing a url on the graphic...a simple 3-letter change, save, close and send for printing..how do I get in edit mode to delete 3 letters and insert 3 new letters?

    ?I'm using Adobe Acrobat with the hope of editing a url on the graphic...a simple 3-letter change, save, close and send for printing..how do I get in edit mode to delete 3 letters and insert 3 new letters?

    pkg4ibm wrote:
    editing a url on the graphic...
    Not sure what you mean by that: is that URL in an image, or is it actual text?
    If it is in an image, then you need to extract the image, edit it with something like Photoshop, then add it back to the PDF.
    If the URL is actual text, I suggest that you remove the entire URL, then add the corrected link.

Maybe you are looking for

  • Error with clob column: "No pl/sql translation for the blind type given for this bind variable"

    This is reports 11g I've got a clob column. Reports seems to recognize its type, but if I try to reference it in a format trigger, I get this error at compile time: "No pl/sql translation for the blind type given for this bind variable"

  • Broken Buttons in CC

    I have a UI that I have built using the sprite technique. It moves the image up and down inside the window on button click. it works fine up until cc. Its weird because When I click in some of the other fields the buttons eventually change to what wa

  • Why do holidays appear more than once?

    Why do holidays appear more than once?

  • Cannot move applications to previous pages from iPhone home screen

    This is a recent issue that I just noticed today. When I press and hold on an app from my iPhone home screen, I can move it around within its own page, or move it to succeeding pages. However, the phone will not allow me to move the app to a PREVIOUS

  • In Design CS4 drops text when opening

    We have an issue involving opening pre existing ID files doesn't matter which version they were created in,  and when they are opened and you are prompted to find fonts and you replace them with our fonts, which by the way are the Adobe OTF Master Co