Is there any way to give an archive attribute a variable?

Is there any way to get the archive attribute to take a variable?
What I want to do is to be able to change the value in an XML file and have that read at run time.
For example, what I have now looks like this:
<jsp:plugin code="Display.class" archive="http://myserver:8080/myapp/Display.jar" height="650" jreversion="1.5" type="applet" width="800">What I would like to do is to be able to give the archive a variable, just like you can with value arguments. I tried doing this:
jsp:plugin code="Display.class" archive="${Display.jarUrlValue}" height="650" jreversion="1.5" type="applet" width="800">But that didn't work. It threw this:
com.sun.web.ui.appbase.ApplicationException: org.apache.jasper.JasperException: /Display.jsp(14,161) The archive attribute of the jsp:plugin standard action does not accept any expressions
com.sun.web.ui.appbase.faces.ViewHandlerImpl.destroy(ViewHandlerImpl.java:534)
com.sun.web.ui.appbase.faces.ViewHandlerImpl.renderView(ViewHandlerImpl.java:301)
So, is there any way around it, or should I take the error message verbatim?
Thanks.

Is there any way to get the archive attribute totake a variable?
According to the [url
http://java.sun.com/products/jsp/syntax/1.2/syntaxref1
215.html#8837] reference, no you can't providea runtime expression to this attribute.
Yeah, I know it said that but I was hoping there was some sort of hack around it. Seems to be a bit of an oversight to me.
Oh well!

Similar Messages

  • Is there any way to know that status of DEFINE variable?

    Hi,
    I have a list of scripts that is executed to create my baseline database. At the beginning of the script execution, we have a SET DEFINE OFF and at the end we put SET DEFINE ON. During one of the scripts, we deliberately SET DEFINE ON and we forgot to SET DEFINE OFF at the end of the script. Consequently, the following scripts started failing without error notification because they contained '&' in the INSERT query. I have the following queries:
    1. Is there any way to know the status of the DEFINE variable at the beginning of the script?
    2. Since the oracle gives a user interrupted error, the script execution process does not terminate with error. Instead, it continues executing the next scripts. Is there a general way to capture such errors and terminate the script execution. We already have WHENEVER SQLERROR and WHENEVER OSERROR in our script execution process.
    Regards
    Kunal

    Hi, Kunai,
    Welcome to the forum!
    953495 wrote:
    Hi,
    I have a list of scripts that is executed to create my baseline database. At the beginning of the script execution, we have a SET DEFINE OFF and at the end we put SET DEFINE ON. During one of the scripts, we deliberately SET DEFINE ON and we forgot to SET DEFINE OFF at the end of the script. Consequently, the following scripts started failing without error notification because they contained '&' in the INSERT query. I have the following queries:
    1. Is there any way to know the status of the DEFINE variable at the beginning of the script?Whether it's at the beginning of a script, later in the script, or not in a script at all, the SQL*Plus command
    SHOW DEFINEtells you if DEFINE is ON or OFF.
    If DEFINE is ON, it will produce something like:
    define "&" (hex 26)If DEFINE is OFF, it will produce
    define OFF
    2. Since the oracle gives a user interrupted error, the script execution process does not terminate with error. Instead, it continues executing the next scripts. Is there a general way to capture such errors and terminate the script execution. We already have WHENEVER SQLERROR and WHENEVER OSERROR in our script execution process.Do you really need to capture those errors? Why not just prevent them? It sounds like you want to make sure DEFINE is OFF at a certain point. To do that, just say
    SET  DEFINE  OFFRegardless of whether DEFINE was ON or OFF before you issue that command, you can be sure it will be OFF after that.
    I hope this answers your question.
    If not, post a complete test script (or set of scripts) that people can run to re-create the problem and test their ideas.
    Point out where the scripts you post are not doing what you want, and describe, with specific examples, what you want it to do in those places.

  • Is there any way to recovery rar archive?

    Multipart archive downloaded at merge files into one file, the contents appear as "# * &%" in Notepad.

    Recovery Toolbox for RAR has quite a wide range of features. It supports all currently existing variants of the RAR compression format, files created with archiving software versions 1.x, 2.x,
    3.x with different compression rates.
    This utility has the following features:
    * Recovering information from archives of the RAR format stored on corrupted media (floppy disks, CDs, DVDs, Zip drives, etc.)
    * Recovering information from corrupted password-protected archives of the RAR format (customer should type in the password manually)
    Source: http://www.rar.recoverytoolbox.com/

  • Is there any way to get a particular attribute value pair based on a search condition ?

    From a multivalue attribute , can I get a particular attribute value based on a search condition.

    No, this is not part of the LDAP specs... and therefore it is not implemented in Directory Server 5.x.
    However, there has been some proposal for a standard mechanism for specifying returning Matched values in LDAPv3. The internet draft expired a year ago mostly because of lack of interest from the LDAP users community.
    Regards,
    Ludovic.

  • Is there any way to forward/archive/access regular text messages if you have to erase your phone and re-set it as a new phone?

    I have some major errors in my operating system and was told that I have to erase my phone and then set it up as a new phone.  I have a lot of messages I'd like to be able to keep and have access to after the reset.  Is there any way to copy/sore/archive them?

    if you have a mac and have it set that way, they are archived on the mac.

  • Is there any way to create a system-wide variable?

    Hello IDM gurus.
    Is there any way to create rarely changing system wide variables that can be loaded at system startup that will be available to all users? For example, at IDM system startup, the variables would be read from configuration or generic objects and live in memory for ALL users as opposed to each workflow/user having to read the same variables when the workflow is run.
    Any help would be appreciated.

    That may very well be the answer I'm looking for. Is there a way for that to be available within the entire application instead of having to read it in each workflow?

  • Is there any way to spool with variable column size?

    Hi, I'm spooling to a CSV file with the following script (the real SELECT is different but similar, Oracle 10.2.0.3.0):
    SET COLSEP ';'
    SET FEEDBACK OFF
    SET LINESIZE 2000
    SET PAGESIZE 0
    SET TERMOUT OFF
    SET TRIMSPOOL ON
    SET VERIFY OFF
    SPOOL test.csv REPLACE
    SELECT 'COLUMN1', 'COLUMN2', 'COLUMN3' FROM dual UNION ALL
    SELECT 'value1', NULL, NULL FROM dual UNION ALL
    SELECT 'value2', NULL, NULL FROM dual;
    SPOOL OFF
    EXIT SUCCESS COMMITThis produces the following output:
    COLUMN1;COLUMN2;COLUMN3
    value1 ;       ;
    value2 ;       ;Is there any way to get the following output with variable column size
    COLUMN1;COLUMN2;COLUMN3
    value1;;
    value2;;I've tried SET NULL '' but I see no difference. Thanks in advance!
    Markus

    In short, No, because SQL*Plus is laying out the data in columns.
    You could either combine the data into a single column by concatenating as strings or use some other method e.g.
    As sys user:
    CREATE OR REPLACE DIRECTORY TEST_DIR AS '\tmp\myfiles'
    GRANT READ, WRITE ON DIRECTORY TEST_DIR TO myuser
    /As myuser:
    CREATE OR REPLACE PROCEDURE run_query(p_sql IN VARCHAR2
                                         ,p_dir IN VARCHAR2
                                         ,p_header_file IN VARCHAR2
                                         ,p_data_file IN VARCHAR2 := NULL) IS
      v_finaltxt  VARCHAR2(4000);
      v_v_val     VARCHAR2(4000);
      v_n_val     NUMBER;
      v_d_val     DATE;
      v_ret       NUMBER;
      c           NUMBER;
      d           NUMBER;
      col_cnt     INTEGER;
      f           BOOLEAN;
      rec_tab     DBMS_SQL.DESC_TAB;
      col_num     NUMBER;
      v_fh        UTL_FILE.FILE_TYPE;
      v_samefile  BOOLEAN := (NVL(p_data_file,p_header_file) = p_header_file);
    BEGIN
      c := DBMS_SQL.OPEN_CURSOR;
      DBMS_SQL.PARSE(c, p_sql, DBMS_SQL.NATIVE);
      d := DBMS_SQL.EXECUTE(c);
      DBMS_SQL.DESCRIBE_COLUMNS(c, col_cnt, rec_tab);
      FOR j in 1..col_cnt
      LOOP
        CASE rec_tab(j).col_type
          WHEN 1 THEN DBMS_SQL.DEFINE_COLUMN(c,j,v_v_val,2000);
          WHEN 2 THEN DBMS_SQL.DEFINE_COLUMN(c,j,v_n_val);
          WHEN 12 THEN DBMS_SQL.DEFINE_COLUMN(c,j,v_d_val);
        ELSE
          DBMS_SQL.DEFINE_COLUMN(c,j,v_v_val,2000);
        END CASE;
      END LOOP;
      -- This part outputs the HEADER
      v_fh := UTL_FILE.FOPEN(upper(p_dir),p_header_file,'w',32767);
      FOR j in 1..col_cnt
      LOOP
        v_finaltxt := ltrim(v_finaltxt||','||lower(rec_tab(j).col_name),',');
      END LOOP;
      --  DBMS_OUTPUT.PUT_LINE(v_finaltxt);
      UTL_FILE.PUT_LINE(v_fh, v_finaltxt);
      IF NOT v_samefile THEN
        UTL_FILE.FCLOSE(v_fh);
      END IF;
      -- This part outputs the DATA
      IF NOT v_samefile THEN
        v_fh := UTL_FILE.FOPEN(upper(p_dir),p_data_file,'w',32767);
      END IF;
      LOOP
        v_ret := DBMS_SQL.FETCH_ROWS(c);
        EXIT WHEN v_ret = 0;
        v_finaltxt := NULL;
        FOR j in 1..col_cnt
        LOOP
          CASE rec_tab(j).col_type
            WHEN 1 THEN DBMS_SQL.COLUMN_VALUE(c,j,v_v_val);
                        v_finaltxt := ltrim(v_finaltxt||',"'||v_v_val||'"',',');
            WHEN 2 THEN DBMS_SQL.COLUMN_VALUE(c,j,v_n_val);
                        v_finaltxt := ltrim(v_finaltxt||','||v_n_val,',');
            WHEN 12 THEN DBMS_SQL.COLUMN_VALUE(c,j,v_d_val);
                        v_finaltxt := ltrim(v_finaltxt||','||to_char(v_d_val,'DD/MM/YYYY HH24:MI:SS'),',');
          ELSE
            v_finaltxt := ltrim(v_finaltxt||',"'||v_v_val||'"',',');
          END CASE;
        END LOOP;
      --  DBMS_OUTPUT.PUT_LINE(v_finaltxt);
        UTL_FILE.PUT_LINE(v_fh, v_finaltxt);
      END LOOP;
      UTL_FILE.FCLOSE(v_fh);
      DBMS_SQL.CLOSE_CURSOR(c);
    END;This allows for the header row and the data to be written to seperate files if required.
    e.g.
    SQL> exec run_query('select * from emp','TEST_DIR','output.txt');
    PL/SQL procedure successfully completed.Output.txt file contains:
    empno,ename,job,mgr,hiredate,sal,comm,deptno
    7369,"SMITH","CLERK",7902,17/12/1980 00:00:00,800,,20
    7499,"ALLEN","SALESMAN",7698,20/02/1981 00:00:00,1600,300,30
    7521,"WARD","SALESMAN",7698,22/02/1981 00:00:00,1250,500,30
    7566,"JONES","MANAGER",7839,02/04/1981 00:00:00,2975,,20
    7654,"MARTIN","SALESMAN",7698,28/09/1981 00:00:00,1250,1400,30
    7698,"BLAKE","MANAGER",7839,01/05/1981 00:00:00,2850,,30
    7782,"CLARK","MANAGER",7839,09/06/1981 00:00:00,2450,,10
    7788,"SCOTT","ANALYST",7566,19/04/1987 00:00:00,3000,,20
    7839,"KING","PRESIDENT",,17/11/1981 00:00:00,5000,,10
    7844,"TURNER","SALESMAN",7698,08/09/1981 00:00:00,1500,0,30
    7876,"ADAMS","CLERK",7788,23/05/1987 00:00:00,1100,,20
    7900,"JAMES","CLERK",7698,03/12/1981 00:00:00,950,,30
    7902,"FORD","ANALYST",7566,03/12/1981 00:00:00,3000,,20
    7934,"MILLER","CLERK",7782,23/01/1982 00:00:00,1300,,10The procedure allows for the header and data to go to seperate files if required. Just specifying the "header" filename will put the header and data in the one file.
    Adapt to output different datatypes and styles are required.

  • Is there any way to load idml file into InDesign server Programmatically

    Hi,
         I am very new to InDesign Server development. I was able to load tagged text and generate image using InDesingServer Java APIs. Now I have new scenario to generate image. My scenario is to load an idml file into InDesign Server, then I need to generate an Image using this idml file.
         Is there any way to do this using InDesignServer Java APIs.
         Thanks in advance.
    Thanks,
    Ravi Kishore.CH

    I am not aware of a direct way of loading data from excel into
    oracle. I usually export the data into Access and then through
    ODBC save the data into a new table in the DB.
    Hope this helps.
    SUnder
    Raju Gorakhia (guest) wrote:
    : I am working on forms4.5 & i am looking for the method with
    : which i can directly access the xlsspreadsheet and upload into
    : some table into oracle database.
    : If there is no such method that how i will upload that
    : spreadsheet into the database?
    : Is there any way with which i can convert the variable lenght
    : file into fix length format with some specific delimitor so
    that
    : after that i can call sqlloader & upload that file into the
    : table?
    : Thanks Regards
    : Raju
    null

  • I bought my iphone 5s a week before and now its volume "up" button is not working when pressed.Does anybody know what to do to make it work?I have a one year warranty.Should i give it to apple retail shop or is there any way to solve this problem?

    I bought my iphone 5s a week before and now its volume "up" button is not working when pressed.Does anybody know what to do to make it work?I have a one year warranty.Should i give it to apple retail shop or is there any way to solve this problem?

    IF it is a manufacturing defect and you bought the device from Apple or an authorized Apple retailer, then take it into Apple.

  • HT204053 I have an iPhone 4S and when I try to add an iCloud account is gives me an error "Cannot Sign In, The maximum number of free accounts have been activated on this iPhone." Is there any way to deactivate an account?

    I have an iPhone 4S and when I try to add an iCloud account is gives me an error "Cannot Sign In, The maximum number of free accounts have been activated on this iPhone." Is there any way to deactivate an account? I have one for myself, one for my family and one for my work. I had all three on my iphone and then I deleted my work. I wanted to get my own person @me.com account. It wouldn't let me create it from my iphone, so I created it from my Macbook Pro. I am trying to add it to my iphone, but it keeps giving me that error. If there is a way I can deactivate my work one so I can use my @me.com personal account?

    Welcome to the Apple Community.
    Unfortunately once all the 3 iCloud accounts have been created on your mobile device, you cannot create any more regardless of what you do. You will need to re-use one of the accounts that you have already created or create your new account on another device or computer.
    You should however be able to add existing accounts to your device, are you sure you aren't trying to create on rather than simply use an existing one.

  • I cannot create a catalog because everywhere I try on my computer, it comes up with cannot Lightroom cannot create a catalog on network volumes.  And is there any way to contact Adobe directly?  Would you be able to give me a phone number and/or email add

    I cannot create a catalog because everywhere I try on my computer, it comes up with cannot Lightroom cannot create a catalog on network volumes.  And is there any way to contact Adobe directly?  Would you be able to give me a phone number and/or email address?@@

    The short and direct answer to your question about catalogs on a network drive is that you can't do that. The catalog must reside on a local drive.
    Here is a link to a list of telephone numbers. Choose one that is appropriate:
    Adobe Connect Support phone numbers

  • TS1702 is there any way to archive purchased apps, i.e. remove and archive from iphone

    I have apps on my iphone 3gs that I am not playing or using any longer, when I sync they are automatically reloaded, is there any way that one I remove the items that they can be archived w/in the app store?

    Change your sync settings in iTunes, you're probably syncing all apps rather than selected apps.  By default, app purchases are always available in the App Store for re-download if you want it back on the iPhone but don't want to re-sync to get it.

  • Firefox crashed while automatically downloadingthe latest version, and when I reopened it, it did not give me the option of restoring my lost tabs. Is there any way to recover them now?

    I don't know what more details to offer. The browser crashed, all my open tabs were lost, and when I restarted Firefox, it did not give me the option of restoring the tabs. I really want them back. Is there any way to roll back and recover them?

    That gripes me to no end, as well. You might think Mozilla could think this one through, at least to the point of realizing there should be a manual means to recover open tabs NOT restored automatically after a routine FireFox crash.
    And if Mozilla cannot stabilize FireFox, it will keep losing users back to IE.
    The epidemic of crashes seemed to begin when FireFox "improved" itself with the idea of running 3rd party plugins in a "container", which is still far from reliable. I must run SysInternals Process Explorer at least once per Windows session to keep FireFox from destroying itself.
    Aside from FireFox being so unstable, Mozilla should show some concern for users and make the manual restore option very plain from the UI-- such as "RESTORE OPEN TABS LOST SINCE THE LAST (*&&!!! FIREFOX CRASH"
    Presumably-- and that may presume too much-- Mozilla leaves the open tabs "log" in place during each update. If that record of open tabs remains untouched from update to update, then why does FireFox screw up, update after update, and routinely fail to recover all tabs?
    You might think someone at Mozilla would realize something is wrong. I have let Mozilla "phone home" after each crash, and yet the problem continues.

  • Is there any way to find the serial number of an ipod touch that is no hooked up to the computer?  It was stolen and we need the number to give to the police.

    Is there any way to find the serial number of an ipod touch that is no hooked up to the computer?  It was stolen and we need the number to give to the police.

    If the product was registered, the serial number should be here, under My Products:
    https://supportprofile.apple.com/MySupportProfile.do

  • I pulled down the notification center, tapped the "tap to tweet" and my phone was jammed. It stayed that way for a minute then restart itself. Is there any way to fix it or at least give me an explanation

    I pulled down the notification center, tapped the "tap to tweet" and my phone was jammed. It stayed that way for a minute then restart itself. Is there any way to fix it or at least give me an explanation

    Hi Abbie. You have every reason to be upset. These issues normally happen in our country. You can send them an email regarding your concern here:
    http://www.apple.com/feedback/macbook.html
    Regarding your battery, you can probably reset the SMC and see if that improves your battery life. Here are the steps.
    http://support.apple.com/kb/ht3964

Maybe you are looking for