Can I capture the url of the page I am on and set it to a variable??

Hi..
I was wondering how I can capture the url of the page that I am on and then set it to a variable??? is that possible???
Thx
Rich

Try this.
String url =request.getRequestURI();
Hope this helps.
Fred

Similar Messages

  • When I open a new tab, the new tab used to show shots of 6 or so of the last sites I'd viewed, so I could easily click on one and go to it. Now it shows a blank tab and I have to type the URL of the page I want. How can I change it back?

    When I open a new tab, the new tab used to show shots of 6 or so of the last sites I'd viewed, so I could easily click on one and go to it. Now it shows a blank tab and I have to type the URL of the page I want. How can I change it back?

    Did you have the Google Toolbar installed?
    * http://www.google.com/support/toolbar/bin/answer.py?answer=115561 Web-browsing tools : Google new tab page and most visited websites
    Other extension that have a similar feature:
    *Speed Dial: https://addons.mozilla.org/firefox/addon/4810
    *Fast Dial: https://addons.mozilla.org/firefox/addon/5721

  • 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

  • Since switching to Firefox 4 I'm unable to access a web page by pressing "Enter" after typing the url in the address bar; I now have to click on the bar; how do I change things so that I can go back to a keyboard shortcut?

    I use keyboard shortcuts whenever possible but since updating to Firefox 4 I can no longer access a web page simply by pressing "Enter" after typing the url in the address bar. Can I get back to this useful shortcut somehow and avoid having to fiddle with a mouse?

    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
    * Don't make any changes on the Safe mode start window.
    * https://support.mozilla.com/kb/Safe+Mode
    If it does work in Safe-mode then disable all extensions and then try to find which is causing it by enabling one at a time until the problem reappears.
    * Use "Disable all add-ons" on the [[Safe mode]] start window to disable all extensions.
    * Close and restart Firefox after each change via "File > Exit" (Mac: "Firefox > Quit"; Linux: "File > Quit")
    * [[Troubleshooting extensions and themes]]

  • I'd like to save the URLs of the group of pages tabbed in one particular FF window to be reloaded en masse when I use FF again some time in the future

    I have a lot of browser tabs currently and I will not have finished using them by the time I next reboot, shutting down Firefox. On the other hand there are too many to fit neatly in one FF window so I've opened a 2nd window and moved a bunch over. Now I want to know how I can make sure FF will remember all the tab URLs when I start it again - and how I can be sure it will load them up in separate windows as presently. Because I have a feeling it will just dump them all in the one window. But there's too many to make that useful! On Opera you can save a 'session' with a particular selection of tabbed URLs, under a particular name, and then reload that session later. You can even start up several past sessions as separate windows at the same time. In that way you can select which groups of previous tabs you want to recall when. I'd like that in Firefox but I can't see anything to create it. :) What will happen for instance when I close the two current windows before rebooting? I suspect I will lose the record of the URLs in the window that is closed first, and only those of the 2nd to be recalled will come back when re-starting it. Basically there needs to be a "Save Group of Tabs" option on the File menu near "Save Page As...". On the other hand maybe this facility already exists and I just don't know how to find it?

    Take a look at [https://addons.mozilla.org/en-US/firefox/search/?q=Session&cat=all&lver=any&pid=1&sort=&pp=20&lup=&advanced= these extensions at AMO] for those features.

  • How do I find out the URL of the page a document was downloaded from?

    I downloaded a PDF several months ago; I can see it in my downloads history. When I right click it there, I see the link to the PDF itself, but I need to know the actual page it came from.
    I've checked my History, but cannot identify the page.
    Is there a definitive way of determining the URL of the page that linked to the document?

    Open the Download Manager window and select that file.
    Copy and paste this code in the Code field in the Error Console and click the Evaluate button.
    *Firefox/Tools > Web Development > Error Console
    The code adds a tooltip to the area with the file type icon at the left hand side of each entry in the DM window and shows a tooltip when you hover that area.<br />
    It only works for entries that are currently visible in the DM and not for new entries that are added by downloading files and only as long as the DM window is kept open, so you need to rerun the code in the Error Console to get a tooltip.
    <pre><nowiki>const Cc=Components.classes, Ci=Components.interfaces;
    var enumerator=Cc["@mozilla.org/appshell/window-mediator;1"].getService(Ci.nsIWindowMediator).getEnumerator(null);
    while(enumerator.hasMoreElements()){var win=enumerator.getNext();
    if(win.location=="chrome://mozapps/content/downloads/downloads.xul"){
    var i,r,R,C='';
    r=win.document.getElementById("downloadView").getElementsByTagName("richlistitem");
    for(i=0;R=r[i];i++){
    var fP=R.getAttribute("path");
    var fU=R.getAttribute("uri");
    var sT=parseInt(R.getAttribute("startTime"));
    var eT=parseInt(R.getAttribute("endTime"));
    var cB=parseInt(R.getAttribute("currBytes"));
    var mB=parseInt(R.getAttribute("maxBytes"));
    var rU=R.hasAttribute("referrer")?R.getAttribute("referrer"):"<no referrer>";
    var sD=cB/(eT-sT);
    var tT=[];
    tT.push("FILE: "+fP);
    tT.push("URI: "+fU);
    tT.push("REF: "+rU);
    tT.push("");
    tT.push("Total Time: "+((eT-sT)/1E3)+" sec.");
    tT.push("Curr Bytes: "+cB+" bytes"+((cB==mB)?" (OK)":"(part)"));
    tT.push("Max Bytes: "+mB+" bytes");
    tT.push("Download speed: "+sD.toFixed(3)+" KB/sec");
    R.setAttribute("tooltiptext",tT.join("\n"));
    if(R.getAttribute("selected")=="true"){C=tT;}
    if(C)prompt(C.join("\n"),C);
    </nowiki></pre>

  • When i send a page from a website to my printers email address, it only prints the url not the page

    I have a Photosmart D110 all in one and just bought a Asus Transformer tablet. I`ve downloaded the eprint app and every time I share a page from a website via email to my printers email address it only prints the URL not the actual webpage. Also when I click the share option it gives me the option to share with the eprint app, but when I do it say it can't read or support the file due to paper size not being selected.
    This question was solved.
    View Solution.

    Hi,
    The HP ePrint does not support web pages printing
    Printing Web pages through email is currently not supported. HP is in the process of developing solutions to support Web page printing for mobile devices.
     http://h10025.www1.hp.com/ewfrf/wc/document?docname=c02881579&cc=us&dlc=en&lc=en&product=5058336#N91...
    You may print web pages using the HP ePrint Home & Biz app by using its integrated web browser:
    http://h10025.www1.hp.com/ewfrf/wc/document?docname=c01616126&lc=en&cc=us&dlc=en&product=3857218#N58...
    Regards,
    Shlomi
    Say thanks by clicking the Kudos thumb up in the post.
    If my post resolve your problem please mark it as an Accepted Solution

  • Pass the product ID through the URL from the checkout page to the "receipt - buy" landing page. is it possible?

    Pass the product ID through the URL from the checkout page to the "receipt - buy" landing page. is it possible?

    You can just the module_shoppingcartsummary module and with liquid you can render the items in the cart out.
    Developer reference

  • The address bar is not displaying the URL of the page

    When I open a tab, I cannot see the URL of the opened page in it. If I enter a new address and press enter, I go to the page. The URL displays the entered URL, but doesn't change for the new pages that load.
    Also, the back/forward buttons do not work. I'm guessing it's related to the address bar issue.

    Found it! The "Redirect Remover" extension was causing the problem! Thanks for your help :)

  • Why is it that now, when I click on a link for a website I've saved, it does NOT show the URL in the address bar? I can't drag it to an email to share the link.

    Why is it that in these newer versions of Firefox (I have 21.0), when I open a link that I've saved, it does NOT display the URL in the address bar any more?
    I can't drag and drop the link into an email, and I can't see the actual web address I'm connected to for reference OR for security purposes. Why was this changed?
    It becomes necessary to reveal the properties of the URL link I've saved, using the Windows "Properties", then copying and pasting the URL into the Firefox address bar, before I can do anything with it.

    No changes have been made and no problem with extensions has interfered with the URL appearing in Firefox before. Only with the last few new versions of Firefox has this cropped up. Also, the link opens correctly - it just doesn't display the URL in the address bar, instead it just reads (in gray) "Search or enter address." How could another extension interfere if Firefox is the sole program associated with .htm, .html files?

  • How can we provide 2 URLs in the HR personalization form, so that users can

    We are not able to open the PDF report from the external node which is placed under the OA_HTML. Nvaigation is Employee Self Service for US -> Update or Add Direct Deposit Account
    Internal urll ----"http://tech.com:8000/OA_HTML/TTEC_Benefits_Docs/Branded/DebitCrdholderBrochureSignature.pdf"
    However, the external users from internet need to access the pdf document and this fails for them because they have no access to above URL from public internet. They need to get to above pdf document for e.g. as:
    "https://publicerptech.com:443/OA_HTML/TTEC_Benefits_Docs/Branded/DebitCrdholderBrochureSignature.pdf"
    How can we provide 2 URLs in the HR personalization form, so that users can access the pdf document?

    Hello David,
    Sorry for not getting back to you sooner. You can provide feedback on Transport agents by using this site:
    http://officespdev.uservoice.com/.
    With regards,
    Michael | Microsoft Exchange Developer Content
    The
    Exchange Development Forum Guide has useful information for using the Exchange Development Forum.
    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.

  • Why can't I see the URL in the address bar when I click on a hyperling, as opposed to typing in a URL? I send a lot of links, but if I can't copy and paste them from your address bar I'll have to abandon Firefox and use another browser.

    I just gave you the details. When I click on a hyperlink, the URL of the site/page is not in the address box at the top of the page.

    Type '''about:config''' in the Location (address) bar and press the "Enter" key. When you see a warning, click '''I'll be careful, I promise!''' button.
    -> In the '''Filter bar''', type '''browser.urlbar.formatting.enabled'''
    * Right click the preference '''browser.urlbar.formatting.enabled''' and click '''Toggle'''
    * The value is now set to '''False'''
    -> In the '''Filter bar''', type '''browser.urlbar.trimURLs'''
    * Right click the preference '''browser.urlbar.trimURLs''' and click '''Toggle'''
    * The value is now set to '''False'''
    -> Close the '''about:config''' tab and then Restart Firefox.
    Check and tell if its working.

  • I have just downloaded the latest update for Pages on my iPad and now it can no longer open up documents in iCloud and then just shuts down. What The.

    i have just downloaded the latest update for Pages on my iPad and now it can no longer open up documents in iCloud and then just shuts down. What The.

    Before the reset quit Pages like this:
    Double click the Home button to show the screen with running and recently used apps. Each app icon will have a sample page above it. Flick up on the page (not the app icon) and the page will fly away and the app icon will disappear. This quits that app.

  • [svn:bz-trunk] 17772: Update the url in the tests to use a relative path instead of the default localhost : 8400 so that the tests can pass on appservers other than the default Tomcat .

    Revision: 17772
    Revision: 17772
    Author:   [email protected]
    Date:     2010-09-20 15:02:50 -0700 (Mon, 20 Sep 2010)
    Log Message:
    Update the url in the tests to use a relative path instead of the default localhost:8400 so that the tests can pass on appservers other than the default Tomcat.
    Modified Paths:
        blazeds/trunk/qa/apps/qa-regress/testsuites/config/tests/EnforceEndpointValidation/Enforc eEndpointValidationFalseTest/Remoting_NetConnectionTest.mxml
        blazeds/trunk/qa/apps/qa-regress/testsuites/config/tests/EnforceEndpointValidation/Enforc eEndpointValidationTrueTest/Remoting_NetConnectionTest.mxml

    Revision: 17772
    Revision: 17772
    Author:   [email protected]
    Date:     2010-09-20 15:02:50 -0700 (Mon, 20 Sep 2010)
    Log Message:
    Update the url in the tests to use a relative path instead of the default localhost:8400 so that the tests can pass on appservers other than the default Tomcat.
    Modified Paths:
        blazeds/trunk/qa/apps/qa-regress/testsuites/config/tests/EnforceEndpointValidation/Enforc eEndpointValidationFalseTest/Remoting_NetConnectionTest.mxml
        blazeds/trunk/qa/apps/qa-regress/testsuites/config/tests/EnforceEndpointValidation/Enforc eEndpointValidationTrueTest/Remoting_NetConnectionTest.mxml

  • How can I include a captivate variable in the URL of the website widget?

    I am using the website widget to bring up some customized content during the course.
    The URL contains a variable which will be different for every user.
    I can't find the option of including a variable in the URL with the widget.
    Has any figured out how to accomplish this?

    I am using Cp8.
    I publish in both swf and html5 formats so that the course functions on all device platforms.
    A swf only solution would preclude IOS since it doesn't support flash.

Maybe you are looking for

  • How to create a group of some of the items of a page programatically.

    Hi, I am able to create a group of all Items of a page successfully. But I want to create a group of some of the item of the page. Below is my code snape: InterfacePtr<ICommand> groupItemsCmd(CmdUtils::CreateCommand(kGroupCmdBoss)); ASSERT(groupItems

  • How to convert a String into a date in yyyy-MM-dd using SimpleDateFormat?

    Hi Guys, I am using the following code import java.text.ParseException; import java.text.SimpleDateFormat; public class ValiDATE {      private static boolean validateDateFormat(String strDate) {           try {                SimpleDateFormat format

  • RFC Call from one server to another

    Hi, Is it possible to use an rfc from one server to another on the same network? My Idea was that we can do so, however there's a little confusion about the same . Please clarify. Regards, Vikas

  • My adapter.

    My adapter won't charge when I plug it into my macbook. Why is that

  • Web Services with CFC

    I am having trouble with calling a web service via <cfinvoke> It seems to be some type of a caching issue. The cfc works perfectly at first, but if I make any changes to a function once the page has been "hit", the call fails. I can copy the exact sa