Can we get the porlet name of which the JSP file is resided ?

Hi all,
Can we get the portlet name of which the JSP file is resided?
Sincerely,
Alan.

you could try the following code
<%@ page import="com.bea.portal.model.Portlet"%>
<%@ page import="com.bea.portal.model.PortletState"%>
<%@ page import="com.bea.portal.render.servlets.jsp.PortletRenderHelper"%>
PortletState portletState = PortletRenderHelper.getPortletState( request);
String portletName = portletState.getDisplayName();
"Alan Liu" <[email protected]> wrote:
Hi all,
Can we get the portlet name of which the JSP file is resided?
Sincerely,
Alan.

Similar Messages

  • Return the column names for which the row values are not null.

    Hi i m a new guy to db admin, and i need a sql script which should return column names of the particular table. and the returned column should have value (fyi - if the column has null value column name should not come in the sql o/p).
    Exmple:
    table name - A
    s.no name mark status fee
    1 aa 45 p null
    2 bb 30 null paid
    3 cc 35 p paid
    fyi -1) if i give the table name(A) and s.no (2) the o/p should be -- name,mark.
    2) if i give the tablename(A) and s.no (1) the o/p should be --- name,mark,status.
    Thanks
    Krishna.
    Edited by: user13294228 on Jun 14, 2010 10:54 PM

    BTW,
    The previous solution is for all values of the column, if you want a specific row, you can add it in where clause.
    I mean in your example, it you look like:
    SET serveroutput on;
    DECLARE
       l_cnt          NUMBER;
       l_str          VARCHAR2 (255) := '';
       l_table_name   VARCHAR2 (255) := 'YOUR_TABLE_NAME';
       l_col_cond     VARCHAR2 (255) := 'S_NO';
       l_val          NUMBER         := 1;
       CURSOR c_col
       IS
          SELECT column_name
            FROM user_tab_columns
           WHERE table_name = l_table_name;
    BEGIN
       FOR i IN c_col
       LOOP
          EXECUTE IMMEDIATE    'SELECT COUNT ('
                            || i.column_name
                            || ') FROM '
                            || l_table_name
                            || ' WHERE '
                            || l_col_cond
                            || ' = '
                            || l_val
                       INTO l_cnt;
          l_str := l_str || CASE
                      WHEN l_cnt = 0
                         THEN ''
                      ELSE i.column_name
                   END || ',';
       END LOOP;
       l_str := SUBSTR (l_str, 1, LENGTH (l_str) - 1);
       DBMS_OUTPUT.put_line (l_str);
    END;Saad,
    Edited by: S.Nayef on Jun 15, 2010 11:54 AM

  • Need to know the program names to which the table is used

    Hi,
    I am using a table <table1>.
    For Example : MARA table. I need to know in what are all the program's the MARA table is used .
    Please let me know in which tcode can I know the details.
    Thanks,
    Karthik

    hi ,
    use program 
    RS_ABAP_SOURCE_SCAN
    passs 'MARA' IN search field 
    and  program name field  '*'
    will give all  program .
    regards
    Deepak.

  • Get the Table name by providing the Sequence name

    Hello,
    I wish to retrieve the table name to which the sequence is related.
    I understand that when the sequence was created, no reference is mentioned to any table. The sequence may be used across many tables.
    But the DB definitely knows internally how many tables are referencing the particular sequence.
    So, can anyone help me in finding the table (or all tables) referencing one particular sequence.
    Thanks and Regards
    (Please treat this as urgent as i am desperately in need of such a query)

    I share Adrian's scepticism. Using the data dictionary we could find all the program units - TRIGGERS, TYPES, PROCEDURES, etc - which use the sequence. From there we can find all the TABLES that are also referenced by those programs. And that's as good as it gets in Oracle. We cannot definitely say which tables use which sequences (although a good naming convention helps).
    Of course, your DBA may have access to some accurate and up-to-date documentation. But that is maintained externally to the database and not derived from it.
    Cheers, APC

  • I currently have iPhoto 8.1.2 on my macbook pro and am trying to update to the latest version.  I have had to work backward, but I can only get back to 9.1, which will not install because it says I need at least 9.0 to install it. Is 9.0 available?

    I currently have iPhoto 8.1.2 on my macbook pro and am trying to update to the latest version.  I have had to work backward, but I can only get back to 9.1, which will not install because it says I need at least 9.0 to install it. Is 9.0 available?  Will I need to go back even further?  Thanks

    Upgrading from iPhoto 8 to iPhoto 9 requires a purchase. There are two ways to get to iPhoto 9: 
    1 - purchase a copy of the iLife 11 disk from a 3rd party retailer like Amazon.com or eBay.com.
    2 - if your MBP meets the requirements upgrade you system for free to Mavericks.  Then you can purchase the latest iPhoto version, 9.5.1, from the App Store.
    OT

  • I found out that I have some lost contacts on my iphone 5s, they dont appear when I search but if the contact calls me I see their name. How can I get those contacts to be on the list?

    I found out that I have some lost contacts on my iphone 5s, they dont appear when I search but if the contact calls me I see their name. How can I get those contacts to be on the list?

    You could check settings > mail contacts and calandars and see if there are any accounts (like icloud gmail yahoo) listed and if they have contacts on. Its possible if contacts were synced to one of these accounts that turning them back on will recover the missing contacts.

  • I have an airport extreme which doesn't come with a straight audio jack on it like the express. Can I get a converter to go from the dual speaker plugs to usb on the extreme?

    I have an airport extreme which doesn't come with a straight audio jack on it like the express does. Can I get a converter to go from the dual speaker plugs to usb on the extreme?

    Sorry, but no. The only Apple router with an audio output jack is the AirPort Express.

  • How can I get the infoset name by giving the name of a program of a query?

    How can I get the infoset name by giving the name of a program of a SAP Query?
    Regards,
    Subho

    Use FM RSAQ_DECODE_REPORT_NAME.
    You can also use AQLQCAT table.

  • I bought Smart Photo Converter which do,s not work but i can't get any refund , i have contacted the company but no reply and that was two weeks ago...so do you talk to someone at the App store?

    I bought Smart Photo Converter which does not work but i can't get any refund , i have contacted the company but no reply and that was two weeks ago...so do you talk to someone at the App store?

    Mac App Store Support -
    http://www.apple.com/support/mac/app-store/

  • How can we track the entire event in which the form mode gets changed?

    If the form is in OK Mode and if the user edits any field(Including UDF Window Fields). form mode changes to Update...So at that time, how can we track the entire event in which the form mode gets changed?
    Thanks
    Hari

    Dear hari angamaly,
    You could get the form mode by FormMode Property in ItemEvent Object in UI API.
    Best Regards
    Jane Jing
    SAP Business One Forums team

  • HT1414 I loss my iphone 4, got a iphone 5 and try to restore the iphone info from my laptop.  But the itune requires a password, which I forgot (I set this up two years ago!).  How can I get into my itune to restore the iphone info.

    I lost my iphone 4, got a iphone 5 and try to restore the iphone info from my laptop.  But the itune requires a password, which I forgot (I set this up two years ago!).  How can I get into my itune to restore the iphone info.

    Go to appleid.apple.com and try to login there. If unsuccessful, there is a link to change your password.

  • How to find the table name on which integrity constraint not found

    Hi All
    How to acheive this
    I have a lot of tables with lot of primary key - foreign key
    relationship.
    In plsql
    when any inserts happen in the child table & the corresponding row is not present in the parent table, we get an exception
    ORA-02291: integrity constraint (user1.ppk) violated - parent key not found
    On this exception , in the exception block i want to trap teh name of the parent table on which the primary key for the particular child table was not there
    Is it possible to retrieve the parent table in this way. I am looking for a generic plsql code block which can help to acheive this
    Regards

    scott@ORA92> SET SERVEROUTPUT ON
    scott@ORA92> DECLARE
      2    e_no_parent_key EXCEPTION;
      3    PRAGMA            EXCEPTION_INIT (e_no_parent_key, -2291);
      4    v_fk_cons       VARCHAR2 (61);
      5    v_owner            VARCHAR2 (30);
      6    v_parent_table  VARCHAR2 (61);
      7    v_pk_cons       VARCHAR2 (30);
      8    v_parent_column VARCHAR2 (30);
      9  BEGIN
    10    INSERT INTO emp (empno, deptno) VALUES (99, 60);
    11  EXCEPTION
    12    WHEN e_no_parent_key THEN
    13        -- extract schema.constraint_name from sqlerrm:
    14        v_fk_cons:= SUBSTR (SQLERRM,
    15                      INSTR (SQLERRM, '(') + 1,
    16                      INSTR (SQLERRM, ')') - (INSTR (SQLERRM, '(') + 1));
    17        DBMS_OUTPUT.PUT_LINE ('Foreign key constraint violated: ' || v_fk_cons);
    18        -- extract parent schema.table and parent key:
    19        SELECT owner, table_name, constraint_name
    20        INTO     v_owner, v_parent_table, v_pk_cons
    21        FROM     user_constraints
    22        WHERE     (owner, constraint_name) =
    23            (SELECT r_owner, r_constraint_name
    24             FROM     user_constraints
    25             WHERE     owner || '.' || constraint_name = v_fk_cons);
    26        DBMS_OUTPUT.PUT_LINE ('Parent table: ' || v_owner || '.' || v_parent_table);
    27        DBMS_OUTPUT.PUT_LINE ('Parent key: ' || v_owner || '.' || v_pk_cons);
    28        -- extract parent table columns:
    29        FOR rec IN
    30          (SELECT column_name
    31           FROM   user_cons_columns
    32           WHERE  owner = v_owner
    33           AND    table_name = v_parent_table
    34           AND    constraint_name = v_pk_cons)
    35        LOOP
    36          DBMS_OUTPUT.PUT_LINE
    37            ('Parent table column: ' || rec.column_name);
    38        END LOOP;
    39  END;
    40  /
    Foreign key constraint violated: SCOTT.FK_DEPTNO
    Parent table: SCOTT.DEPT
    Parent key: SCOTT.PK_DEPT
    Parent table column: DEPTNO
    PL/SQL procedure successfully completed.

  • Hardware missing -AGP Graphics card. How can I get my FCE 4 working on the new computer? Cheers

    Hi I have just upgraded my computer to Mac OSX 10.6.7 now I cant open my FCE 4. Message reads, Hardware missing -AGP Graphics card. How can I get my FCE 4 working on the new computer? Cheers

    Thanks, just so I know we are talking about the same items please let me know - When you say "run Prokit" do you mean downloaded? Which I did. I dont have Prokit 4.0.1 if you are referring to that, do I need this first? Please explain what application name I am looking for if other than Prokit which is sitting in my "download folder" do I need to manually put it into the apps folder? Sorry if the questions are layman but this area is not a very strong point for me. Thanks for your help so far.

  • How can I get Sender Display Name using Get-MessageTrackingLog?

    Hi, could you please help me. We have got a monitoring system at work which monitors some devices, so if something wrong happening with these devices email is sent from MASTER email (Customer Name <[email protected]>) to us. I'm trying to get a list
    of all emails of that monitoring mailbox using PoweShell command
    Get-MessageTrackingLog and export them to CSV file. In the end of the day I need CSV file with 3 columns: TimeStamp, MessageSubject and SenderDisplayName! Yes, I need Sender Display Name cause all emails are sent from one MASTER email
    (Customer Name <[email protected]>) and only difference between them is sender Display Name which is cexactly what I need.   
    This is the code I'm using:
    Get-MessageTrackingLog -EventId Receive | Select Timestamp, MessageSubject, Sender | Export-CSV C:\NagiosAlerts.csv
    –NoTypeInformation
    So how can I get sender Display Name(Customer Name) using Get-MessageTrackingLog insted of Sender email (<[email protected]>)? 

    The DisplayName is not recorded in the Logs only the EmailAddresses are so there Is nothing you can do with Message Tracking to get this the way you want. You need to look at another property may soureIP or include something in the Subject
    of the Email (eg a customerId in the Subject is a much better option) to give you some differentiation. Otherwise you need to access the Email directly from the Mailbox it was sent to and then extract the DisplayName from the message (or use a journaling
    on those emails etc)
    Cheers
    Glen

  • How can I get a count of objects in the near cache? (Extend client)

    Hi,
    I'm trying to figure out how to get the count of objects in my near cache (from c++ client). Knowing the size of the near cache is a key factor when optimizing configurations for performance.
    However if I call size() on the cache handle I get the count of objects in the cache (ie the cluster). How can I get a count of objects in the near cache?
    Thanks
    Rich Carless

    H Rich,
    It may not be ideal, but I think you may be able to infer the size by using the HeapAnalyzer (http://download.oracle.com/docs/cd/E15357_01/coh.360/e15728/classcoherence_1_1lang_1_1_heap_analyzer.html) facility, specifically the "class" based HeapAnalyzer. Its Snapshot representation http://download.oracle.com/docs/cd/E15357_01/coh.360/e15728/classcoherence_1_1lang_1_1_class_based_heap_analyzer_1_1_snapshot.html provides a mapping between class name and ClassStats (http://download.oracle.com/docs/cd/E15357_01/coh.360/e15728/classcoherence_1_1lang_1_1_class_based_heap_analyzer_1_1_class_stats.html) which provides information on how many instances of a given class type are in memory. Note the reported counts are process wide but if your key or value type are distinct you may be able to infer your answer. I realize this is rather complex, my only other suggestion would be to just make some guesses on size and see how they effect performance.
    Mark
    Oracle Coherence

Maybe you are looking for

  • Call Forward to Voicemail

    I am having an issue when forwarding to another extension.  I know this is probably a simple answer but I'm stumped. I am going into the DN Configuration page for extension A.  Under Call Forward, for the destination I am entering extension B for: Fo

  • applet tag regarding JAR file

    Is there something wrong with the following applet declaration? <applet code = "Sheep2.class" archive="Sheep2.jar" width = 500 height = 300 ALT="If you could run this applet, you'd see a sky, a field, and a moon."> Your browser is completely ignoring

  • Teststand 4.1 and LabVIEW 8.6 taking more time to launch?

    For lauching the LabVIEW 8.6 steps in TestStand 4.1 its taking almost 7 to 10 seconds to load or refresh the LabVIEW terminals. Everytime while clicking on the LabVIEW steps its taking the same time..... Its a kind of irritating to write code in Test

  • Sales order question

    Hi guru: Here is my scenario, we had placed 1000 pcs products in sales order, and we had delivered 200 pcs to our customers, then one day our customers told they don't want remaining 800 pcs anymore, what should I do in SAP, can I change order quanti

  • Is this a legitimate site to buy Lightroom from?

    website link deleted by host.