Get the name of the jsp currently displayed

Hi,
how can i get the name of the jsp currently displayed?
Thanks.

Yep
I thought about
UIViewRoot viewRoot = FacesContext.getCurrentInstance().getViewRoot();
String name = viewRoot.getViewId(); Message was edited by:
nereidahoxhaj

Similar Messages

  • How to get the name of the currently used display variant

    Dear all,
    I found the user-exit EXIT_SAPLGRAP_001 for programming download authorization.
    With us no standard user is allowd to download data from R/3. With the user-exit it would be possible to allow certain downloads. one problem i solved already.
    For programming the second authorization i need the name of the currently used display variant in RKPEP000. Where can i get the name. I tried user-exits for RKPEP000, but i didn't find the name. I didn't find it in SYST either.
    Thanks and reargs
    Monika

    First you need to enter those names. Right-click the songs (Windows) or go to File>Get Info (All Platforms), then go to the second tab from the left to insert the information.

  • How to get the name of the current tab.

    Hi Experts,
    I have two tabs in my tab strip and a button common to both the tabs.Can you please let me know how to get the name of the current tab in the event method of the push button.
    Thanks in advance.
    Regards,
    Arun

    1.Declare an Action for OnSelect event of Tabstrip. This event is triggered whenever any change in tab occurs.
    2. Declare an Import Parameter in this method
       Tab type String.
    3. This parameter has value of the selected TAB.
    4. You can set this value in some Attribute in Attribute Tab in this event only (OnSelect):
         wd_this->Att  = Tab.
    Att is the attribute created by you in Attributes Tab of View. ( of type String)
    5. Now the selected Tab ID is stored in this Attribute Att.
    6. In the Onaction of Button , retrieve the selected tab value from this attribute using :
               Data : lv type string.
                lv =  wd_this->Att
    Now lv has your selected TAB ID.
    I hope it would help you.
    Edited by: Saurav Mago on Oct 13, 2009 2:22 PM

  • How to get the name of the city and state of the current location of the user

    Hi all
             i need to get the name of the city and state (full address) of the current location of the user.
    need help.

    The best way to do this is to put the monitor name as a property bag in the script and pass that to your event details. Otherwise, we're looking at querying the database each time the monitor generates an event, and this is overhead that is really not
    necessary. The other option, which is just even worse in terms of performance, is to use powershell to query the SDK for the monitor name. Both of these options are not going to be a good solution, because now you need to implement action accounts that can
    either query the database or the sdk.
    Jonathan Almquist | SCOMskills, LLC (http://scomskills.com)

  • How do I get character viewer to display the names of the radicals in Japanese, as they were until Lion

    In Leopard, Character Viewer displayed the names of the radicals of Japanese characters in Japanese.
    Now I have Lion, the radicals all have English names which are totally different and impossible to search phonetically. I can't find a way to choose the language of the Character Viewer. Do I have to set the whole iMac to use Japanese as its basic language? That would be a pain for everything else.
    Thanks for looking.

    If you put Japanese at the top of the Langauge tab list, but do not logout/login, then only newly opened apps will appear in Japanese.  That way you can get only Character Viewer in Japanese.   Maybe this will also work
    http://www.tj-hd.co.uk/en-gb/languageswitcher/
    Another approach would be to open the Character Viewer app and modify its .lproj folders.
    If you still have a copy of Leopard, you may be able to transplant its Character Viewer app to Lion and use it as an independent app.

  • How to get the name of the class which is currently in use

    Hi all,
    I have two classes Mother and Child, and I use this code to print the name of the class in use
      DATA m TYPE REF TO zmother.
      DATA class_name type string VALUE 'CHILD'.
      CREATE OBJECT m TYPE (class_name).
      CALL METHOD m->PrintName .
    So, what is the source code that I have to put in the PrintName methode?
    Thanks.

    Ok, but how can I get the name of the object class that calls the methode!
    REPORT  ztest_method.
    *       CLASS c1 DEFINITION
    CLASS c1 DEFINITION.
      PUBLIC SECTION.
        METHODS: get_data.
    ENDCLASS.                    "c1 DEFINITION
    *       CLASS c1 IMPLEMENTATION
    CLASS c1 IMPLEMENTATION.
      METHOD get_data.
    ****** What is the code to put here to know the name of this Class?*
      ENDMETHOD.                    "get_data
    ENDCLASS.                    "c1 IMPLEMENTATION
    DATA oref TYPE REF TO object.
    DATA: method TYPE string.
    DATA: cla_name(20).
    START-OF-SELECTION.
      cla_name = 'C1'.
      CREATE OBJECT oref TYPE (cla_name).
      BREAK-POINT.
      CALL METHOD oref->(method).

  • How can i get the name of the lan that the task is in from a bean

    I'm using jdeveloper ps6 and i wan to get the name of the lane that the my task now is on to display on a page and to disable and enable some
    user fields depending on the name of the lane, as i've 4 organizations and i want to know the name the current organization to disable some fields.

    did you try to get it from the task payload? In the task payload we will have swimlane role. I think, you can get it from the payload.
    Thank you,
    Keshav CH

  • How can I keep the name of the user around for each JSP without asking user

    I have a number of JSP pages that I give the user access to once they login successfully. I want to be able to keep the name of the user present on every page without having to ask them for it each time.
    How can I do this? Currently I have a user object that is access through use of a request bean in my JSP's.
    Any suggestions???

    Thanks for the help. A few questions though...
    Can you just clarify how the 2 different SessionTest2.jsp's differ. I am right in thinking that the second one will instantiate a new bean object which if I do every time I go to the page, I will be getting the same name but in a different session each time. In the first SessionTest.jsp, I get the same name but from the same session object each time??
    Please clarify???
    SessionTest1.jsp
    <%@ page language="java" import="test.*" %>
    <jsp:useBean id="testBean" scope="session"
    class="test.TestBean" />
    <jsp:setProperty name="testBean" property="name"
    value="ZZZZZ" />
    <jsp:setProperty name="testBean" property="status"
    value="Married" />
    <%
         response.sendRedirect("SessionTest2.jsp");
         return;
    %>
    SessionTest2.jsp
    <%@ page import="test.*" %>
    <jsp:useBean id="testBean" scope="session"
    class="test.TestBean" />
    <%
    out.println("User Name is : "+testBean.getName());
    %>or SessionTest2.jsp
    <%@ page import="test.*" %>
    <jsp:useBean id="testBean" scope="session"
    class="test.TestBean" />
    <%
    TestBean testBean =
    (TestBean)session.getAttribute("testBean");
         out.println("Name is : "+testBean.getName());
    %>Hope this helps.
    Sudha

  • When I download something from the Web, the "Downloads" window opens, but the window remains blank. Before it used to at least show the name of the file and I could open the file from the "Downloads" window. Is there a way to get this functionality back?

    I'm running Windows XP which is updated to latest version (which I think might be Service Pack 3, but not positive.) Mozilla Firefox is version 5.0. I tend to use Google as my search engine so most of the stuff I download comes through sites found through Google, which is also updated.
    At some time in the past (maybe a few versions ago) when I would download a file from the Web, the "Downloads" window would open and in the window would be displayed the name of the file I was downloading or had just completed downloading. I think I used to be able to then click on that file name and the file (or the installation file if needed to start the new program) would open. I am currently using Firefox 5.0 (the "About Firefox" screen says this is up to date) and when I download a file or document, the "Downloads" window appears on the screen as it always has in the past, but it remains blank, i.e., nothing appears in the downloads box. I don't remember making any configuration changes, etc., that may have caused the window to remain blank, but I could be mistaken. I know how to find the items I've downloaded (My Documents / Downloads) and can usually guess what the name of the downloaded file might be, but it used to be much easier when something (anything) showed up in the downloads window.
    I'd love for someone to tell me about a simple fix for this. I'm willing to be quite embarrassed that I did something I shouldn't have.'''

    In Firefox Options / Privacy be sure "Remember download history" is checked. To see all of the options on that panel, "Firefox will" must be set to "Use custom settings for history".
    To find your OS information, on your Windows desktop, right-click the My Computer icon, choose Properties, under System on that small window is info about your OS.
    '''If this reply solves your problem, please click "Solved It" next to this reply when <u>signed-in</u> to the forum.'''

  • How to get the name of the ApplicationServer during runtime

    Within a Servlet or JSP, I'm trying to programmatically get the name of the JVM (AppServer) where the code (war or ear) is deployed and running under.
    (This is like getting "server1" when using WSAD).
    I tried the System, Runtime and Thread approaches with no luck.. any ideas??
    Thanks.
    Example:
    If I have 2 AppServers created: Server1 and Server2
    The ear could be deployed to either, but I want to show to the user if he/she is pointing to Server1 or Server2.

    do you want to get the defined length of the field right.
    i.e
    itab-field1(10) .
    and not the length of the value in the itab.
    one of the ways is to use the following FM
    move: sy-repid to wf_repid  ,
            'INT_OUTPUT' to int_tab_name .
      call function 'REUSE_ALV_FIELDCATALOG_MERGE'
       exporting
         i_program_name              = wf_repid
         i_internal_tabname          = int_tab_name
    *   I_STRUCTURE_NAME             =
    *   I_CLIENT_NEVER_DISPLAY       = 'X'
        i_inclname                   = wf_repid
        i_bypassing_buffer           = 'X'
    *   I_BUFFER_ACTIVE              =
        changing
          ct_fieldcat                  = wf_fld_cat[]
       exceptions
         inconsistent_interface       = 1
         program_error                = 2
         others                       = 3
      if sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      endif.
    which would give you all the field definitions of your itab.
    Raja

  • What is the name of the i-pad (retinal display) adaptor for photos of deer cameras? Husband's birthday gift, don't hunt.

    What if the name of the i-pad (retinal display) adaptor for photos of deer?
    Husband's 60th soon, need the gift!
                        Thanks

    There is a camera connection kit. Be sure to get the correct one for your husband's iPad.
    This one is for the 1st, 2nd and 3rd generation iPads;
    http://store.apple.com/us/product/MC531ZM/A/apple-ipad-camera-connection-kit?fno de=3a
    For the 4th generation iPad, these two adapters are sold separately;
    http://store.apple.com/us/product/MD822ZM/A/lightning-to-sd-card-camera-reader?f node=3a
    http://store.apple.com/us/product/MD821ZM/A/lightning-to-usb-camera-adapter?fnod e=3a

  • Getting the name of the appliedAlternateLayout

    I am trying to solve an issue with exporting JPEG versions of InDesign pages.
    The exportFile command gets an error if there are alternate layouts since if you just tell it to output page 1, it doesn't know whether you mean page 1 of the first layout, or one of the other layouts.
    In the Export dialog box, you can specify "alternateLayoutName:pageNumber" i.e. "Horizontal Layout:1" .
    In order to supply this information I am trying to extract the name of the alternate layout from the current page, however that doesn't seem to be an accessible value in the DOM.
    curPage.appliedAlternateLayout returns a [section]
    and there does not appear to be an object curPage.appliedAlternateLayout.name
    Does anyone know of a way around this?
    James Haney

    James, to output page 1 of a document, you can use the index of a page of a document.
    You need not to use its name property and a string value for this.
    myPageToExport = app.documents[0].pages[0];
    will do the job.
    But how do you know where an alternate layout is starting and ending?
    You could check the Section collection of a document and look for the value of alternateLayoutLength.
    The name of an alternate layout is the value of the property alternateLayout of a specific Section…
    Here a code snippet, that could do the job for the index of every starting page of an alternate layout:
    var myDoc = app.documents[0];
    var mySections = myDoc.sections.everyItem().getElements();
    var myStartsOfAlternateLayouts = [];
    for(var n=0;n<mySections.length;n++){
        //It seems, that sometimes a new section could force the value of alternateLayout of a Section to an empty string
        //Could be a bug in CS6.
        //So we will ignore empty strings:
        if(mySections[n].alternateLayout !== ""){
            myStartsOfAlternateLayouts[mySections[n].alternateLayout] = mySections[n].pageStart.documentOffset;
    for(x in myStartsOfAlternateLayouts){
        //Results will show the names of the different alternate layouts:
        $.writeln(x);
        //Results will show the index numbers of the pages where the alternate layouts start:
        $.writeln(myStartsOfAlternateLayouts[x]);
    Note: Read the comments in the code.
    I found, that sometimes alternateLayout could yield an empty string.
    Could be a bug in CS6 where I tested this code.
    Uwe

  • Getting the name of the page that throws an exception from an error page

    How can I get the name of the page that throws an
    error exception from an error page?.
    Thanks.

    In each of your jsp pages, u should set the name of page in the request object. e.g.
    In jsp page called main.jsp you should do request.setAttribute("pageName","main.jsp");
    Then in error page you can get the name like
    String pageInError = (String) request.getAttribute("pageName");
    I hope that answers your question.
    thx

  • Getting the name of the varray

    Getting the original name of the Varray:
    9.2.0.6
    I have a simple procedure which does work but I would like to tighten it up.
    procedure printVarray(u IN numUsed, varrayName IN VARCHAR2 DEFAULT NULL) is
    begin
    IF varrayName IS NOT NULL THEN
         dbms_output.put_line('Working on Varray ' || varrayName);
         for i in u.first..u.last loop
    dbms_output.put_line('u[' || i || '] = ' || u(i).num || ' '
    || u(i).cnt);
    end loop;
              dbms_output.put_line(' ');
    END IF;          
    end printVarray;
    assuming u1 , u2, u3 & u4 are initialized and has values then
    I can from a block do
    begin
    printVarray(u1,'u1');
    printVarray(u2,'u2');
    printVarray(u3,'u3');
    printVarray(u4,'u4');
    end;
    and get the output I would expect:
    ... lines not show above
    Working on Varray u3
    u[1] = 1 2
    u[2] = 2 3
    u[3] = 3 4
    u[4] = 4 3
    Working on Varray u4
    u[1] = 1 1
    u[2] = 2 2
    u[3] = 3 3
    u[4] = 4 3
    My question is how can I do away with passing the name of the original varray
    to the procedure printVarray and still have it print the name of the original
    varray?
    Thanks

    Not possible in PL/SQL dynamically if you're thinking alone those lines. You will need to pass a separate (manual) varchar2 parameter containing the name of the variable - as your printVarray() proc is currently doing.
    You can simply change the DBMS_OUTPUT to:
    dbms_output.put_line( varrayName||'[' || i || '] = ' || u(i).num || ' '
    || u(i).cnt);

  • Can I get the name of the jnlp file used to launch my application

    Does anyone know if there is a way to get the name of the jnlp file used to launch the currently executing code?
    Essentially in the code below a way to set myAppFileName without hard coding the string. i.e. code could exist in a utility class used by many jnlp applications.
                String myAppFileName = "myApp.jnlp";
                BasicService bs = (BasicService) ServiceManager.lookup("javax.jnlp.BasicService");
                String url = bs.getCodeBase() + myAppFileName;Seems reasonable that if the jnlp API's know about the codebase that maybe it could hold the file name somewhere too? I hope, I hope ....
    Thanks
    Mike

    Ok. Bravo
    Please mark this as 'Answered' - it will help others on the forum -

Maybe you are looking for

  • Add field in report Z_ALR_87011963

    hi everybody I have to add a field on the selection screen of report Z_ALR_87011963, the field anlz-pernr I have made a copy of RABEST_ALV01 but I cant detect where the selection screen is getting populated I have added the field in structure CI_REPR

  • NewObject crash in a PLI/C/JNI code

    Hi, i call NewObject() function in a PLI/C/JNI app to create a java/lang/Vector instance.My Verilog simulator (ModelSim PE 5.4b) crash without display an error code. Please take a look , and see what is wrong with my code. jclass jclass_Vector; jmeth

  • How do I play .mkv and .avi files?

    When I updated the OS to Yosemite MPlayerX stopped working. VLC Player and Handbrake aren't available in the app store. Does anyone know of any free media players? Why can't QuickTime handle these additional file types?

  • How do I get my iPhone safari browser to open oh the google search page

    I feel like such an idiot.  This is probably a silly question but don't know how to phrase it so I can search the community boards.  Anyway, when I first got my phone and opened safari, there were several options one of which was Google.  I've messed

  • Basic N1 SSH config questions...

    At the risk of asking remedial questions, are these actions correct?: <p> <li> When generating SSH keys, I am to generate one set with the ID used to install/owner of the MS (agent, server, cli)? (i cant remember now if cli installed w/ the master se