How to retrieve Target names  in  servlet s or JSP ?

Hello,
I have an html page which displays in a Frame of a Frame Set. Let's say the frame name is = "mainframe".
In this page I have the following :
<form method="post" action="Test1.jsp" target="mainframe">
<input type=submit value="Execute"></form>When entering Test1.jsp, is there anyway to retrieve the target name ? (here it is "mainframe").
Thanks in advance
Gege

hi gege..
i am having an alternative for it but this may not be the actual thing ur expecting..
the thing is likg u just take an hidden field for giving ur name as targetname and value as main frame...
eg:-
<input type="hidden" name="targetname" value="mainframe">
in ur servlet u can get that using...
request.getParameter("targetname");
hope that will help u..
Pramod

Similar Messages

  • How to retrieve Page name?

    I have a select:
    select
    step_id Page
    , count(step_id) Hits
    from
    wwv_flow_user_activity_log
    where
    flow_id = &APP_ID.
    and (time_stamp >= (sysdate - 7))
    group by
    step_id
    order by
    count(step_id) DESC
    Where I show most frequent pages. How to retrieve Page name and link to that page...muist be SQL based and somehow joind with wwv_flow_user_activity_log view.
    THX!

    <br>Guys,
    <br>this thread is somehow quiet but I have more questions...To retrieve page_name you have to query FLOWS_020000.WWV_FLOW_STEPS (or FLOWS_020100.WWV_FLOW_STEPS in XE).
    <br>to be able to select data yo uneed to grant GRANT SELECT ON FLOWS_020000.WWV_FLOW_STEPS TO "schema";
    <br>As you can see here is one mistery...schema owner on different platform...! Is there any way to make unique approach to this if data are develped on HTMLDB 2.0 on 10gR2 and the production is on XE?
    <br>THX!

  • How to retrieve Desktop Name Programmatically

    Hi All,
    Can somebody tell me How to retrieve Desktop Name programmatically from a Portlet
    within same desktop??
    TIA,
    RAM

    Control click on the desktop.  Set "Sort By" to "None".

  • How to retrieve resource name in JSP page

    Hello,
    I have the following scenario:
    User wants a new resource to be provisioned to himself, he makes standard steps; chooses one resource from the list of available resources and sends a request. After that a summary page is displayed - my goal is to create an url to external application on that summary page (i.e. tjspRequestSubmitTiles.jsp) that should be displayed depending on the name of the resource, e.g. if user requests for a ResourceA - link appears, but when he requests for a ResourceB - link does not appear.
    So far I have created a link with a sample if statement - it works.
    My problem is how to make a real condition - retrieve the resource name that request deals with. Anybody know how to do that, which API to use etc.?
    Regards,
    Maciej.

    After adding the code to tjspProvideDataShowInfoTiles.jsp file, nothing has been improved, I am still facing the same result (on the console):
    RO: null
    It seems that file (tjspProvideDataShowInfoTiles.jsp) does not take part in the process.
    I have tried to pass some sample session attribute in tjspRequestVerificationTiles.jsp and this works, but I do not know how to retrieve resourceName in this file.
    I was trying to make some code retrieving resourceName in tjspRequestSubmitTiles.jsp, e.g.
    tcRequestWizardForm tcReqWizForm = (tcRequestWizardForm)session.getAttribute(requestWizardForm);
    String requestID = tcreqWizForm.getRequestID();
    ...and what to do now to retrieve resourceName?

  • How to retrieve user name from a given Subject?

    I am in a situation where I need to retrieve user name from the Subject that is populated when user logs in. I have the active Subject and I do following to get the principals in the subject and iterate through them:
    Set principals = subject.getPrincipals();
    Iterator ite = principals.iterator();
    while (ite.hasNext()) {
    Principal prin = (Principal)ite.next();
    String name = prin.getName();
    But this contains all the principals, including user name, roles, password, etc. How do I programmatically determine which one is user name?

    Don't you have different principal types? I am making a jaas module and I have different principals for roles, groups etc. I think of principals as attributes, the type in the attribute name and the principal name is the attribute value.
    To get all the principals of the type SomePrincipal, you can use:
    Set principals = subject.getPrincipals(SomePrincipal.class)
    You can also take som principal an test wether it is an instance of som type:
    if (Principal p instanceof SomePrincipal){..}
    An other solution which might be better if you have many different attributes is to store both attribute name and value in the name of the principal.
    If "mark" is a username the principal name will be "username:mark" el.
    Then it will be easy to find the username.

  • How to display outsream from a servlet in a JSP

    I wrote a jsp file to call a Servlet, then want to display the result from the servlet in another jsp file. Anyone can give me possible solution or an example to illustrate it.
    Many thanks in advance.
    the file that call servlet in a jsp is as follow
    <form method="POST" action="myservlet">
    <table>
    <tr>
    <th align="center" colspan="2">
    Enter The query words
    </th>
    </tr>
    <tr>
    <th align="right">query words:</th>
    <td align="left">
    <input type="text" name="querywords" size="60">
    </td>
    </tr>
    <tr>
    <td align="right">
    <input type="submit" value="Search">
    </td>
    <td align="left">
    <input type="reset" value="Reset">
    </td>
    </tr>
    </table>
    </form>
    ............

    I would suggest that you use the Servlet to retrieve the data you are after and store it in the session. Then forward the user onto the JSP page where it can retrieve the object from the session and present it to the user in a formatted view.

  • How to find RFC names in e-commerce application JSPs or in Java coding.

    Hi Experts.
    Please explain me ,how to find RFC names which were used in e-commerce b2b/b2c applications in Java coding using SAP NWDS IDE.
    Thanks in Advance!!!!
    Regards,
    Kiran

    There are two ways to do this.
    I. Create your own Session Log file
    1. Go to http://url:port/b2b/admin/index.jsp
    2. Login with Admin user id and password.
    3. Click on 'Logging' from the left hand navigation
    4. Click on 'Session Logging' tab
    Here you can start your e-commerce application using a URL and 'Start' session logging when you need it. When you 'Stop' the session logging, you will see a log file for download.
    II. View ISA Log files in the system
    The path varies based on how the log config was done. But usually, if you look in this folder structure on the Java Stack, you will see log files.
    .../JC00/j2ee/cluster/server0/log/applications/..
    I hope this helps.
    Pavan

  • How to retrieve "env-entry" in servlet code

    i have a pretty straight-forward web app, which contains a servlet, among other things. the web app is packaged in .war, and it in turn is part of a .ear file. i am using WAS 640 sneak preview on windows xp.
    in the web.xml file, i added the following lines:
    <env-entry>
      <description>some texts</description>
      <env-entry-name>myapp.home</env-entry-name>
      <env-entry-type>java.lang.String</env-entry-type>
      <env-entry-value>c:/myapp</env-entry-value>
    </env-entry>
    in my servlet code, i try to retrieve the value for "myapp.home" like this:
    try
    Context ctx = new InitialContext();
    home = (String) ctx.lookup("java:comp/env/myapp.home");
    } catch (Exception ex) {
    ex.printStackTrace();
    after .ear is deployed, i can see in the JDNI Registry (using Visual Admin Tool), myapp.home is added to the tree:
    webContainer
      -applications
        --myCompany.com
          ---myEarFileName
    myWebAppRoot
    java:comp
    env
    myapp.home
    the entry has the correct class name and object value.
    when the servlet code that performs the jndi lookup is called, i get an exception:
    com.sap.engine.services.jndi.persistent.exceptions.NameNotFoundException: Path to object does not exist at : java:comp
    ??? QUESTIONS:
    #1 what am i doing wrong?
    #2 if the lookup name must contain the entire jndi tree as listed above, then how can this code be portable to other app servers?
    thoughts are greatly appreciated.

    thanks for the hints, but unfortunately they didn't work.
    1. after switching the order of value and type in env-entry, rebuild/redeplpoy, same exception. the ordering  probably didn't matter since even with the reversed order, the name and value showed up correctly under the jndi tree.
    2. well, i tried giving it the full path, starting with 'webContainer', then 'applications' etc, separated by forward slash. now the exception says path to webContainer is not found.
    so what gives? are there no standards?

  • How to retrieve form name

    hi all
    i want to retrieve a form name and assign it to a variable
    how can i implement it.
    thnks and regards

    Hi ,
    Try out the following:
    var:=Get_application_property(CURRENT_FORM_NAME);
    where var is a variable of varchar2 data type...
    Regards,
    Simon

  • How to Retrieve Server Name for creating connection pool during startup!

    Hi All,
    I am going thru the edocs documentation of weblogic for creating the connection pool and the datasource dynamically. The URL I referred to was as under
    http://edocs.bea.com/wls/docs81/jdbc/programming.html
    There is a sample given in the above-mentioned URL. The Server MBean is created by passing the server name.
    The code below mentioned was have placed in my dblib.java
    svrAdminMBean = (ServerMBean)adminMBeanHome.getAdminMBean("myserver", "Server");
    I am creating the connection pool from the servlet by invoking the dblib.java
    I cannot hard-code the server name in the dblib.java since the same code was shared across multiple servlets.
    Each Servlet will create its own connection pool during application server startup.
    Is there a way to retrieve the server name in which the dblib.java is invoked.
    Any pointers to info source will be REALLY appreciated.
    Many Thanks in Advance,
    C R Baradwaj

    You can get it from the Java system property weblogic.Name, i.e. System.getProperty("weblogic.Name");
    Cheers
    Feargal

  • How to retrieve column names in a query in a case sensitive way

    Given a query, I want to extract all the column names/aliases in the query in a case-sensitive way.
    When I use dbms_sql.describe_columns() or java.sql.ResultSetMetaData classes getColumnName() or getColumnLabel()
    it returns the columns name ONLY in Upper case.
    My application needs to extract the column names in the same case as it appears in the query string.
    Is there any API to get this without parsing the SQL query string?
    Thanks
    PS: The dbms_sql.describe_columns() returns the column name in upper case.
    declare
    IS
    l_column_recs DBMS_SQL.DESC_TAB;
    l_cur NUMBER;
    l_column_count NUMBER;
    BEGIN
    l_cur := dbms_sql.open_cursor;
    dbms_sql.parse(l_cur, 'select target_type from targets', dbms_sql.NATIVE);
    dbms_sql.describe_columns(l_cur, l_column_count, l_column_recs);
    FOR i IN l_column_recs.FIRST..l_column_recs.LAST
    LOOP
    dbms_output.put_line(l_column_recs(i).col_name);
    end loop;
    end;
    /

    As far as the result set is concerned, though, the column name is in all upper case. If you query the data dictionary, you would see that the TARGET_TYPE column in the TARGETS table is stored in upper case.
    The way Oracle works is that column names that are not enclosed in double-quotes are converted to upper case in the data dictionary and elsewhere and then Oracle looks for the column name in the table definition. That is what allows Oracle to have case-insensitive identifiers unless a user specifies case-sensitive identifiers by enclosing the identifier in double quotes.
    If you changed the query to be
    SELECT target_type as "target_type"
      FROM targetsOracle should report the alias in a case sensitive fashion because you've now indicated that the alias should be treated as case sensitive.
    Justin

  • File information -- How to retrieve file name from header variable

    Hi
    I am using File Adapters to read files(.xml) and then I need to perform some database operations.
    One of the requirement is storing the file name read into the DB.
    I searched through the forum and got the information on how to configure this in the header variable. The link below shows the same.
    File Adapter
    Now, I use the XSL mapper to map the source values(from input xml file) to the corresponding table column names. So how should I get the value of the file name.
    I saw some of the in-built functions to be used for this but there is not enough documentation to proceed.
    Can anyone please provide some solution on this.
    /Kiran.

    Hi,
    Here are the steps that you need to do after you have declared the variable.
    1) The variable that you have declared should have the following elements
    a) Filename
    b) Directory
    2) Use the assign activity to copy the value of the filename part of this variable to the arg that needs to be passed to the database. (most probably an invoke variable).
    If you still have any problems implementing this, mail me at [email protected]..and i'll send you the screen shots for the entire process.
    ciao,
    Gunjan

  • How to retrieve column name from Excel using POI HSSF eventusermodel?

    Hi ,
    I am simply reading the excel sheet and writing in a txt file. I have done the following in the switch construct. It works fine but I want to retrieve only the column header. But this code gives me all available strings in the excel sheet. Any pointer would be greatly appreciated.
    case SSTRecord sid : 
             SSTRecord sstrecord = (SSTRecord) record;
             for (int i=0; i<sstrecord.getNumUniqueStrings(); i++){      
                  System.out.println(" Column name" +  sstrecord.getString(i));
    break;bye for now
    Sat

    try labels:
            case LabelSSTRecord.sid:
                LabelSSTRecord lrec = (LabelSSTRecord) record;
                if (lrec.getRow() == 0) {
                    System.out.println(" Column name "
                            + sstrec.getString(lrec.getSSTIndex()));
                break;

  • How to retrieve Host Name from reports?

    Hi.
    I've a report with excel template with links inside (XDO_LINK_?...)...
    How can I create a link with a dynamic host name? Like http://<hostname>/xmlpserver/.....
    Thank you
    R.

    I've found this:
    https://blogs.oracle.com/xmlpublisher/entry/creating_dynamic_urls_in_your
    how can I use this method in EXCEL template?
    thanks, R.

  • How to retrieve attribute-names (not values)

    Hi
    I know that I can get all attributes by an XPath expression according to /AA/@* . But since I have a XML document in XMLType and when I use the "..extract( aXpath)" function, I get all the attributes of the corresponding node but as a concatenation of the values. How can I get the attributes names:
    E.G.
    AA
    BB 12.3 /BB
    CC 45.5 /CC
    /AA
    /AA/@* would return 12.345.5, but I need to know "BB" and "CC", any ideas ?

    ${applicationScope.abc}
    or if there is no attribute "abc" in page, request, or session scopes just
    ${abc}

Maybe you are looking for

  • How do i use my own email address

    i would like to use entourage as my default email program, but i do not know how to send mail from it with my own email? how do i set up my email address with entourage?

  • How many devices can you use for your itunes account?

    how many devices can you use for your itunes account?

  • Apex tab and page display query

    I am using Apex 4.1 I have the following tabs set up. Home, Tab 1,Tab 2 and so on The home page is fine. Now the query is with regard to Tab 1. I need it to display Page 3 or Page 4 based on the location of APP_USER The region details are all stored

  • Business Objects Platform 4.1 EDGE - Design Studio 1.5

    Hi @ll, i have a question about the use of Business Objects EDGE 4.1 in combination with the Design Studio ADD-ON. We want deploy the Design-Studio add-on 1.5 (Ramp-up) into our Business Objects EDGE 4.1 platform. Is this technical possible? Are ther

  • How can I organise my albums quickly?

    I have imported by itunes library from my old PC to a new Mac but the files are now completely disorganised and are not arranged by album when I look at coverflow or arrange by album.  It was logically organised in alphabetic order by album on my old