Accessing ICS variable using EL

Can we access ics variable using EL. Hope this query is already posted. but I tried the solution. it is not working
I have set an  ics variable in a CSElement and I tried to access that in the next line using EL. but I am not getting the values
e.g
<%
ics.SetVar("testvar","testvalue")
%>
fetching value using cs : {cs.testvar}
fetching value using ics : {ics.testvar}
No results for both the line. Is it not possible to access ics object using EL?

Hello
Could you try something like:
e.g
<%
ics.SetVar("testvar","testvalue")
%>
fetching value using cs : ${cs.testvar}
Hope it helps.
Gerardo

Similar Messages

  • How to access Websphere variables using java

    Hi
    I want to access Websphere variables using java.
    Any help is appreciated!!
    Thanks
    P

    WebSphere Application Server has a bunch environmental variables such as log locations. These are held at the "server", "node", and "cell" level.
    To access them, you have to get the right context. Something like this, I believe...
    InitialContext initialContext = new InitialContext();
    initialContext.lookup("foo:bar/baz/blah"); //correct context hereGo to the IBM website for WAS and do a search on namespace bindings. That should give you some more information.
    Good luck.

  • Accessing database Variables using JDBC

    Hi,
    I have a question for some of you Java specialists out there.
    I want to execute a select statment in my database (SQL Server 2000) and store the output in a variable. - The reason I am not directly executing the SQL statement from my JDBC connection is that I need to execute a number of SQL statements and then finally would like to store my result set in a variable in the database - NOW, my question is , how do I (If I can) access a database variable using either servlets or JSP. Any help is welcome.
    A quick response would be much appreciated.
    thanks

    We are probably talking about different things.
    ASP, at least when I used consisted of the following:
    -html
    -server side script (vbscript, javascript, perlscript)
    -client side script (usually javascript but it could be vbscript and perlscript)
    In the above you have three possible kinds of variables java, perl, vb. In each of those languages you can use SQL text to manipalate data in the database. However the text itself never ran in the ASP server nor was there such a thing a SQLscript, so there was nothing that was a SQL variable.
    However, if I write a stored procedure in Oracle, it can definitely have variables. And likewise a oracle package can have variables. But there is no way to directly use those variables in ASP. The value of the variable would have to be returned to the ASP script language and a variable in tha language could contain that value.
    Perhaps I just don't understand ASP or it has evolved in the last 3 years. If so then ignore everthing I have said.

  • Accessing Private variable using reflection

    Is someone have code snippet for accessing private varaible using reflection
    Here is my code snipper
    import java.lang.reflect.Field;
    public class test1234 {
    private String t;
    public test1234() {
    public String show() {
    return t;
    import java.lang.reflect.Field;
    public class Test123 {
    public Test123() {
    public static void main(String[] args) {
    test1234 test12341 = new test1234();
    try {
    Class cls = test12341.getClass();
    Field fld = cls.getField("t");
    fld.set(test12341, "12");
    catch (Exception e) {
    System.out.println(e.getLocalizedMessage());
    I am getting exception when i try to access.
    java.lang.NoSuchFieldException
         at java.lang.Class.getField0(Native Method)
         at java.lang.Class.getField(Class.java:826)
         at Test123.main(Test123.java:24)
    Thanks in advance

    Thanks for your response. After setting accessible to true i can able to set into private variable.
    Thanks a lot.

  • Accessing TestStand Variables using Applicatio​n Manager

    I am working with an Operator Interface written in LabWindows/CVI 7.1.  I need this program to be able to access station globals and local variables in TestStand 3.1.  This Operator Interface was originally written for TestStand 2 and uses the older functions like TS_NewEngine, TS_EngineSetProperty, TS_PropertyGetValString, etc.  This has caused some problems when I try to use these functions with TestStand 3.1.  I can run the code fine in the debugger, but my executable just quits as soon as it encounters one of these older testStand functions (I can't tell which one).  I have been trying to incorportate the Application Manager, Sequence File View Manager, and Execution View Manager into the existing code without altering the GUI's appearence (keeping with the standard LabWindows text boxes and not using ActiveX controls).  I cannot figure out how to access variables in testStand using the Managers.  Here is the code I am using so far:
    //Define Panel Handles and ActiveX Control Handles
    typedef struct
     //panel handles
     int              m_pnMain;
     int              m_pnExecute;
     // ActiveX control handles:
     CAObjHandle applicationMgr;     // invisible control, manages Startup/Shutdown, and other application functions
     CAObjHandle sequenceFileViewMgr;   // invisible control, manages a SequenceView control that displays loaded sequence files
     CAObjHandle executionViewMgr;    // invisible control, manages a SequenceView control that displays executing sequences
     CAObjHandle m_oEngine;
     } ApplicationWindow;
    static ApplicationWindow gMainWindow; // this application only has one window
       // load the panels for the main window from the .UIR file
       errChk( gMainWindow.m_pnMain = LoadPanelEx (0, "Symtx Operator Console.uir", PN_MAIN, __CVIUserHInst));
       errChk( gMainWindow.m_pnExecute = LoadPanelEx (gMainWindow.m_pnMain, "Symtx Operator Console.uir", PN_EXECUTE, __CVIUserHInst));
       // prepare to use the TestStand ActiveX controls
       errChk( GetActiveXControlHandles());
       tsErrChk( TSUI_ApplicationMgrGetApplicationWillExitOnStart(g​MainWindow.applicationMgr, &errorInfo, &appWillExitOnStart));
       if (!appWillExitOnStart)
        // show a splash screen while starting up
        errChk( splashPanel = LoadPanelEx(0, "Symtx Operator Console.uir", SPLASH, __CVIUserHInst));
           errChk( InstallPopup(splashPanel));
       // make TS engine conveniently accessible
       tsErrChk( TSUI_ApplicationMgrGetEngine(gMainWindow.applicati​onMgr, &errorInfo, &gMainWindow.m_oEngine)); 
    The code shown above works fine.  I tried to add the following lines to access the station globals:
       // Get station globals
       m_oGlobals = gMainWindow.m_oEngine.NewPropertyObject( 3, False, "", 0); 
       m_oGlobals = gMainWindow.m_oEngine.Globals;
    and got the following error when I compiled:
      290, 39   Left operand of . has incompatible type 'CAObjHandle'.
    which referred to
    m_oGlobals = gMainWindow.m_oEngine.NewPropertyObject( 3, False, "", 0); 
    If anyone can help I'd greatly appreciate it.

    Hi there,
    The reason the code for TestStand globals does not work is because CVI does not support using the TestStand API in this way.  This can be a little confusing because in the help it lists using these methods and functions to access the properties you were looking for, however, in CVI you still have to use the TS_ functions to access different properties.  Usually it is TS_objectToOperateOn.  For example TS_Engine will always be getting properties or executing methods of the engine.  I have put some code below that should accomplish the same thing you were looking to do.  Hope this helps out!
        int error = 0;
        ErrMsg errMsg = {'\0'};
        ERRORINFO errorInfo;
        CAObjHandle myGlobals;
        //Get the globals from the engine
        tsErrChk (TS_EngineGetGlobals (myEngine, &errorInfo, &myGlobals)); 
        //Store the last user name into a local string
        tsErrChk (TS_PropertyGetValString(myGlobals, &errorInfo, "TS.LastUserName", 0, &lastUserName));
    Error: 
        // FREE RESOURCES
        if (lastUserName != NULL)
             CA_FreeMemory(lastUserName);
        // If an error occurred, set the error flag to cause a run-time error in TestStand.
        if (error < 0)
             *errorOccurred = TRUE;
            // OPTIONALLY SET THE ERROR CODE AND STRING
             *errorCode = error;
             strcpy(errorMsg, errMsg);
    Pat P.
    Software Engineer
    National Instruments

  • Accessing static variable using GWT remote servlet

    Hi all,
    Using GWT, I'm trying to call two methods which exist in a
    RemoteService from my entrypoint class.
    I have two methods within my remoteService servlet, method A and
    method B.
    Method A returns an int and sets an arraylist.
    Method B returns the arraylist, myList.
    I'm assuming that a single callback is associated with a single
    servlet method? Is it possible to access the arraylist, which has been
    set from calling method A, using the callback?
    e.g.
    //client code:
                   MyServiceAsync myService = (MyServiceAsync)
    GWT.create(MyService.class);
                   AsyncCallback callback = new AsyncCallback(){
                      public void onSuccess(Object result) {
                      public void onFailure(Throwable caught) {
                  myService.foo(callback);
    // servlet code
    public class MyServiceImpl extends RemoteServiceServlet implements
    MyService{
           public static List myList = new ArrayList();
           public int A(){
                   setB();
                   return 10;
           public void setB(){
                   // this adds five elements to a static arraylist, myList
           public List getB(){
                   return myList;
    }

    Ok, frist solution (the better one) is that You can create a class that will both contain the int and the list. E.g.
    public class MyObject implements Serializable {
    private int value;
    private List<Object> list;
    //getters and settersThen You can set the values You're interested in the RemotServiceServlet and simply return this object - aync callbacks can return various types of objects (not only primitives) but under two conditions:
    1) The object must implement the Serializable interface
    2) The object must have public no argument constructor or no constructor at all.
    Then in your client class You'll have:
    MyServiceAsync myService = (MyServiceAsync) GWT.create(MyService.class);
    AsyncCallback<MyObject> callback = new AsyncCallback<MyObject>(){
    public void onSuccess(MyObject result) {
      result.getList();
      result.getInt();
    public void onFailure(Throwable caught) {
    myService.A(callback);
    };The second solution is to invoke a method B callback in the result of A's callback:
    MyServiceAsync myService = (MyServiceAsync) GWT.create(MyService.class);
    AsyncCallback aCallback = new AsyncCallback(){
    public void onSuccess(Object result) {
       //here You get the in value
       AsyncCallback bCallback = new AsyncCallback(){
        public void onSuccess(Object result) {
         //here You get the list
        public void onFailure(Throwable caught) {
        myService.B(bCallback);
    public void onFailure(Throwable caught) {
    myService.A(aCallback);Hope this is clear and will help You. (Remember also the use generics!)

  • Accessing session variables

    Hi ,
    I have session variable defined using portals (forms or plsql portlets).
    Can i access these variables using jsp portlets ??
    This is an urgent requirement ..
    Regards,
    Vijaya

    "145822",
    If your application with application id 100, for example, uses a common authentication scheme with application 200 (using the same cookie name in the case of an HTML DB style authentication scheme), then the two applications can run in the same session. A potential benefit of this, even if the two apps are not intricately related, is that the user has only to authenticate once per new session and will have access to both apps. If you set it up this way, then app 100 can access app 200's items in the same session using this function from within app 100:  htmldb.application.fetch_app_item(p_item=>'ITEM_NAME',p_app=>200);Scott

  • Unable to access value in System Environment Variable using Java

    I am using Java code to get the value of a System Environment Variable using the Runtime, Process java classes.
    The code works fine in tomcat, but when deployed in 9ias the code is unable to retrieve the value stored in the System environment variable in Windows 2000.

    Thanks for the comment steve, here is the code which i am using.
         public String getEnvironmentVariable()
                   // This will get the FEDREP_HOME environment variable
                   String FEDREP_HOME = null;
                   Process p = null;
                   Runtime rt = Runtime.getRuntime();
                        try {
                             // invokes a shell-command to retrieve FEDREP_HOME variable
                             String OS = System.getProperty("os.name").toLowerCase();
                                  // Get the Windows 95 environment variable
                                  if (OS.indexOf("windows 9") > -1)
                                            p = rt.exec( "command.com /c echo %FEDREP_HOME%" );
                                  // Get the Windows NT environment variable
                                  else if (OS.indexOf("nt") > -1)
                                            p = rt.exec( "cmd.exe /c echo %FEDREP_HOME%" );
                                  // Get the Windows 2000 environment variable
                                  else if (OS.indexOf("2000") > -1)
                                            p = rt.exec( "cmd.exe /c echo %FEDREP_HOME%" );
                                  // Get the Windows XP environment variable
                                  else if (OS.indexOf("xp") > -1)
                                            p = rt.exec( "cmd.exe /c echo %FEDREP_HOME%" );
                                  // Get the unix environment variable
                                  else if (OS.indexOf("linux") > -1)
                                            p = rt.exec( "sh -c echo $FEDREP_HOME" );
                                  // Get the unix environment variable
                                  else if (OS.indexOf("unix") > -1)
                                            p = rt.exec( "sh -c echo $FEDREP_HOME" );
                                  // Get the unix environment variable
                                  else if (OS.indexOf("sunos") > -1)
                                            p = rt.exec( "sh -c echo $FEDREP_HOME" );
                                  } else
                                            System.out.println("OS not known: " + OS);
                             // set up to read subprogram output
                             InputStream is = p.getInputStream();
                             InputStreamReader isr = new InputStreamReader(is);
                             BufferedReader br = new BufferedReader(isr);
                             // read output from subprogram
                             FEDREP_HOME = br.readLine();
                             br.close();
                        } catch(Exception ex)
                                  System.out.println("Error when getting FEDREP_HOME environment variable");
                                  ex.printStackTrace();
              return(FEDREP_HOME);

  • How can I access global variables in a loaded Applescript?

    How can I access global variables in a loaded script, in Xcode, ApplescriptObjC? Basically, I have a global variable defined in my parent script using "property", and I need to modify objects connected to those variables inside of a loaded script.
    Example:
    Parent script:
    script AppDelegate
    property myTextField : missing value
    //linked to a text field object
    tell myScript to myAwesomeHandler_()
    end script
    Loaded script:
    on myAwesomeHandler_()
    myTextField's setStringValue_("The new Xcode is so glitchy ugh")
    //changes value of linked text field of parent script
    end myAwesomeHandler_
    The problem is, the variable is undefined in the Loaded script, and I need it to have the same value as the parent script, and I don't want to pass the variable through the Handler. Any ideas?

    I think want you are looking to do will need to be done in two steps. Because myTextField needs to be a property for the ObjectiveC part of the code you cannot turn it into a global.
    However if you make a temporary variable global assign the string to it in the handler then set myTextField off of it.
    global myTextFieldGlobal
    script AppDelegate 
    property myTextField : missing value 
    //linked to a text field object 
    tell myScript to myAwesomeHandler_() 
    myTextField's setStringValue_(myTextFieldGlobal)
    end script 
    on myAwesomeHandler_() 
    set myTextFieldGlobal to "The new Xcode is so glitchy ugh"
    //changes value of linked text field of parent script 
    end myAwesomeHandler_ 
    I know you stated you did not want the handler to return a value but I have to ask why? Global's, imo, are not a good idea and really should be used as a last resort.
    One other possibility is to pass a reference to the property to the handler. Not sure if that works in AS of if that would satisfy our requirement of not passing the variable through the handler
    <edit>
    Another though have you tried to define the property outside the script?  That is
    property myTextField : missing value
    script AppDelegate
    Not sure if that will work.
    You might also want to have a look at Scope of Properties and Variables Declared in a Script Object

  • Access a variable in the Adobe form for Java Scripting

    Hi,
    I am unable to know how to access the variable in a Adobe form.
    The variable is field of an internal table. My adobe form structure is as follows
    MAIN_PAGE->FORMSET->FirstFORM->EXT.
    in the EXT subform the variable(cust)  exists.
    The cust is in turn an internal table.

    Hello Sreelatha,
    I think we cannot hide a page.  as in, page is the main container.  In a container, we can hide any field using some scripting.  Even though if we hide the field, it is present on page but not visible. 
    but if some logic is there, please let me know.
    Thanks,
    Rakesh.
    Edited by: rakhi966 on Sep 8, 2011 8:54 PM

  • Why can't I access the variables in my threads?

    hello.
    another question about threads..
    ==========================
    I have an inner class that implements Runnable (i.e. a thread) and has a variable in it. I want to be able to access that variable from outside the thread class so that I can set or retrieve the variable.
    here is the code for the program
    class myClass
         public static void main(String[] args)
              myClass c = new myClass();
         myClass()
              Thread t = new Thread(new myThread());
              t.number = 1;
              t.start();
         class myThread implements Runnable
              int number = 0;
              public void run()
         }//end myThread
    }//end myClassthe line
    t.number = 1;
    where I try to set the number variable to 1 gives me an error (in the MyClass constructor)
    This is my error
    AccessThreadVars.java:11: cannot find symbol
    symbol  : variable number
    location: class java.lang.Thread
              t.number = 1;
                        ^
    1 errorif I put a method in myThread, and then try to call that method from myClass (via t.MethodName()) it gives me that same error telling me it can't find it..
    what am I doing wrong? how can I get access my thread's variables and methods??

    1. Type names should start with an uppercase letter
    2. t is defined as a Thread, not as a myThread
    (which, may I insist, should be "MyThread"), so the
    compiler has no means of detecting that "number" is
    an accessible field of the object... which wouldn't be accessible anyway, cause you're trying to get attributes from your Runnable after wrapping it inside a Thread.
    Why don't you do something like :
    MyThread t = new MyThread();
    t.number = 1;
    new Thread(myThread).start();?
    I bet you don't use Thread's own methods anyway...

  • Accessing container variable of BPM in Message Mapping function

    Hi,
    I have a scenario in BPM where i have a container variable that is used as a loop counter.I want to access that counter defined , every time when i go around the loop and perform certain actions based on that counter. so how can i access that variable in my message Mapping function.

    Hi Sudharshan,
    check these links, hope they give you the required information (i think there is some problem with SDN site, check these links after a while)
    Re: How to use Container Variable across Maps
    Container object in Message Mapping
    Copy value of container (abstract interface) to an other container
    Regards
    Vishnu

  • How to create a table in MS Access from Labview using ActiveX?

    I want to transfer datas from Labview to Access using activeX method. My only problem is to find out how to create a new table (array) in Access from the Labview program.
    Remarks: I use Labview 6i and MS Access 2000.
    For the moment I can write and read datas of Access from Labview.
    If someone could help me... that would be grate!

    This is off the Microsoft MSDN site "creating an external table". I think you can drop the last step.:
    Open the database you want to create the table in. If it is the current database, use the CurrentDb function to return an object variable that represents the current database. If it isn�t the current database, use the OpenDatabase method to open the database you want.
    Use the CurrentDb function to create a Database object that points to the current database.
    Use the CreateTableDef method of the Database object to create a table definition for the Microsoft Access table.
    Use the CreateField method of the TableDef object to create one or more fields in the Microsoft Access table.
    Use the Append method of the Fields collection to add the new field or fields t
    o the Microsoft Access table.
    Use the Append method of the TableDefs collection to create the Microsoft Access table.
    Use the TransferDatabase method to create the external table in the specified folder.
    Use the Delete method of the TableDefs collection to delete the Microsoft Access table definition.

  • Access global variable in fpga from rt-target

    Hi All,
    I have a realtime PC with NI-FPGA 7852R.
    Generally I used programmatic front panel communication to access variables from FPGA to rt-system since I need the data for control and not for data logging.
    The thing is, I bumped into a tutorial and suggested me to use global variables to save resources of your FPGA. My question is, is it possible to access global variable that belongs to FPGA from rt-system? As far as I tried, this does not seem possible.
    Thanks,
    Auralius

    Could you point us towards this tutorial?
    Chris
    Certified LabVIEW Architect
    Certified TestStand Architect

  • How to access a variable from within a symbol.

    How do I access a variable set outside a symbol from within that symbol?
    Thanks

    If you set a variable on stage ,say
    sym.setVariable("stageVariable", "I am stage variable");
    You can access it from within  a symbol using :
    var myVariable = sym.getComposition().getStage().getVariable("stageVariable");
    Basically you need to get handle to the symbol in which the variable is defined.

Maybe you are looking for

  • External Hard Drive is not being recognized by Firewire 400

    Hi everyone, I update my Mac OS X (Leopard) last night, so this morning when I was going to connect my External Hard Drive (EDD) to my MacBook; the Firewire, which I normally used through Firewire 400, did not recognized my EDD. However, I tried by c

  • Mp4 file not working in Safari, OK in Firefox

    Hi I have just updated my site to include a short movie file. This works fine in Firefox, but Safari recognizes it as text. After publishing my website prior to uploading, all seemed to work fine. However, once uploaded it turns to text. Do you have

  • Reg - Reading internal table with multiple record in a single field

    Dear Guru's,                     i want to read a internal table with field having mutilple entries like read table READ TABLE LT_T2 INTO LT_T2_WA WITH KEY HKONT IN ( '0001152430', '0001152930', '0001152410' ). But it says comma without preceding col

  • Firefox freezes whilst scrolling down on Facebook, and a bit more

    Well, I have some problems with Firefox. Firstly, it freezes for 2-3 seconds when I try to scroll down so that new content would appear on the page. Secondly, Firefox makes error whilst watching a stream on Twitch.tv and it was something like "stop p

  • Table Control dynamic F4

    Hi All i have created a table control in that i have two fields one is o/p filed and another one is i/p filed i have place a f4 for that and if i press f4 for first column i need values and if i press f4 for second column i need different values how