How do i get the absolute url using javascript?

I know this isnt a jsp problem but would be grateful if anyone can help.
In jsp the method request.getRequestURI() would be the equivilent of what I am looking for in javascript.

document.location

Similar Messages

  • How do i get the driver to use an HP laserjet 5mp with my Mac that runs Lion?

    how do i get the driver to use an HP laserjet 5mp with my Mac that runs Lion?  I'm told by HP to get it through Apple updates but it doesn't show up. 

    The term "server", while technically correct, is misleading.  A print server takes the low-level protocol spoken by a printer and serves it over a higher-level protocol.  For example, parallel printer port (a.k.a. Centronics or IEEE 1284) and serve it over USB.  Or parallel or USB and serve it over Ethernet with a variety of printing protocols (lpr/lpd protocol, JetDirect protocol, port 9100 protocol, the names are confusing).
    In reality, a print server looks nothing like what we usually associate with "server" (which is typically a biggish computer).  Instead they usually look like adapter plugs or even adapter cables, or like a little network hub (just with printer connectors instead of network connectors).
    Here are a few examples (I'll use Amazon as a guide book, without implying that I endorse them).  Let's start with USB to parallel; it seems they tend to look like adapter cables.  Here is one that takes a USB plug (male) and creates a female port that you can plug your regular old printer cable in: http://www.amazon.com/Cables-To-Go-16899-IEEE-1284/dp/B000UX21PY/ref=sr_1_1?ie=U TF8&qid=1333640548&sr=8-1
    And here is one that goes from a USB plug directly into the printer: http://www.amazon.com/Parallel-Printer-Adapter-Connect-parallel/dp/B000BV8604/re f=sr_1_4?ie=UTF8&qid=1333640548&sr=8-4 replacing the old printer cable.
    Then there are (really cheap) Ethernet to printer adapters.  Here is one that you put into the printer (warning, the plastic cover will probably not fit afterwards): http://www.amazon.com/TP-Link-AC-TL-PS110P-Single-Parall/dp/B003CFATR4/ref=sr_1_ 11?s=electronics&ie=UTF8&qid=1333640755&sr=1-11 By the way, I really don't like this type, I always find them unreliable.  But they are cheap.
    The ones I like look more like a network hub. Here is the NetGear PS110: http://www.amazon.com/NETGEAR-PS110-parallel-Ethernet-100Base-TX/dp/B0002AF9JU/r ef=sr_1_2?ie=UTF8&qid=1333640860&sr=8-2
    And the HP external JetDirect: http://h10010.www1.hp.com/wwpc/us/en/sm/WF05a/18972-18972-236253-34214-64302-273 16.html?dnr=1&jumpid=reg_r1002_usenc-001&lang=en&cc=us (I think this is the best one of the lot).  Both of those you put next to the printer, use your existing parallel printer cable, and connect them to the network.  Don't get scared by the astronomical price of the HP; it's commonly available used.
    There are even some wireless models around.  In theory, you might be able to use a parallel-to-USB adapter cable and then plug the USB cable into your trusty Apple Airport (as a good Apple fanboy or fangirl you've bought an Airport, right?), but I don't know whether that will work.  With the HP JetDirect box I'm quite certain that it will work (but it's old-fashioned, doesn't come in white, doesn't do wireless, and is not the slightest bit hip or cool).

  • How can I get the whole URL to my BSP Controller

    Hi,
    I need to build up a html-link with my bsp-url. How can I get the whole url to a specific controller, but without the session-id (sap(id))?
    I need something like the following:
    http://server:port/sap/bc/bsp/sap/<application>/<controller>.do
    Thank You!

    Hi Arne,
    you can create the URL with the method:
    CALL METHOD cl_bsp_runtime=>if_bsp_runtime~construct_bsp_url
       EXPORTING
          in_application_ns = ...
          in_application    = ...
          in_page           = ...
          in_parameters     = ...
        IMPORTING
          out_abs_url    = ....
    Regards,
    Rainer

  • How do I get the Tomcat port using Servlet.

    I am running Apache + Tomcat. All request are going though Apache. How do I get the Tomcat port using Servlet.

    See:
    ServletRequest.getServerPort()This will give the port upon which the request was recieved . . .which I blelieve is what you are looking for.

  • How can i get the full URL of a page displayed rather than just the main website URL

    I'm using Safari 8.0 on an iMac.  When I go to a website I'm used to seeing a specific page URL displayed /changing as I navigate around a site through its various subsections etc. Now after updating to Yosemite all I get is the URL of the general website. This means I can't make specific references/links in work that I'm doing/sharing. There must surely be a way of  getting the info into the bar so that I can copy it .... can anyone help please?

    Jorge Huedo wrote:
    > Yeah i know it was because i was getting crazy and i wanted to see debuggin if the image really existed in the km.
    > Okey I have use the IUrlGeneratorService like this.
    >
    >      IURLGeneratorService ugs = (IURLGeneratorService) ResourceFactory.getInstance().getServiceFactory().getService(IServiceTypesConst.URLGENERATOR_SERVICE);
    >      IUriReference uriRef;
    >      uriRef = ugs.getRelativeUri(PathKey.IMAGE_PATH).appendPath(
    >      resourceimg.getRID().toExternalForm());
    >
    > And it has returned me the next url:
    >
    > irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/etc/public/mimes/images/pip_hesaeventos/blank.JPG
    >
    > Now i have added to the base of the server the url:
    >
    > http://altp4.es.heiway.net:54500/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/etc/public/mimes/images/pip_hesaeventos/blank.JPG
    >
    > And the return is:
    >
    > 404
    > El recurso solicitado no está disponible.
    >
    > Any idea?
    You need to use the propert PathKey; I think CONTENT_ACCESS should be correct.

  • Where and how do I get the SQL Query used by the Microsoft Generic Report Library - Alerts?

    Background:
    I'm tasked with the following: I need to create a new Report and the SQL
    The two canned reports that I can pattern after are: Microsoft Generic Report Library
    - Alerts (there is also an alert detail report that can be chosen within the alert report that we may want to use instead)
    - Most Common Alerts
    I'm trying to do this:
    Add another parameter to search on customfield3.
    It should be able to report on all alerts that were assigned to the specific team for the time period along with the top 10 (most common alerts) assigned to the team for the time period.
    Choose as the objects (group) all servers, but Imay need to adjust the report to just look at all alerts without having to provide objects or a group
    The struggle I'm having is: I know SQL. I know how to create an RDL file.
    But Where are the RDL files for the canned reports so I can modify the canned RDL and modify its SQL and forms?
    What is the SQL/ where can I find the SQL used for the Generic Report Library -> Alerts

    Easy but you need to extract it from Microsoft Generic Report Pack. 
    So.. the procedure is as follows:
    1) You export and unseal Management Pack from your SCOM using
    Boris's OpsgMgr tools (MPViewer
    2.3.3)
    2) Ok you've got unsealed xml, now the tricky part, use
    MpElementsExtract tool, example of usage:
    MPElementsExtract.exe <MP.xml> /ex /destination:<destination>
    That you way you get several folders out of mp:
    DWScripts, DWSubScripts, LinkedReports, ReportResources, Reports
    Take a look into content of first 2, there will be pure sql scripts, and rdl's are in Reports folder :)
    Other way is to just use SQL profiler and catch SQL query while generating report. 
    --- Jeff (Netwrix)

  • How do I get the icloud to use my iture ID

    I have downloaded the icluod on both my windows vista and my windows 7. but when I go to log on it says that the id is valed but not for the cloud, and if I change the id I still get the same thing.

    This is how you create an Apple ID http://support.apple.com/kb/HT2731
    This has FAQs for setting up iCloud. http://support.apple.com/kb/HT4436

  • How do I get the printer to use regular (not Colorlok) paper when printing what it considers photos?

    I get emails with attachments of a document that someone has taken a picture of with  their iphone (a bill, a receipt, etc). I finally got the HP software to give me a print option, but when I try to print, the printer gives the error message that you must use colorlok paper. I'm printing a receipt, not a glossy family photo! Is there a setting that can be adjusted?

    Welcome to the HP Community , I saw your post about the message you're seeing to select colorlok paper, and I will surely do my best to help! When you open up the email attachment that you need to print, which program are the attachments opening up in that are not allowing you to select a different paper type? Let me know which program it is, and I will look in to the options. In the meantime, try using another program to print the items from if that's an option to see if that helps! I hope to hear from you! Say thanks for my reply to help you today by clicking the "thumbs up" below!

  • I want to use the ethernet connection from my new iMac to my Time Capsule.  It seems only the Wifi is seen by either device.  Ive connected the Time Capsule to the iMac.  How can I get the iMac to use the wired connection

    I want to connect my iMac to my Time Capsule using Ethernet.  I have them connected via an Ethernet cable, but only WiFi seems to be working.  How can I specify the Ethernet connection instead of WiFi?  Thanks
    Welked

    Go to preferences, network and see if ethernet is indicated. Be sure it shows a green dot.  Also be sure it is at the top of the list (above WiFi).  If not click on the the wheel at the bottom and set service order.

  • I tried to install firefox 4 and but not compatible with my computer Mac 10.4 now I don't have a firefox in my dock. How do I get the one I used before in my dock?

    How can I get firefox in my application folder? I lost it while trying to upgrade to firefox 4? I don't it in my dock. My computer is Mac 10.4 older one. Can you help me?

    Firefox 4 requires at least OS X 10.5 and an Intel Mac.
    * http://www.mozilla.com/firefox/4.0/system-requirements/
    For an unofficial Firefox 4 compatible version that runs on Mac OS X 10.4.11 or Mac OS X 10.5.8 (PowerPC) you can look at:
    * http://www.floodgap.com/software/tenfourfox/
    Firefox 3.6.x (Mac OS X 10.4 and later) can be found here:
    * http://www.mozilla.com/en-US/firefox/all-older.html

  • How do I get the absolute best performance out of my MacBook Pro while playing Minecraft/Java Based Games?

    I pretty much want to know how to boost my laptop performance for the lowest price. Is there much to do after upgrading to 8 gigs of RAM and a Samsung SSD? Also is there anyway to upgrade a MacBook Pro early 2011 2.0 GHz i7 Graphics card?

    you run into the limits of XP and built in graphics.
    I would hope that you found in all these years how to install and get new moddified gpu drivers.
    XP is limited and is 32-bit where each app gets 2GB address space also.
    Windows 7 64-bit (or 8 even free for now to test out) otherwise wait to buy a new Mac.

  • How can I get the Windows User using ABAP ?

    I need to get thru ABAP the Windows user.

    Hi Carlos,
    You can use the following FM to read the currently logged in windows user id:
    DATA: w_userid TYPE char20.
    CALL FUNCTION 'GUI_GET_DESKTOP_INFO'
         EXPORTING
              type   = '5'
         CHANGING
              return = w_userid.
    WRITE: 'Windows User ID:', w_userid.
    Hope this is what you need.
    Sumant.

  • How can I get the same result using single query?

    There are 3 tables
    1) tool_desc -
    a master table for storing tool records,
    columns tool_no, tool_chg,
    # of records = 1.5 Millon
    2) step_desc -
    a master table for storing plan wise step records,
    columns plan_id, step_key,
    # of records = 3700 Million
    3) step_tool - a transaction table storing tools to the steps,
    columns plan_id, step_key, tool_no, tool_chg
    For each step in the step_desc table, I need to randomly fetch 1 to 50 tools from tool_desc and insert them into step_tool table.
    Using PL/SQL block, it is like the following -
    begin
    for x in (select plan_id, step_key from step_desc) loop
    insert into step_tool(
    plan_id,
    step_key,
    tool_no,
    tool_chg)
    select
    plan_id,
    x.step_key,
    tool_no,
    tool_chg
    from
    tool sample(0.1)
    where
    rownum <= trunc(dbms_random.value(1,51))
    commit;
    end loop;
    end;
    I need to do the same using a single query so that I can use the CTAS (create table as select) statement and load the data as a bulk.
    Can I do that?

    If they have parent child releation, you can use connect by prior clause,

  • How do you get the iPad to use 4g?, How do you get the iPad to use 4g?

    Got an iPad iPad with retina display, last years model which says its 4g ready. Got an EE sim in which is a 4g sim, but iPad won't go onto 4g, area has 4g coverage, what do I need to do with the iPad?

    The iPad uses wifi first if available. If not aailable, it switches to cellular. Turn Off wifi.
     Cheers, Tom

  • How can I get the avaiable datatypes using single query?

    Is there any sql query to determine available datatypes along with their size lime in the current version of Oracle ?

    If they have parent child releation, you can use connect by prior clause,

Maybe you are looking for

  • My second ipod (here we go again)

    Well I didn't think I would ever do it, but I bought another ipod. I posted on here several times about trouble with my first one not being recognized by windows (usb device not recognized) Finally took it to an apple store in Cincy (80 miles away).

  • Display release button???

    Hi there, I bought an Ibook G4 3 months ago and I noticed that sometimes the display release button (button to press to open the ibook open) blocks inside... I then need to press at the extreme left or right for it to open. Is this a real problem wit

  • How to reset bios on pro book 5520s

    Thanks

  • Advice on installing 4.4 trial version, on laptop currently running 3.6

    I have a laptop running LR 3.6 and want to try 4.4 to determine whether the laptop is man enough for the job. It's a Core 2 Duo T6400 2.0Ghz with 4Gb RAM and Vista Home Premium 32 bit. If I install the trial version of 4.4 how do I make sure it doesn

  • Clearing app cache?

    I noticed that certain apps, like Facebook, Pinterest and Instagram, are starting to hog up a bunch of memory on my device. When checking the usage details, I don't have the option to clear out the 'documents & data' within the app. I've been reading