Get browser title in page code

Greetings!
Say I have a page with the following title...
<title>my page title</title>
...In the page code of my jsf page, I want to get at that title. How do I do this?
public void displayTitle(){
    //something here??
    String title = ?
    System.out.println("Title: " + title);
}...should result in:
Title: my page title

Thanks for the response BalusC!
You are correct, I'm attempting to get the page title in the backing pagecode. You are also correct that we could potentially store the page titles in a properties file or something else and have access both ways. Perhaps that would be ideal in the long run, but right now our website doesn't do this and it would take more time than what I've got right now to convert it.
The reason for this is basically our web designer has opted to use bread crumbs on our pages. The bread crumb links will match up with the page titles, and in some instances I will have to dynamically build the bread crumbs. It would be very handy to simply grab the page title, throw it into a bean, and use it on a later page. That would also allow for the page title to remain in the control of the jsp page.
So, any idea how to determine the page title from inside the backing pagecode?

Similar Messages

  • When I select a title in the iTunes Store and click on Play in iTunes I am sent to the download page for iTunes 10 which I have already. The selected title cannot be found anywhere in my iTunes. How can I get the title in iTunes with possibility to buy it

    When I select a title in the iTunes Store and click on Play in iTunes I am sent to the download page for iTunes 10 which I have already. The selected title cannot be found anywhere in my iTunes. How can I get the title in iTunes with possibility to buy it?

    The issue is that your credit or debit card credentials must be associated with the same country where you reside in order to purchase iTunes content.
    "Although you can browse the iTunes Store in any country without being signed in, you can only purchase content from the iTunes Store for your own country. This is enforced via the billing address associated with your credit card or other payment method that you use with the iTunes Store, rather than your actual geographic location. You can use the iTunes Store in all countries of which you’re a resident, but you’ll either need a separate iTunes Store account for each one, or you’ll need to continually be switching the billing information on your single account. Generally, it’s simpler just to set up an alternative account for these situations, although it’s worth nothing that features like iTunes in the CLoud and iTunes Match are designed to work best when using a single iTunes Store account, as you can only switch accounts with these services every 90 days."
    From here >  The Complete Guide to Using the iTunes Store | iLounge Article

  • When I try to print from web page I get "printer not activated - error code 30", but I can copy text into Word document & printer works.

    I am unable to print anything from an internet web page. I continually get "printer not activated, error code- 30" followed by "An unknown error occurred while printing". I can copy the material from the web page, place into a Word document and then print. This just started yesterday and I have no idea why. Would appreciate your advice!

    See this:
    [http://kb.mozillazine.org/Problems_printing_web_pages#Prints_to_a_small_portion_of_the_page]

  • When I send an email in Outlook 2010 I'm getting a blank HTML page tab showing up on my Firefox browser. Any ideas?

    I send an email in Outlook 2010 and I'm getting a blank page tab in Firefox with this address in the browser. The page says ''There are no items to show in this view''
    file:///C:/Documents%20and%20Settings/gkoch/Local%20Settings/Temporary%20Internet%20Files/%7B3CC4AC09-DE60-47D1-A08A-FE864958E679%7D/%7B050D6FB1-4E21-4ACC-9168-755D8BFCC2EF%7D.html
    This is occurring with Outlook. So is in that program or some link with Firefox

    If you are talking about your sender name (the one that appears on the From line when you compose an email) rather than your @icloud.com email address, to change it on your iOS device, go to Settings>Mail,Contacts,Calendars...tap iCloud under Accounts, tap your iCloud account at the top of the next screen, tap Mail at the bottom of the next screen, then enter the name you want to use in the Name field at the top.  Also go to icloud.com, sign into your account, open Mail, click the gear shaped icon on the bottom left and choose Preferences, go to the Accounts tab and enter the name you want to use in the Full Name field and click Done.

  • Title of Page Frame in Browser - How to Change?

    Hello,
    New to this. One quick question....
    When you create a site in iWeb, the page title (or top frame in the browser) reflects the name of the page, and I can't find a way to edit that portion of the page.
    For example, the homepage of my site is called "Home", however, I would rather it say (in the browser frame at the top) the name of the company (for search engine purposes).
    How can this be done? Thanks in advance...

    You would need to use iWebSEO to do this. It allows you to add page browser titles, tags and Google analytics to your site to be search engine friendly.
    Note, you need to publish your site to a local folder on your desktop first and then upload.

  • Comcast took over my firefox browser and home page, how do I get comcast out of my firefox

    I moved to a new area and comcast installed the service here. The installation and set up of the modem asked me to install a toolbar and I opted out because I see no use in comcast services. Comcast installed some thing like malware that took over safari chrome and firefox where all of the home pages were converted to their site. Safari required being reset and chrome I removed and reinstalled. Firefox has been completely taken over, I have uninstalled it 3 times and tried safe mode and just about everything else. I spent 2 hours on the phone with comcast to no avail and my feeling on it is that firefox is the most popular browser and comcast wants part of that so they have developed their own little malware to get in on firefox. What can I do as customer or user of firefox to get rid of comcast and their browser and home page and get back to what I am comfortable with which is firefox and my npr home page.

    Sorry, if resetting your homepage in Firefox doesn't work or that change is only temporary until the next time you use your PC or restart it, you need to uninstall that Comcast Toolbar from your PC. I don't know how or where that Comcast Toolbar for Firefox is installed, so you'll need to figure that out yourself.
    The first place to look is the Windows Control Panel > Add / Remove Programs, and it is there '''Remove''' it.
    Second place is in the Firefox Add-ons Manager tab - '''{ Ctrl + Shft + A }''' - if you find it there, '''Uninstall''' it from Firefox.
    If you are able to get rid of that Comcast Toolbar and still have problems with not being able to set your choice for a homepage, let us know. There are a couple of places that may have been messed with by that application, like a user.js file or the prefs.js file.
    I'm a Comcast user, too, although I have had this cable service for over 10 years now, with the two previous owners of the franchise for this area before Comcast bought out AT&T Cable. All three companies recommended that I have their "software" installed and I refused it each time. I told them if it was "required", they could close my account, that I would go elsewhere.

  • Browser title needs to pick up tab title within a jspx page.

    We are using dynamic tabs within a jspx. The requirement is that ,the browser title should pick the tab title when on-focus and the title should change when out-of-focus.We are not in favor of doing a full page refresh. Please advice.
    Regards,
    Sudhansu

    Something like this:
    <?xml version='1.0' encoding='UTF-8'?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <f:view xmlns:f="http://java.sun.com/jsf/core" xmlns:af="http://xmlns.oracle.com/adf/faces/rich">
      <af:document title="#{b2.title}" id="d1" partialTriggers="sdi1 sdi2">
        <af:form id="f1">
          <af:panelTabbed id="pt1">
            <af:showDetailItem text="Tab 1" id="sdi1" disclosureListener="#{b2.dcl}"/>
            <af:showDetailItem text="Tab 2" id="sdi2" disclosureListener="#{b2.dcl}"/>
          </af:panelTabbed>
        </af:form>
      </af:document>
    </f:view>bean:
    package view;
    import oracle.adf.view.rich.component.rich.layout.RichShowDetailItem;
    import org.apache.myfaces.trinidad.event.DisclosureEvent;
    public class b2
      private String _title;
      public b2()
        super();
      public String getTitle()
        return _title;
      public void setTitle(String t)
        _title = t;
      public void dcl(DisclosureEvent d)
        RichShowDetailItem di = (RichShowDetailItem) d.getComponent();
        setTitle(di.getText());
    }

  • HT1212 I want to eliminate putting in a code to get to my home page.

    I want to eliminate having to enter a four digit code to get to my home page on my Iphone.

    Settings - General - Passcode Lock (turn it off)

  • I'm getting a message "404 (page not found error)" I think I entered an incorrect URL into my browser's address bar. How do I fix that?

    I was trying to post a comment on a support group site. I was asked what web address I was using, or something along those lines. In hindsight, I stupidly typed a '?' and pressed send. Now, when I try to access that site I get the message "404 (page not found error)
    If you're the site owner, one of two things happened:
    1. 1) You entered an incorrect URL into your browser's address bar, or
    2. 2) You haven't uploaded content."
    How can I fix this.

    I spoke with a Dell technician about this problem. He tried to access the site in question from his computer, i.e. separate from my computer, and he also got the same "404 (page not found error)". He said the problem lies with the site itself, not my computer, and that I should notify the site. Problem is I can't notify the site if I can't access it.

  • I am having trouble printing I have a connection to my printer wirelessly but does not print out the correct page I want.When I do print I get a bunch of pages more than is needed and also get a code and symbols please help I am jammed at work

    I am having trouble printing I have a connection to my printer wirelessly but does not print out the correct page I want.When I do print I get a bunch of pages more than is needed and also get a code and symbols please help I am jammed at work

    This can be the result of selecting the wrong driver. An older, unsupported laser printer will sometimes work with the generic Postscript driver.

  • How to set the title of pages created in Webcenter Spaces?

    Hi
    I need to set the title of the pages created in webcenter spaces. How can i do that? By default when i create the page in webcenter spaces the page name with which i created the page is coming up on the browser tab. But i want the browser title to be different from the page name. Is there a way to do this? I tried with using javascript and setting "document.title" but it works only partially. That is when the page is loading it shows the text that i have set using javascript but it doesnot remain persistent. As soon as the page loads it again resets back to the name of the page :(
    I also tried adding html markup on to the page in edit mode and tried giving in the <title> tag but it is not getting applied, as soon as i click on apply it just refreshes the page and my changes are gone.
    Please i need some help around this asap as it is critical.
    Thanks

    Thanks for the reply Jaap.
    It was really helpful. But i need further help on this.
    I need to change the browser title based on the tab selected. And here the tabs on spaces page is actually coming from a custom task flow. Any idea how can i achieve this? And there is no page refresh involved.
    Some help on this please.
    Thanks

  • Change browser title from framename

    Hello, I've created with robohelp 8 a WebHelp. The browser display's in the title bar the title of my project. Is it possible to change this title when you choose a topic? Like you click from the startpage (title=startpage) on topic A, the the browser title changes to A? I've searched the web for answers, but the ones I found wouldn't work in my Webhelp. For example there is a javascript, which you include in your topic HTML:
    <body OnLoad="parent.document.title=document.title"> Unfortunately this doesn't work.
    Does anybody know how to solve this?

    I have found the solution:
    Just put this code in your topic pages:
    <body onload="parent.parent.document.title=document.title">
    This works great. The only problem is that when you put this code in your masterpage's RoboHelp strips the code, so in you export such as webhelp the code has disappeared. The solution is to modify the page's afther exporting your webhelp. I use dreamweaver, this tool has an batch function for search and replace which makes it an easy job!
    I wil send Adobe a suggestion to make this function in the software, that would be easier.

  • Help.... trying to set the browser title for reports called from 9i form

    hello all
    I am attempting to call a 9i report from an oracle 9i form .I am using the following code
    repid := find_report_object('report5');
    SET_REPORT_OBJECT_PROPERTY
    SET_REPORT_OBJECT_PROPERTY (repid,REPORT_type,CACHE);
    SET_REPORT_OBJECT_PROPERTY (repid,REPORT_DESFORMAT,pdf);
    SET_REPORT_OBJECT_PROPERTY(repid,REPORT_SERVER,'sandy4');
    v_rep := RUN_REPORT_OBJECT(repid,p1_id);
    IF rep_status = 'FINISHED' THEN
    /*Display report in the browser*/
    WEB.SHOW_DOCUMENT('http://----.--------.com:8888/reports/rwservlet/getjobid'|| substr(v_rep,instr(v_rep,'_',-1)+1)||'?'||'server=sandy4,'_blank');
    .. and so on
    The reports RUNS FINE AND POPS UP AS A NEAT PDF internet explorer page !!!
    I WAS WONDERING IF THERE IS ANYWAY TO SET THE BROWSER TITLE OF THIS REPORT THAT POPS UP..
    DO I HAVE TO CHANGE SOME PROPERTY AT THE REPORT END
    OR CAN I SET IT DYNAMICALLY BY PASSING AS A PARAMETER
    FROM MY FORM
    I HAVE SEARCHED EVERYWHERE FOR THIS
    PL HELP
    I WILL REALLY APPRECIATE IT IF SOMONE CUD HELP ME WITH
    THIS
    THANK YOU
    SANDY

    Hi,
    It is possible to set the Document title for PDF output. Open the Reports Property Inspector, under PDF Document Taxonomy, you can set the Document title. But this does not show up in the browser when you open the document.
    thanks,
    Senthil

  • Title of Page from Pages library not appearing as expected from custom pagelayouts VS solution

    hi,
    i have created a custom web page from pages library using custom page layouts library with the help of a wsp.
    here is my  sample page.
    now my issue is,  when i go to the page / the title of the page is not displaying correctly.
    as per my requirement the ttile  of the page   should be  APPROVE/REJECT Doc
    which is mentioned in the  <title>APPROVE/REJECT Doc</title></head>.
    and in my VS 2012 pagelayouts solution i have added this page name approve1.aspx.
    hence  i am getting the Page title from the pages lib as approve1 .
    can someone pls help what should i do to get this title issue  resolved.
    i cant rename the page again from the solution.i  would like to see the title of this page takes from <title>APPROVE/REJECT Doc</title></head> .
    <%@ Page Inherits="Microsoft.SharePoint.Publishing.TemplateRedirectionPage,Microsoft.SharePoint.Publishing,Version=15.0.0.0,Culture=neutral,PublicKeyToken=71e9bce111e9429c" %> <%@ Reference VirtualPath="~TemplatePageUrl" %>
    <%@ Reference VirtualPath="~masterurl/custom.master" %><%@ Register Tagprefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c"
    %>
    <html xmlns:mso="urn:schemas-microsoft-com:office:office" xmlns:msdt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882"><head>
    <!--[if gte mso 9]><xml>
    <mso:CustomDocumentProperties>
    <mso:PublishingContact msdt:dt="string">47</mso:PublishingContact>
    <mso:PublishingIsFurlPage msdt:dt="string">0</mso:PublishingIsFurlPage>
    <mso:display_urn_x003a_schemas-microsoft-com_x003a_office_x003a_office_x0023_PublishingContact msdt:dt="string">hellooo1</mso:display_urn_x003a_schemas-microsoft-com_x003a_office_x003a_office_x0023_PublishingContact>
    <mso:PublishingContactPicture msdt:dt="string"></mso:PublishingContactPicture>
    <mso:RobotsNoIndex msdt:dt="string">0</mso:RobotsNoIndex>
    <mso:PublishingContactName msdt:dt="string"></mso:PublishingContactName>
    <mso:ContentTypeId msdt:dt="string">0x010100C568DB52D9D0A14D9B2FDCC96666E9F2007948130EC3DB064584E219954237AF390076F7B5D03DD146D699D042E1C5D76EF70034D563D3D2DE07429FB160DADE75B460</mso:ContentTypeId>
    <mso:PublishingPageLayoutName msdt:dt="string">myPage.aspx</mso:PublishingPageLayoutName>
    <mso:Comments msdt:dt="string"></mso:Comments>
    <mso:PublishingContactEmail msdt:dt="string"></mso:PublishingContactEmail>
    </mso:CustomDocumentProperties>
    </xml><![endif]-->
    <title>APPROVE/REJECT Doc</title></head>

    Hi,
    As there is no complete code at hand, you can take the snippet below about updating the name of a page in a page library as a reference:
    if((Get-PSSnapin | Where {$_.Name -eq "Microsoft.SharePoint.PowerShell"}) -eq $null) {
    Add-PSSnapin Microsoft.SharePoint.PowerShell;
    $web = Get-SPWeb http://yoursite
    $list = $web.Lists["Site Pages"]
    $listItems = $list.Items
    foreach($item in $listItems)
    if ($item.Name -eq "Page1.aspx")
    $file = $item.File
    $file.MoveTo($item.ParentList.RootFolder.Url + "/" + "Page1_changed.aspx")
    $file.Update()
    #dispose of web
    $web.dispose();
    Best regards
    Patrick Liang
    TechNet Community Support

  • Timer task (Time Schduling ) in JSP for hit/browse another site page

    Hi All ,
    I want to develope a JSP application which is run the perticular link in every 30 min.
    means i want to set the scheduling of 30 min which is browese(run) my another server link like http://nileshpatel.com/abc.jsp
    How can i do it OR Time Scheduling is possible in JSP?
    Thanks
    Nilesh Patel

    Yeah, I couldn't get it to work on the onLoad funtion either but it is probably a nested quote problem. Put it in a function and call that function from the onLoad event.
    <html>
    <head>
      <script type="text/javascript">
        function resubmit() {
          setTimeout("top.location.href='test.html'",3000);
          return true;
      </script>
    </head>
    <body onLoad="resubmit();">
    </body>Problems: This will only work if the user has the page with the above code opened when the 30min passes by. If they go to some other page, it won't work. If the user goes surfing around multiple pages with this code on it, the 30 minutes will be reset at each point the user gets to a new page.
    You are better off writing a normal Java application with a timer that runs as a service. Every 30 minutes it would trigger a browser to open the web page.

Maybe you are looking for

  • Setting up iPhone 4s voice mail??

    Hello all I got my first iPhone and I assumed the voicemail would transfer over like in the past but it doesn't, and my callers are getting this funmky message about entering a ,mailbox number etc. Some of my friends thought I cut off my service. How

  • How to convert java class to dll file for using in Microsoft Technology(.n)

    hey hemmj !!!!!! nice replying , first of all i d like to say thanks for response me so frequently..... i like such type of guy... i d never forget ur online support. hey buddy, i ve a problem with applet application... i m working on java chat serve

  • How to use a Java Thread in a Java Stored Procedure?

    I am working with java stored Procedures but i have a problem when i use threads.While the thread is running all the processes are blocked because the thread is not detatched.I don't know if it is impossible to use Thread in a java stored procedure.i

  • Push notification feedback problem

    Hello everybody. I've installed on my iPhone ad-hoc version, so it means distribution one. I've downloaded apns-shart library and tried to test push notifications on that. I have all necessary certificates. I've succeeded to push notifications using

  • KM Document iView and User Permissions

    Hi all, I have created a KM Document iView to display a document (stored within KM) to my users. However, it is happening something I believe is not correct. When I set only READ permission for this folder, the KM Document iView is not able to displa