How to bound a JNDI reference to MySQL driver?

Hi.
Hi.
I am trying to write a simple J2EE application that would use Entety EJB with bean persisatance. I have downloaded driver from the www.mysql.org, copied it to the lib/system directory and modified J2EE_CLASSPATH in bin/userconfig.bat. I am using reference implementation server and with deploytool in �tools/serverconfiguration/datasourses/standard� I am specifying driver: org.gjt.mm.mysql.Driver or com.mysql.jdbc.jdbc2.optional.MysqlConnectionPoolDataSource and in datasourses in JNDI Name I write �jdbc/mydb� and in JDBC URL �jdbc:mysql://localhost:3306/this�, problem comes up when I try to reference �jdbc/mydb� from an entity bean, during deployment process of application it says that it is not bound
Binding name:`java:comp/env/jdbc\persondb`
Warning: Reference reference java:comp/env/jdbc\persondb is using a JNDI name that is not bound: jdbc\mydb
I do not get it, what I am doing wrong? Please help me to find out how to bind a JNDI name to MySQL

Hi! I had the same problem, too. I�m Brazilian and I�ve been learning the English language yet, but I�ll try to describe how to configure J2EE with MySQL.
I am using MySQL version 4.1.7 with J2EE version 1.3 on Windows XP Professional. The driver version of MySQL is 3.0.16.
You have to configure the following two files:
- <J2EE_HOME>\bin\setenv.bat
- <J2EE_HOME>\config\resource.properties
Do the following steps:
1) Copy the JAR file of MySQL driver (mysql-connector-java-3.0.16-ga-bin.jar) to <J2EE_HOME>\lib directory.
2) In <J2EE_HOME>\bin directory open the setenv.bat file and analize the code. It is not hard to understand the code, it is just the classpath configuration of J2EE. After understand it, add a reference of MySQL driver (mysql-connector-java-3.0.16-ga-bin.jar), that was copied to <J2EE_HOME>\lib directory.
3) Run the <J2EE_HOME>\bin\j2eeadmin.bat to configure the resource.properties file.There are two command lines to be executed, as below:
- j2eeadmin.bat -addJdbcDriver <CLASS NAME OF THE DRIVER>
- j2eeadmin.bat -addJdbcDatasource <JNDI NAME> <URL>
For example:
- j2eeadmin.bat -addJdbcDriver "com.mysql.jdbc.Driver"
- j2eeadmin.bat -addJdbcDatasource "jdbc/mysql/test" "jdbc:mysql://localhost/test?user=username&password=pass"
4) After run j2eeadmin.bat, the resource.properties file will be modified. But when I did it and when I executed the verbose command to start J2EE, some error messages was exhibited. So I decided to open the resource.properties file and I noticed that the character "\" was added erroneously in a lot of places of the code. It did not seem correct, so I decided to remove these characters replacing them. I was right! After I did it, I run verbose again and no more message error ocurred. I think it is a bug of J2EE.
Finish! I modified the datasource JNDI to access MySQL and then I run my EAR application. No problems occurred. My application is running succesfully.
Good luck!

Similar Messages

  • How to force use of new JDBC MySQL Driver?

    Hi Everyone,
    In my local JDK(1.6)
    I have : "..\jdk\jre\lib\ext\mysql-connector-java-5.0.6-bin.jar" in my classpath.
    Under Netbeans, I have added Version 5.1.6 to my libraries, and added the library to my project.
    When running the preject locally with the code:
    DatabaseMetaData meta = con.getMetaData();
    String s1 = meta.getDriverVersion();It returns: mysql-connector-java-5.0.6
    So it's using the MySQL connector from the JDK rather than the new one I have specified.
    This problem is also reflected on the server, using the same project it retruns:
    mysql-connector-java-3.1.12.
    This is causing me really large problems, I need both the local and remote servers to be running the same version of the MySQL connector, preferably version 5.1.6.
    How can I force them to use the version I specify and not the default version from the JDK.
    Edited by: 3Pc on Mar 22, 2008 10:50 AM
    Edited by: 3Pc on Mar 22, 2008 11:00 AM

    jschell wrote:
    Per the other thread the source of the problem was a hosting company, so there isn't really a way to fix that in the VM except by asking or finding another company.
    Other than that one might be able to use a custom class loader to circumvent the normal class loading. It need to not call to the parent. Doing that with a JDBC driver would not be easy but it should be possible.True, but generally not worth the trouble though. If you have to go through that much work to use a hosting site, your far better off finding another hosting site.
    They seem to have problems understanding what they're doing anyway, if they are placing it in the ext directory. Web and Application containers have their own common lib directories for this sort of thing (if they want to provide a "common" driver) without messing around with the JDK itself (and I know you know this as well, I'm not saying this for your benefit, but rather for the OP's ;-) ).
    You really have to wonder what else they might have placed there. ;-)

  • How create a jndi / datasource for MySQL?

    Hi. This is CarloSilva, from Brazil, again. This time for help to datasource. My application uses MySQL database and ADF components. Please, would can anybody tell me step to step how to create a jndi conection datasource?
    I need setup project for uses datasource, no jdbc connection. How to?
    I need setup web.xml. How?
    I need setup a datasource in JDeveloper for my application. How?
    Please, sorry this questions but I new in JDeveloper and need use it for learn.
    Thanks.

    A JDBC connection may be used as a JNDI resource.
    If the Connections-Navigator connection is DBConnection1, the corresponding datasource is jdbc/DBConnection1DS.
    1. Create a JSP page.
    2. In the web.xml of the JSP add
    <resource-ref>
    <res-ref-name>jdbc/DBConnection1DS</res-ref-name>
    <res-type>javax.sql.DataSource</res-type>
    <res-auth>Container</res-auth>
    </resource-ref>
    3. In the JSP page obtain a connection with the datasource.
    InitialContext initialContext = new InitialContext();
    javax.sql.DataSource ds = (javax.sql.DataSource)initialContext.lookup("java:comp/env/jdbc/DBConnection1DS");
    java.sql.Connection conn = ds.getConnection();

  • How to update transaction data automatically into MySQL database using PI

    Dear All,
    With reference to subject matter I want a sincere advice regarding how to update transaction data automatically into MySQL database using PI. Is there any link available where I can get step-by-step process.
    Ex: I have a MYSQL database in my organization. Whenever a delivery created in SAP some fields like DO Number, DO quantity, SO/STO number should get updated in MYSQL database automatically.
    This scenario is related to updation of transactional data into MYSQL DB and I want your suggestions pertaining to same issue.
    Thanks and Regards,
    Chandra Sekhar

    Hi .
    Develop a sceanrio between SAP to Database system,When the data updates in SAP Tables read the data and update it in DATA Base using JDBC adapter,but there will be some delay in updating data in MySQL.
    serach in sdn for IDOC-TOJDBC sceannario,many documents available for the same.
    Regards,
    Raja Sekhar

  • How to get current JNDI inside of bean?

    Hello! I want to have two JNDIs for the one bean class. So there is no problem if I deploy the one bean twice in the same application with different JNDI. But at run time I want to know what JNDI's entry calls my bean. In this case how to get the current value of JNDI inside of instance of my bean?

    Okay guys. I will explain the reason of this question,
    may be then someone will be interested to this topic
    and cold propose another idea how to arrange the
    decision.
    The question is about security. For example I have two
    objects that realize two business warehouses. And I
    want to use the one bean class for both objects of
    course and also I want to have different permissions
    with every of them. So my idea is to deploy two beans
    contained the same class, into the one application jar
    and assign different JNDIs to each bean.
    That's is not a very smart idea. Why dont use EJB security features ?
    Create two roles: warehouse1 and warehouse2. Pass authentication information from those EJB clients to container when you lookup a bean home interface. (That's the reason why you' r idea wouldnt work).
    Now you can specify whis warehouse can call which EJB method. Also you can check it programmaticaly with isCallerInRole method.
    best regards,
    Maris Orbidans
    SCJP SCWCD SCBCD
    Then I could
    set different permissions to every bean. Everything is
    okay but also I don't want an explicit warehouse's ID
    parameter for my bean class. Let it gets the ID of
    warehouse as value of bean's JNDI. Only the problem I
    don't know how to access to JNDI from the instance. I
    supposed that I could get JNDI from current session
    context, but there is no way to access the bound JNDI.

  • URGENT: JNDI Reference being lost

    Hi,
    We have 2 Weblogic 5.1 Servers in a clustered mode. I have an unclusterable
    object bound in the JNDI tree just for reference purposes. This object
    implements Serializable, but it has a thread reference, and hence it cannot
    be clustered. This object is bound from both servers with different names
    lets call them OBJ_A and OBJ_B. Client Threads running on Server A can only
    lookup OBJ_A and Client Threads running on Server B can only lookup OBJ_B
    although due to the fact that the JNDI tree is clustered, the reference of
    OBJ_A and OBJ_B is available on both Servers A and B. Let me make it more
    clear by saying that the reference of OBJ_A on Server B is useless to the
    Client Threads running on that Server (B) and also the reference of OBJ_B on
    Server A is useless to the Client Threads running on that Server (A)
    At startup everything is fine. However, I am noticing that after a while (a
    while being 1-2 days or less) the JNDI reference of OBJ_A on Server A
    disappears although I can see that the Thread that it represents is alive
    and running, it keeps outputting its heartbeat. The funny thing is that, the
    reference of OBJ_B on Server A still remains, and also the references of
    OBJ_A and OBJ_B on Server B remain in the JNDI tree too.
    Has anyone seen such a problem or a similar problem where the cluster-wide
    JNDI tree loses its references and does not broadcast it to other servers?
    Coz if the object was taken out of the JNDI tree, it should have gone from
    the other server as well.
    I have several such objects listed in the JNDI tree, and their references
    from Server A just disappear whereas they are still present in the JNDI tree
    on Server B where they are really useless.
    Please let me know if you have any insights.
    Thanks
    Abhijit

    Thanks Cameron, I am afraid I dont know if this will help. Basically I dont
    care if JNDI replicates the entries or not.. but why should it forget a
    reference when the object has not unbound itself, neither has the Thread it
    runs on died. The object has also not been garbage collected.
    So not sure yet.. but will try the option you mentioned.
    Does anybody know if JNDI will release references of objects after certain
    periods of inactivity? i.e. if no client 'looks up' an object for a certain
    time, its binding will be released from the JNDI tree?
    Thanks for your help.
    Abhijit
    "Cameron Purdy" <[email protected]> wrote in message
    news:[email protected]...
    One thing I would suggest is using WL's option to not replicate theentries
    that you are describing. I can't remember the name of the option off-hand,
    but it's something like "don't replicate". Check the WL JNDIdocumentation.
    >
    Peace,
    Cameron Purdy
    Tangosol Inc.
    Tangosol Coherence: Clustered Coherent Cache for J2EE
    Information at http://www.tangosol.com/
    "Abhijit Adhyapak" <[email protected]> wrote in message
    news:[email protected]...
    Hi,
    We have 2 Weblogic 5.1 Servers in a clustered mode. I have anunclusterable
    object bound in the JNDI tree just for reference purposes. This object
    implements Serializable, but it has a thread reference, and hence itcannot
    be clustered. This object is bound from both servers with different
    names
    lets call them OBJ_A and OBJ_B. Client Threads running on Server A canonly
    lookup OBJ_A and Client Threads running on Server B can only lookup
    OBJ_B
    although due to the fact that the JNDI tree is clustered, the referenceof
    OBJ_A and OBJ_B is available on both Servers A and B. Let me make itmore
    clear by saying that the reference of OBJ_A on Server B is useless tothe
    Client Threads running on that Server (B) and also the reference ofOBJ_B
    on
    Server A is useless to the Client Threads running on that Server (A)
    At startup everything is fine. However, I am noticing that after a while(a
    while being 1-2 days or less) the JNDI reference of OBJ_A on Server A
    disappears although I can see that the Thread that it represents is
    alive
    and running, it keeps outputting its heartbeat. The funny thing is that,the
    reference of OBJ_B on Server A still remains, and also the references of
    OBJ_A and OBJ_B on Server B remain in the JNDI tree too.
    Has anyone seen such a problem or a similar problem where the
    cluster-wide
    JNDI tree loses its references and does not broadcast it to otherservers?
    Coz if the object was taken out of the JNDI tree, it should have gonefrom
    the other server as well.
    I have several such objects listed in the JNDI tree, and theirreferences
    from Server A just disappear whereas they are still present in the JNDItree
    on Server B where they are really useless.
    Please let me know if you have any insights.
    Thanks
    Abhijit

  • Home Stub is bound or Home object is bound in JNDI

    Hi,
    When I lookup Home i get home stub at client side. My question is what is bound in JNDI tree Home stub or object of Home implementation class which is implemented by Server?
    thanx

    My understanding:
    It is the stub that gets bound to the JNDI. From the client side, we look up the JNDI for the home stub. The stub knows how to communicate with it's corresponding server object(Home) thru the skeleteon(I think the concept of skeleton in RMI is deprecated now..)

  • You changed the order of the menu for "Open in a new window" or "Open in new Tab", How can I change it back? Or how can I omit any reference to tabs? I do not use them at all.

    You changed the order of the menu for "Open in a new window" or "Open in new Tab", How can I change it back? Or how can I omit any reference to tabs? I do not use them at all.

    You can use the Menu Editor add-on to rearrange or remove menu items - https://addons.mozilla.org/firefox/addon/menu-editor

  • I've moved my Aperture library to another computer, and masters are referencing an old path name.  How can I update these references?  Reloctating masters does not work in this case :(

    I've moved my Aperture library from one computer to another using Finder.
    I merged the library with one which was already on the computer.
    Now, the photos I imported have reference to the old path name on my old computer.
    How can I update these references as "Relocate Masters" does not work in this case?

    Just one suggestion to be able to reconnect all at once:
    Create a smart album containing the images with missing masters:
    File -> New ->  Smart Album,     and add a rule: File Status is "Missing"     (or File Status is "offline")
    Then select the images in this album and go to the File menu:
    and select:   File -> Locate referenced File
    If you are lucky, Aperture will reconnect all at once, if you point the first image version to its counterpart.

  • How can we get the reference of XML element on frame as soon as frame is created in Document?

    Hi,
    When ever we copy any text/table cells from any frame, and paste it directly on page, A new Frame is created and the pasted text is placed inside that frame.
    Now to capture this frame creation, We have two possible solutions:
    1) Attach Observer on Document 'kDocBoss' on IID_IHIERARCHY_DOCUMENT and it will notify on frame creation in update function.
    2) Notification event on new story creation.
    Now, I need to perform some changes in the newly created table, for example:
    a)  Need to delete XML tags from newly created frame
    b)  Need to perform action on table cells if any in the created frame.
    But the problem is, when the event comes, I can access basic properties of frame like it's name, type etc, but it does not give me the
    XML element on frame or tables in frame until the event is com pleat.
    I know it's quite a specif requirement, but I guess many of you might have faced these kind of challenges, while processing the event.
    Does any one has any idea how I can get the reference of XML element on frame as soon as it is created?

    Hi Kapoor,
    please give also others a chance, and excuse that I get up late on vacation ;-)
    Anyway, I'd keep the story creation responder to recognize the copy, then combine it with an observer on the backing xml story to catch the associated XML element which is created there. Something like below:
    UIDRef xmlStoryRef = Utils<IXMLUtils>()->GetBackingStore(doc);
    InterfacePtr<ISubject> subject ( xmlStoryRef,IID_ISUBJECT );
    subject->AttachObserver(observer,IID_IIDXMLELEMENT,observer->GetAttachIID());

  • How do i create a styled spry mysql driven menu using dreamweaver cs4?

    How do i create a styled spry mysql driven menu using dreamweaver cs4?
    I have cs4. I gave up on using MS sql as a datasource. I finally got a php successfull connection in my PHP web page.
    I would like a nice video tutorial for creating a dynamic menu.
    I guess i can style it by attaching a css file to the page. Are their any already designed css files out there in some online area?
    i am not a good designer. so i would like to simply have a collection of menu_style.css files and choose what looks good.
    But first i need to build the spry menu from the mysql database.
    Any help is apprechiated.
    My first choice was to maintain the data in an MS sql server file. If i could directly attach to an ms sql datasource then that would be the best option.
    I dont think i want to have to re-generate an XML datasource each time i add or modify the menu. I would like to maintain the MS Sql or mySql file instead.
    If i could generate an XML datasource from the MS Sql database then I may even prefere that, but i have spent a lot of time trying to figure out how to do that and not had any success. So i prefere working in MS sql but would settle for mySql if i had to.
    Thanks
    Jerry

    To create a dynamic menu take a look here http://labs.adobe.com/technologies/spry/samples/menubar/MenuFromNestedData.html#
    The XML file for the above menu looks like this
    <?xml version="1.0" encoding="utf-8"?>
    <items>
         <item id="0001" type="donut">
              <name>Cake</name>
              <ppu>0.55</ppu>
              <batters>
                   <batter id="1001">Regular</batter>
                   <batter id="1002">Chocolate</batter>
                   <batter id="1003">Blueberry</batter>
                   <batter id="1003">Devil's Food</batter>
              </batters>
              <topping id="5001">None</topping>
              <topping id="5002">Glazed</topping>
              <topping id="5005">Sugar</topping>
              <topping id="5007">Powdered Sugar</topping>
              <topping id="5006">Chocolate with Sprinkles</topping>
              <topping id="5003">Chocolate</topping>
              <topping id="5004">Maple</topping>
         </item>
         <item id="0002" type="donut">
              <name>Raised</name>
              <ppu>0.55</ppu>
              <batters>
                   <batter id="1001">Regular</batter>
              </batters>
              <topping id="5001">None</topping>
              <topping id="5002">Glazed</topping>
              <topping id="5005">Sugar</topping>
              <topping id="5003">Chocolate</topping>
              <topping id="5004">Maple</topping>
         </item>
         <item id="0003" type="donut">
              <name>Buttermilk</name>
              <ppu>0.55</ppu>
              <batters>
                   <batter id="1001">Regular</batter>
                   <batter id="1002">Chocolate</batter>
              </batters>
         </item>
         <item id="0004" type="bar">
              <name>Bar</name>
              <ppu>0.75</ppu>
              <batters>
                   <batter id="1001">Regular</batter>
              </batters>
              <topping id="5003">Chocolate</topping>
              <topping id="5004">Maple</topping>
              <fillings>
                   <filling id="7001">
                        <name>None</name>
                        <addcost>0</addcost>
                   </filling>
                   <filling id="7002">
                        <name>Custard</name>
                        <addcost>0.25</addcost>
                   </filling>
                   <filling id="7003">
                        <name>Whipped Cream</name>
                        <addcost>0.25</addcost>
                   </filling>
              </fillings>
         </item>
         <item id="0005" type="twist">
              <name>Twist</name>
              <ppu>0.65</ppu>
              <batters>
                   <batter id="1001">Regular</batter>
              </batters>
              <topping id="5002">Glazed</topping>
              <topping id="5005">Sugar</topping>
         </item>
         <item id="0006" type="filled">
              <name>Filled</name>
              <ppu>0.75</ppu>
              <batters>
                   <batter id="1001">Regular</batter>
              </batters>
              <topping id="5002">Glazed</topping>
              <topping id="5007">Powdered Sugar</topping>
              <topping id="5003">Chocolate</topping>
              <topping id="5004">Maple</topping>
              <fillings>
                   <filling id="7002">
                        <name>Custard</name>
                        <addcost>0</addcost>
                   </filling>
                   <filling id="7003">
                        <name>Whipped Cream</name>
                        <addcost>0</addcost>
                   </filling>
                   <filling id="7004">
                        <name>Strawberry Jelly</name>
                        <addcost>0</addcost>
                   </filling>
                   <filling id="7005">
                        <name>Rasberry Jelly</name>
                        <addcost>0</addcost>
                   </filling>
              </fillings>
         </item>
    </items>
    Then remains the manner in which you create the XML file which can be found here http://labs.adobe.com/technologies/spry/samples/utils/query2xml.html
    One you have your menu up and running, you will be able to apply styles and effects

  • How to setup BPEL JNDI connection on the application server

    Hi
    Can anyone tell me how to write a JNDI connection for my BPEL process? Currently we are invoking all my BPEL processes from a property file, but i need to call my BPEL process thru JNDI connection. Is it possible? If yes then How?
    Has anyone got any idea? Please let me know
    BTW, you need more clarification on the question, let me know please.
    Thanks.
    Deepak

    Hi Grafl,
    Chk this link
    Folder creation in AL11 using ABAP program
    try this code.This works on UNIX servers
    data: unixcom like   rlgrap-filename.
    data: begin of tabl occurs 500,       
            line(400),    
          end of tabl.
    dir = unixcom = 'mkdir mydir'. "command to create dir
    "to execute the unix command 
    call 'SYSTEM' id 'COMMAND' field unixcom
                      id 'TAB' field tabl[].
    <b>Reward Points if Useful</b>
    Regards
    Gokul

  • How can I get a reference to the Local interface of a EJB 3 session?

    Hi,
    How can I get a reference to the Local interface of a EJB 3 session?
    My session implements both the local and remote interfaces, so in my client, when I look up the remote interface using the following code, I did get a reference
              processor = (IItemProcessorRemote)initialContext.lookup(IItemProcessorRemote.class.getName());but if I also look up the local interface in th eclient using this:
    processorLocal =(IItemProcessor)initialContext.lookup(IItemProcessor.class.getName());I got errors like the following, do you know why? Thanks a lot!
    Exception in thread "main" javax.naming.NameNotFoundException: sessions.IItemProcessor not found
         at com.sun.enterprise.naming.TransientContext.doLookup(TransientContext.java:203)
         at com.sun.enterprise.naming.TransientContext.lookup(TransientContext.java:175)
         at com.sun.enterprise.naming.SerialContextProviderImpl.lookup(SerialContextProviderImpl.java:61)
         at com.sun.enterprise.naming.RemoteSerialContextProviderImpl.lookup(RemoteSerialContextProviderImpl.java:116)
         at sun.reflect.GeneratedMethodAccessor114.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at com.sun.corba.ee.impl.presentation.rmi.ReflectiveTie._invoke(ReflectiveTie.java:121)
         at com.sun.corba.ee.impl.protocol.CorbaServerRequestDispatcherImpl.dispatchToServant(CorbaServerRequestDispatcherImpl.java:650)
         at com.sun.corba.ee.impl.protocol.CorbaServerRequestDispatcherImpl.dispatch(CorbaServerRequestDispatcherImpl.java:193)
         at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleRequestRequest(CorbaMessageMediatorImpl.java:1705)
         at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleRequest(CorbaMessageMediatorImpl.java:1565)
         at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleInput(CorbaMessageMediatorImpl.java:947)
         at com.sun.corba.ee.impl.protocol.giopmsgheaders.RequestMessage_1_2.callback(RequestMessage_1_2.java:178)
         at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleRequest(CorbaMessageMediatorImpl.java:717)
         at com.sun.corba.ee.impl.transport.SocketOrChannelConnectionImpl.dispatch(SocketOrChannelConnectionImpl.java:473)
         at com.sun.corba.ee.impl.transport.SocketOrChannelConnectionImpl.doWork(SocketOrChannelConnectionImpl.java:1270)
         at com.sun.corba.ee.impl.orbutil.threadpool.ThreadPoolImpl$WorkerThread.run(ThreadPoolImpl.java:479)

    BTW, findItemByTitle(String title) is a business method in my ItemProcessor session bean.
    public String findItemByTitle(String title) {
              AuctionItem item;
              String result = null;
              try {
                   Query query = entityManager
                             .createNativeQuery("SELECT i from AuctionItem i WHERE i.title LIKE : aTitle");
                   query.setParameter("aTitle", title);
                   item = (AuctionItem) query.getSingleResult();
                   result = item.toString();
              } catch (EntityNotFoundException notFound) {
              } catch (NonUniqueResultException nonUnique) {
              return result;
         }

  • How can i get the reference to Controls from VI-reference

    Hello,
    i have a VI with ~5 controls on it.
    And with the Object "Current VIs path" and "Open VI reference" i can create a reference to the current VI.
    How can i create now a reference to the controls? (Starting with VI-reference?
    Of course i know how to create directly a reference from a control.
    My idea wasm that there areperhaps properties like:
    - Number of controls
    - Name of control
    - Type of control (string, bool. number...)
    Is this somewhere there and i just dont find it?
    Thanks for your help

    Once you have the VI Refnum, it's a two-step process. Wire the VI Refnum into a property node and get a reference to the Front Panel. Output the Front Panel reference into another property node and select the property Controls[ ], which outputs an array of references for all the controls on the front panel.
    Message Edited by Jarrod S. on 04-20-2007 11:06 AM
    Jarrod S.
    National Instruments
    Attachments:
    get_ref.PNG ‏5 KB

  • How to get the form reference in .js page from .jsp page

    hi
    i have written one form in jsp page omething like:-
    <html:form action="/shopping" onsubmit="return false;">
    can anybody tell me,how to get the form reference in .js page from .jsp page ,
    i have tried:-
    var formRef = document.forms[0];
    butits not working.
    Thanks.

    Its very simple......y cant u prefer google...Bad
    c this example...
    function submit()
    alert("textbox"+ document.forms[0].name.value);//to get textbox value in js
    document.forms[0].submit();//to submit jsp page using js
    <html:html>
    <html:form action="/shopping" onsubmit="submit()">
    <html:text property=name>
    learn to search in google..
    </html:form>
    </html:html>

Maybe you are looking for