Struts 2 Ajax working example

Hi all,
I want a working example of struts 2 Ajax.
What I want is user name validation when registering new user.
please help me with the relevant link if any.
Thanks in advance,
Hirav

I normally do not recommend RoseIndia tutorials. However, [this one|http://www.roseindia.net/struts/struts2/struts2ajax/ajax-login-form.shtml] seems exactly like what you are looking for. As an aside, that was the top hit for me in Google. Learn how to search, attempt to solve your problem, and then post when you are actually stuck on something.
- Saish

Similar Messages

  • How Ajax works with Struts framework

    How Ajax works with Struts framework .
    Thanks
    Ramki

    So we must write file name(like abc.do), If am using struts <html:link > tag like <html:like action="abc" >Click</html:link>, so with ajax we must call like <a href ="abc.do">Click</a> .
    But there is a problem, if am using ,
    <servlet-mapping>
    <servlet-name>MainServlet</servlet-name>
    <url-pattern>/r/*</url-pattern>
    </servlet-mapping>
    or
    <servlet-mapping>
    <servlet-name>MainServlet</servlet-name>
    <url-pattern>*.do</url-pattern>
    </servlet-mapping>
    here i am changing web.xml file based on client interest. At those situation we must change all jsp pages for <a href ="/r/abc">Click</a> .like,.
    It's very difficult.
    Is any other way to use ajax with Struts (Only struts tags)
    Thanks
    Ramki

  • Carl's / Scott's Ajax Tree Example Query

    Hi,
    Hoping someone can assist, I have utilized Carl's and Scott's Ajax tree example, specifically have used the following example from Carl's app, i.e.:
    http://apex.oracle.com/pls/otn/f?p=11933:49:4073287192617448::NO:RP::
    All is working great but my query is, with the following query, that I am using, i.e.
    SELECT "EMP"."MGR" as "MGR",
            "EMP"."EMPNO" as "EMPNO",
            "EMP"."ENAME" as "ENAME" ,
            (select count(*)  from "EMP" "EMP2" where  "EMP2"."MGR" = "EMP"."EMPNO") BranchCount
    from
    "EMP" "EMP"
    where
    "EMP"."MGR"  =  :BRANCH_IDI need to also retrieve the LEVEL pseudo-column as well for each record retrieved as I need the LEVEL info for trying to determine at what level of the tree I am at.
    I believe you can only use the LEVEL column with a CONNECT BY PRIOR clause.
    I would actually like to incorporate the LEVEL column into the above query - is this possible?
    If not, can someone pls assist with re-writing the above query using a connect by clause which will still retrieve the same info as Carl's original query.
    Thanks.
    Tony.

    Hello,
    Sure just replace the body section of the procedure with something like this.
    for c1 in (
    select emp_no,emp_name,emp_manager
    from emps
    order by 2 asc;
         )loop
    htp.prn ('&lt;div>' || c1.emp_no || '-' || c1.emp_name || '-' || c1.emp_manager||'&lt;/div>');
    end loop;
    Carl

  • Please Help:  A Problem With Oracle-Provided 'Working' Example

    A Problem With Oracle-Provided 'Working' Example Using htp.formcheckbox
    I followed the simple steps in the Oracle-provided example:
    Doc ID: Note:116534.1
    Subject: How to use checkbox in webdb for bulk update using webdb report
    However, when I select a checkbox and click on the Update button, I get a "ORA-01036: illegal variable name/number" error. Please advise. This was a very promising feature.
    Fred
    Below are step-by-step instructions provided by Oracle to create this "working" example:
    How to use a checkbox in WEBDB 2.2 report for bulk update.
    PURPOSE
    This article shows how checkbox can used placed on WEBDB report
    and how to use it.
    SCOPE & APPLICATION
    The following example to guide through the steps to create a working
    example of this.
    In this example, the checkbox is used to select the records. On clicking
    the update button, the pl/sql procedure is called which will update col1 to
    the string 'OK'.
    After the update is done, the PL/SQL procedure calls the report again.
    Since the report only select records where col1 is null, the updated
    records will not be displayed when the report is called again.
    Step 1 - Create Table
    From Sqlplus, log in as scott/tiger and execute the following:
    drop table chkbox_example;
    create table chkbox_example
    (id varchar2(10) not null,
    comments varchar2(20),
    col1 varchar2(10));
    Step 2 - Insert Test Data
    From Sqlplus, still logged in as scott/tiger , execute the following:
    declare
    l_i number;
    begin
    for l_i in 1..50 loop
    insert into chkbox_example values (l_i, 'Comments ' || l_i , NULL);
    end loop;
    commit;
    end;
    Step 3 -Create SQL Query based WEBDB report
    Logon to a WEBDB site which has access to the database the above tables are created.
    Create a SQL based Report.
    Name the report :RPT_CHKBOX
    The select statement for the report is :
    select c.id, c.comments, c.col1,
    htf.formcheckbox('p_qty',c.id) Tick
    from SCOTT.chkbox_example c
    where c.col1 is null
    In Advanced PL/SQL, (REPORT, Before displaying the form), put the following code
    htp.formOpen('scott.chkbox_process');
    htp.formsubmit('p_request','Update');
    htp.br;
    htp.br;
    Step 4 - Create a stored procedure in the database
    Log on to the database as scott/tiger and execute the following to create the
    procedure.
    Note: Replace WEBDB to the appropriate webdb user for your installation.
    In my database, I had installed webdb using WEBDB username, hence user webdb owns
    the packages.
    create or replace procedure chkbox_process
    ( p_request in varchar2 default null,
    p_qty in wwv_utl_api_types.vc_arr ,
    p_arg_names in wwv_utl_api_types.vc_arr ,
    p_arg_values in wwv_utl_api_types.vc_arr
    is
    i number;
    begin
    for i in 1..p_qty.count loop
    if p_qty(i) is not null then
    begin
    update chkbox_example
    set col1 = 'OK'
    where chkbox_example.id = p_qty(i);
    end;
    end if;
    end loop;
    commit;
    /* To Call Report again after updating */
    SCOTT.RPT_CHKBOX.show
    (p_request=>'Run Report',
    p_arg_names=>webdb.wwv_standard_util.string_to_table2(' '),
    p_arg_values=>webdb.wwv_standard_util.string_to_table2(' '));
    end;
    Summary
    There are essentially 2 main modules, The WEBDB report and the pl/sql procedure (chkbox_process)
    A button is created via the advanced pl/sql coding which shows on top of the report. (The
    button cannot be placed at the bottom of the report due to the way WEBDB creates the procedure
    internally)
    When any button is clicked on the report, it calls the pl/sql procedure chkbox_process.
    The procedure is called , WEBDB always passes the parameters p_request,p_arg_names and o_arg_values.
    p_qty is another parameter that we are passing additionally, This comes from the checkbox created
    using the htf.formcheckbox in the report select statement.
    The pl/sql procedure calls the report again after processing. This is done to
    show how to call the report.
    Restrictions:
    -The Next and Prev buttons on the report will not work.
    So it is important that the report can fit in 1 page only.
    (This may mean that you will not select(not ticked) 'Paginate' under
    'Display Option' in the WEBDB report. If you do this,
    then in Step 4, remove p_arg_names and p_arg_values as input parameters
    to the chkbox_process)

    If your not so sure you can use the instanceof
    insurance,
    Object o = evt.getSource();
    if (o instanceof Button) {
    Button source = (Button) o;
    I haven't thoroughly read the thread, but I use something like this:if (evt.getSource() == someObjRef) {
        // do that voodoo
    ]I haven't looked into why you'd be creating a new reference...

  • Why won't my JQuery AJAX Work?

    I've used AJAX and JQUERY AJAX before, but I can't get it working in Dreamweaver with a test PhoneGap site.  I'm pasting in my code below. 
    I put some alerts in, one to let me know the event got inside the "change" fuction (that works).  Then I have another after the AJAX and it doesn't.  The dropdown hangs and doesn't even close.  I don't get a success, a failure or even a timeout!  WTF?  I have the URL destination in the same folder and I've tried adding the localhost and leaving it off, but to no avail.
    HELLLLPPPPP!!!
    -- John Kiernan
    <!DOCTYPE html>
    <html>
    <head>
    <meta charset="utf-8">
    <title>jQuery Mobile Web App</title>
    <link href="jquery-mobile/jquery.mobile-1.0a3.min.css" rel="stylesheet" type="text/css"/>
    <script src="jquery-mobile/jquery-1.5.min.js" type="text/javascript"></script>
    <script src="jquery-mobile/jquery.mobile-1.0a3.min.js" type="text/javascript"></script>
    <!-- This reference to cordova.js will allow for code hints as long as the current site has been configured as a mobile application.
         To configure the site as a mobile application, go to Site -> Mobile Applications -> Configure Application Framework... -->
    <script src="/cordova.js" type="text/javascript"></script>
    <script type="text/javascript">
    $(document).ready(function(){
      $("#mainPulldown").change(function(){
        var lcUrl = "http://localhost/populatestate.php";
    //This gives me an alert letting me know the function is firing   
        alert(lcUrl);
        $.ajax({
        type: GET,
        url: lcUrl,
        data: {'which':'USA'},
        dataType: "json",
        timeout: 30000,
        success: function(json) {
          alert("success");
        error: function(x,y,z) {
        // x.responseText should have what's wrong
          alert(x.responseText);
        //  alert("Bad");
        statusCode: {
        404: function() {
          alert("page not found");
    alert("timeout");
    </script>
    </head>
    <body>
    <div data-role="page" id="page">
        <div data-role="header">
            <h1>Page One</h1>
        </div>
        <div data-role="content">   
            <div id='maindiv' style='height:52px;overflow:hidden; ' align='center'>
                    <select id='mainPulldown'  name='mainPulldown' >
                        <option value='Select' selected='selected'>Choose a location</option>
                        <option value='USA' >U.S. States/Territories</option>
                        <option value='CANADA'>Canada</option>
                        <option value='MEXICO'>Mexico</option>
                        <option value='AUSTRALIA'>Australia</option>
                        <option value='BRAZIL'>Brazil</option>
                        <option value='GERMANY'>Germany</option>
                        <option value='Country'>Other Countries with Meetings</option>
                        <option value='Enter'>Enter free form address</option>
                    </select>
            </div>
            <div id='statediv' style='height:auto;overflow:hidden;' align='center'>
                <form method='get' id='stateform' action='#' onsubmit='return false;' style='text-align: center;'>
                    <select onchange='getnext(this.options[this.selectedIndex].value, this.id)' id='statePulldown'>
                        <option value='Select'>Choose a State</option>
                    </select>
                </form>
            </div>  
        </div>
        <div data-role="footer">
            <h4>Page Footer</h4>
        </div>
    </div>
    </body>
    </html>

    I got the AJAX working.  It turned out I had GET instead of "GET" in the ajax call.
    What makes it maddening was I cut and pasted it from somewhere on the net that said it worked.  Argh.
    HOWEVER...
    Now I have another problem.  I'm trying to set up a cascading dropdown and I have data flowing back in JSON form and it LOOKS like it's populating the SELECT, but when it's done the length of the SELECT is still 1.
    Any ideas?  I've put JavaScript alerts in to show you and I have two different ways of populating the dropdown and neither worked -- nor did the old fashioned "target.options[i] = new Option(opttext,optvalue )".
    HELP!
    Again, the link is:  http://kierpro.com/aatest/index.html

  • WORKING example of BlazeDS with Flex 3 and FlexBuilder

    Can someone point me to an actual working example with BlazeDS used with Flex 3 and Eclipse?
    The examples on livedocs are broken or imcomplete. Others work to varying degrees but fail at some point.
    What I'd like to see is the following:
    1. How to create a project using
         a. Flex 3.0
         b. BlazeDS
         c. Eclipse - FULL project creation and deployment instructions.
         d. An example where the project is NOT created within the BlazeDS webapp that comes with the BlazeDS/Tomcat combo.
         e. An example where the ENTIRE project can be compiled and deployed to Tomcat in one shot.
         f.  An example where a DB can he altered using standard CRUD methods with the display displaying updated records without and event being used to
             refresh the view of the records.
    This shouldn't be too much to ask if Flex is to be expected to be taken seriously in data-driven applications. I've looked all over the web for weeks for something likethis and have come up with nothing. I don't need Spring or Hibernate at this point. Any help would be greatly appreciated as I'm working on a proof-of-concept at this time and the pressure is mounting to come up with something.
    Thanks!

    here is some stuff I wrote while back(they both have recorded video you can watch);
    http://ledtechdesign.com/2009/02/blazeds-tutorial-part-i-simple-remoting/
    http://ledtechdesign.com/2009/02/tutorial-blazeds-simple-remoting-part-ii-flex/

  • Online Store Complete Working Example

    Hi
    I have installed the packaged app, Online Store. However, it does not illustrate how payments are processed and how inventory is managed. Does anyone have a working example (with code) of a complete online store?
    Kind regards
    Jov

    Hi Jov,
    We've developed an online store and integrated it with Paypal Standard Payments.
    Demo here:
    http://www.apexskins.com/pls/apex/f?p=658
    Paypal intergration here:
    http://www.apexskins.com/pls/apex/f?p=653
    I hope this helps.
    Andrew
    http://www.apexskins.com

  • Looking for working example using javafx.builders.HttpRequestBuilder

    Hi,
    Is there any working example using javafx.builders.HttpRequestBuilder and javafx.io.http.HttpRequest to communicate with application server?
    Thanks in advance.
    LD

    Hi,
    Is there any working example using javafx.builders.HttpRequestBuilder and javafx.io.http.HttpRequest to communicate with application server?
    Thanks in advance.
    LD

  • Searching for working example of Skin & Hair color detection via Face Model

    Hi all,
    Could anyone point me to a working example (preferably with source code available) which uses the get_SkinColor or get_HairColor functions from the HDFace functionality?
    I've been calling these functions after building a facemodel and they seem to be returning a successful HResult while at the same time changing the UINT32 passed by reference to zero, regardless of the hair color presented to the Kinect. Is there a project
    which shows the correct use of these functions publicly available?
    Thanks!

    Hi Mac0014,
    Check this out:
    My Kinect Told Me I Have Dark Olive Green Skin
    Sr. Enterprise Architect | Trainer | Consultant | MCT | MCSD | MCPD | SharePoint TS | MS Virtual TS |Windows 8 App Store Developer | Linux Gentoo Geek | Raspberry Pi Owner | Micro .Net Developer | Kinect For Windows Device Developer |blog: http://dgoins.wordpress.com

  • Does somebody has working example how retrieve ALL message ids from queue

    hello,
    i'm having problems retrievieng all message id's from queue using APPQ_MIB. Point
    is that i can't get cursor variable work. Somebody possibly has working example
    or knows how it is done in qmadmin? I'm using Tuxedo 8.0.

    The default CURSORHOLD time is 120 seconds. Are you making your second
    request within that time? And make sure that you change TA_OPERATION to
    GETNEXT.
    Janis Kovalevskis wrote:
    Actually there is no debugging required it is enough to use ud32. I created sample
    file (see attach), where is what i'm sending to MIB. For Part 1 everything is
    fine- i get first ~200 message id's and cursor variable, but when i send Part
    2 (substituting TA_CURSOR with returned value) nothing happens. Returned buffer
    is something like:
    TA_ERROR     0
    TA_MORE     0
    TA_OCCURS     0
    TA_CLASS     T_APPQMSG
    You can even send cursor variable TA_CURSOR like: "..TMIB0: 0x99999999" and same
    response will be returned.
    It seems T_APPQMSG is just ignoring those cursors and thats all. Any ideas?
    Scott Orshan <[email protected]> wrote:
    I think it would be easier for us to debug what you have than to write
    a
    new example from scratch. Please post a code sample that is not working
    for you. Make sure you use GETNEXT is you are using the cursor.
         Scott Orshan
    Janis Kovalevskis wrote:
    hello,
    i'm having problems retrievieng all message id's from queue using APPQ_MIB.Point
    is that i can't get cursor variable work. Somebody possibly has workingexample
    or knows how it is done in qmadmin? I'm using Tuxedo 8.0.------------------------------------------------------------------------
    -- Part 1 --
    SRVCNM     .TMIB
    TA_CLASS     T_APPQMSG
    TA_OPERATION     GET
    TA_LMID     SITE1
    TA_QMCONFIG     /ora4/iia/cfg/QUE
    TA_APPQSPACENAME     QSPACE
    TA_APPQNAME     STIP_ISS_SAF
    TA_CURSORHOLD     300
    -- Part 2 --
    SRVCNM     .TMIB
    TA_CLASS     T_APPQMSG
    TA_OPERATION     GETNEXT
    TA_CURSOR     ..TMIB0: 0x12345678
    TA_CURSORHOLD     300

  • Fetch data using structure with full working example

    does any body tell me how to fetch data using structure with full working example
    the structure name is RSTXT and the field is TXLINE
    the data in the form of text is entered from the functional side using t-code ME52N
    from there i have to fetch the data
    in smartform or in report

    using this code to get text from ME52N  this is a structure still not getting output  
    DATA:BEGIN OF TA_ROW occurs 0,
          TXZ01(1000) TYPE C,
          END OF TA_ROW.
      DATA:BEGIN OF IT_ROW OCCURS 0,
          TXZ01(1000) TYPE C,
          END OF IT_ROW.
       DATA: thread LIKE thead.
       DATA: headerid TYPE char24.
       DATA: it_text LIKE tline OCCURS 0 WITH HEADER LINE.
       data:wa_banfn like eban-banfn.
       thread-tdid = 'B01'.
       thread-tdname = headerid.
       thread-tdobject = 'EBAN'.
         select txz01 from eban into corresponding fields of table ta_row
          where banfn = wa_banfn.
       headerid = '  '.
       CALL FUNCTION 'READ_TEXT'
         EXPORTING
      CLIENT                        = SY-MANDT
           id                            = thread-tdid
           language                      = sy-langu
           name                          = thread-tdname
           object                        = thread-tdobject
      ARCHIVE_HANDLE
                                    = 0
      LOCAL_CAT                     = ' '
    IMPORTING
      HEADER                        =
         TABLES
    lines                         = it_text
        EXCEPTIONS
          id                            = 1
          language                      = 2
          name                          = 3
          not_found                     = 4
          object                        = 5
          reference_check               = 6
          wrong_access_to_archive       = 7
          OTHERS                        = 8.
         LOOP AT it_text.
         CLEAR ta_row.
       BREAK-POINT.
      FROM THIS POINT TEXT IS COMING
         ta_row-txz01 = it_text-tdline.
         APPEND ta_row TO it_row.
         ENDLOOP.

  • Overriding getColumnClass: A working example, if you would, please?

    I've read that using an @Override of the getColumnClass method is usefull when you
    have a table full of ints or bytes and you want to avoid using code like this extensively:
    Integer.valueOf(jTable1.getValueAt(0, 0).toString());I've got a snippet here that shows the actual code used in the framework:
        public Class<?> getColumnClass(int columnIndex) {
         return Object.class;
        }but when I put it into a working example:
    package tableclass;
    import java.awt.BorderLayout;
    import javax.swing.JFrame;
    import javax.swing.JScrollPane;
    import javax.swing.JTable;
    public class EditorTest extends JFrame
            JTable table = new JTable(10, 5){
                @Override
        public Class<?> getColumnClass(int columnIndex) {
         return Object.class;
        public EditorTest()
            table.setPreferredScrollableViewportSize(table.getPreferredSize());
            JScrollPane scrollPane = new JScrollPane( table );
            getContentPane().add( scrollPane, BorderLayout.SOUTH);
        public static void main(String[] args)
            EditorTest frame = new EditorTest();
            frame.setDefaultCloseOperation( EXIT_ON_CLOSE );
            frame.pack();
            frame.setLocationRelativeTo( null );
            frame.setVisible(true);
    }I have no idea what to put in the override to make it usefull.
    could someone please give me an idea of what to put here?

    camickr wrote:
    I read the tutorial,Then where is your SSCCE that shows you overriding the getColumClass() method from the example you found in the tutorial.
    I scoured google for getColumnClassI never said anything about Google. I suggested you search these forums.
    If someone had suggested overriding the getValueAt method to return an int or a byte insteadBecause that is not the way to do it and that is not the way the tutorial example works. The tutorial stores different Object types, Data, Boolean, etc. The question you asked was not about storing data it was about overriding the getColumnClass(...) method.
    If you would have posted the code from the tutorial and asked a specific question about the code, then you would get an explanation.
    But the code you posted gave no indication whatsoever that you bothered to take the time to read the tutorial or search the forum, because the code you posted looked nothing like anything found in the tutorial or anything that you could have found in the forum.
    I was under the impression that overriding this method would let me return data primitives without having to parse or cast them out.Well, that is not what your question asked. We are not mind readers.
    Your question asked for an example of how to override a specific method. Why should we waste time creating an example, when the tutorial and forums are full of examples?Apologies.

  • MQ + OpenLdap: Any working example of LDAP configuration?

    MQ + OpenLdap: Any working example of [LDAP configuration], [LDIF initial data] and [imobjmgr addTopicFactory/addTopic command] files ?
    I'm using Sun MQ3.5 + OpenLdap2.2.20 as jndi remote binding mechanism.
    I've unsuccessfuly tryed to add a Topic Factory!
    Running the command
         imqobjmgr -i add_ldap_topic_factory.poperties
    I get such an exception:
         javax.naming.OperationNotSupportedException:
         [LDAP: error code 53 - no global superior knowledge];
         remaining name 'cn=myTopicConnectionFactory'
    This is the test configuration adopted using rootdn user to write to LDAP repository:
    #slapd.conf
    include /usr/local/etc/openldap/schema/core.schema
    database     bdb
    suffix          "dc=imq,dc=com"
    rootdn          "cn=Manager,dc=imq,dc=com"
    rootpw          secret
    directory     /usr/local/etc/openldap/var/openldap-data
    index     objectClass     eq
    #test.ldif
    dn: dc=imq,dc=com
    objectClass: dcObject
    objectClass: organization
    dc: imq
    o: imq
    #add_ldap_topic_factory.poperties
    version=2.0
    cmdtype=add
    obj.type=tf
    obj.lookupName=cn=myTopicConnectionFactory
    obj.attrs.imqAddressList=mq://localhost:7676/jms
    objstore.attrs.java.naming.factory.initial=com.sun.jndi.ldap.LdapCtxFactory
    objstore.attrs.java.naming.provider.url=ldap://localhost:389/o=imq
    objstore.attrs.java.naming.security.principal=cn=Manager,dc=imq,dc=com
    objstore.attrs.java.naming.security.credentials=secret
    objstore.attrs.java.naming.security.authentication=simple
    Thanks for any suggestion,
    Silvano

    Agreed.
    I've been wanting to test the steps and write a tech article on this
    and post it to somewhere on sunsolve.sun.com but have not had
    time yet.
    In any case, the instructions Ken-shi gave are below including
    the 3 files (etang.ldif objectstore.properties slapd.conf). Not sure
    how messy this posting can get due to size of files.
    I'd much rather point you to a sunsolve article but don't want
    to make you wait. When I do post the sunsolve article, this thread
    will be updated with a ptr to it.
    ===Begin instructions===
    Attached please see my working configuation files.
    1.Modify your OpenLdap configuration. (see slapd.conf)
    start OpenLdap: ./slapd
    2.Modify you initial data.( see etang.ldif)
    load initial data: ldapadd -x -D "cn=Manager,dc=etang,dc=com" -W -f
    etang.ldif
    3.ObjectStore properties ( see objectstore.properties )
    create your object store with "Administration" GUI on windows;
    while creating destinations or connection factories, be sure that the
    lookup names start with "cn=".
    ===End instructions===
    ===Begin etang.ldif===
    dn: dc=etang,dc=com
    objectClass: dcObject
    objectClass: organization
    dc: etang
    o: Etang Corporation
    description: The etang corporation
    dn: cn=Manager,dc=etang,dc=com
    objectClass: organizationalRole
    cn: Manager
    description: Directory Manager
    dn: o=IMQ,dc=etang,dc=com
    objectClass: organization
    o: IMQ
    dn: ou=imqusers,o=IMQ,dc=etang,dc=com
    objectClass: organizationalUnit
    ou: imqusers
    dn: cn=admin,ou=imqusers,o=IMQ,dc=etang,dc=com
    objectClass: person
    cn: admin
    sn: admin
    userPassword: admin
    dn: cn=guest,ou=imqusers,o=IMQ,dc=etang,dc=com
    objectClass: person
    cn: guest
    sn: guest
    userPassword: guest
    ===End etang.ldif===
    ===Begin objectstore.properties===
    java.naming.provider.url ldap://10.1.0.195:389/o=IMQ,dc=etang,dc=com
    java.naming.factory.initial com.sun.jndi.ldap.LdapCtxFactory
    java.naming.security.principal cn=admin,ou=imqusers,o=IMQ,dc=etang,dc=com
    java.naming.security.authentication simple
    java.naming.security.credentials admin
    ===End objectstore.properties===
    ===Begin slapd.conf===
    # See slapd.conf(5) for details on configuration options.
    # This file should NOT be world readable.
    include          /usr/local/openldap/etc/schema/core.schema
    include /usr/local/openldap/etc/schema/cosine.schema
    include /usr/local/openldap/etc/schema/inetorgperson.schema
    include /usr/local/openldap/etc/schema/dyngroup.schema
    include /usr/local/openldap/etc/schema/java.schema
    include /usr/local/openldap/etc/schema/nis.schema
    include /usr/local/openldap/etc/schema/misc.schema
    # Define global ACLs to disable default read access.
    # Do not enable referrals until AFTER you have a working directory
    # service AND an understanding of referrals.
    #referral     ldap://root.openldap.org
    pidfile          /usr/local/openldap/var/run/slapd.pid
    argsfile     /usr/local/openldap/var/run/slapd.args
    # Load dynamic backend modules:
    # modulepath     /usr/local/openldap/libexec
    # moduleload     back_bdb.la
    # moduleload     back_ldap.la
    # moduleload     back_ldbm.la
    # moduleload     back_passwd.la
    # moduleload     back_shell.la
    # Sample security restrictions
    #     Require integrity protection (prevent hijacking)
    #     Require 112-bit (3DES or better) encryption for updates
    #     Require 63-bit encryption for simple bind
    # security ssf=1 update_ssf=112 simple_bind=64
    # Sample access control policy:
    #     Root DSE: allow anyone to read it
    #     Subschema (sub)entry DSE: allow anyone to read it
    #     Other DSEs:
    #          Allow self write access
    #          Allow authenticated users read access
    #          Allow anonymous users to authenticate
    #     Directives needed to implement policy:
    # access to dn.base="" by * read
    # access to dn.base="cn=Subschema" by * read
    # access to *
    #     by self write
    #     by users read
    #     by anonymous auth
    # if no access controls are present, the default policy
    # allows anyone and everyone to read anything but restricts
    # updates to rootdn. (e.g., "access to * by * read")
    # rootdn can always read and write EVERYTHING!
    access to * by * write
    # ldbm database definitions
    database     bdb
    suffix          "dc=etang,dc=com"
    rootdn          "cn=Manager,dc=etang,dc=com"
    # Cleartext passwords, especially for the rootdn, should
    # be avoid. See slappasswd(8) and slapd.conf(5) for details.
    # Use of strong authentication encouraged.
    rootpw          secret
    # The database directory MUST exist prior to running slapd AND
    # should only be accessible by the slapd and slap tools.
    # Mode 700 recommended.
    directory     /usr/local/openldap/var/openldap-data
    # Indices to maintain
    index     objectClass     eq
    ===End slapd.conf===

  • Any working example or VersionedBacking map?

    Appreciate if anyone has the working example on VersionedBackig Map? How can i retrieve list of objcts (EX:Result set returns say 100 records, and each row is an object). Does tangosol has any api or have to implement java implementation?

    Hi Santharam,
    Attached please find an example xml configuration file that uses a Versioned Near Distributed Write-Behind caching strategy. Let me know if this is what you are looking for.
    I will be posting a more detailed example this week that will include a small web application front end to this configuration file.
    Later,
    Rob Misek
    Tangosol, Inc.
    Coherence: Cluster your Work. Work your Cluster.<br><br> <b> Attachment: </b><br>ver-near-write-behind.xml <br> (*To use this attachment you will need to rename 31.bin to ver-near-write-behind.xml after the download is complete.)

  • Working example of AXI Ethernet in Zynq PL

    Does anyone have a working example of setting up Xilinx Linux to use an AXI Ethernet IP embedded in Zynq PL? We are attempting to connect the Zynq to an AVNET ISM FSM card with a DP83640 PHY onboard. We have set Linux up using the following device tree and can communicate with the PHY using MDIO. However transmitting packets does not work.
    axi_ethernet_0_dma: axi-dma@40400000 {
    axistream-connected = <&axi_ethernet_0_eth_buf>;
    //axistream-control-connected = <&axi_ethernet_0_eth_buf>;
    compatible = "xlnx,axi-dma-6.03.a","xlnx,axi-dma-1.00.a";
    //compatible = "xlnx,axi-dma";
    interrupt-parent = <&ps7_scugic_0>;
    interrupts = <0 58 4 0 59 4>;
    reg = <0x40400000 0x10000>;
    dma-channel@40400000 {
    compatible = "xlnx,axi-dma-mm2s-channel";
    interrupts = < 0 58 4 >;
    dma-channel@40400030 {
    compatible = "xlnx,axi-dma-s2mm-channel";
    interrupts = < 0 59 4 >;
    axi_ethernet_0_eth_buf: network@41000000 {
    axistream-connected = <&axi_ethernet_0_dma>;
    axistream-control-connected = <&axi_ethernet_0_dma>;
    clock-frequency = <25000000>;
    clock-names = "ref_clk";
    clocks = <&clkc 0>;
    compatible = "xlnx,axi-ethernet-1.00.a";
    device_type = "network";
    interrupt-parent = <&ps7_scugic_0>;
    interrupts = <0 57 4>;
    local-mac-address = [00 0a 35 00 00 01];
    reg = <0x41000000 0x40000>;
    phy-handle = <&phy1>;
    xlnx,avb = <0x0>;
    xlnx,enable-lvds = <0x0>;
    xlnx,mcast-extend = <0x0>;
    xlnx,phy-type = <0x0>;
    //xlnx,phyaddr = <0x1E>;
    xlnx,rxcsum = <0x2>;
    xlnx,rxmem = <0x8000>;
    xlnx,rxvlan-strp = <0x0>;
    xlnx,rxvlan-tag = <0x0>;
    xlnx,rxvlan-tran = <0x0>;
    xlnx,simulation = <0x0>;
    xlnx,stats = <0x1>;
    xlnx,temac-addr-width = <0xc>;
    xlnx,txcsum = <0x2>;
    xlnx,txmem = <0x8000>;
    xlnx,txvlan-strp = <0x0>;
    xlnx,txvlan-tag = <0x0>;
    xlnx,txvlan-tran = <0x0>;
    //xlnx,type = <0x0>;
    mdio {
    #address-cells = <1>;
    #size-cells = <0>;
    phy1: phy@16 {
    reg = <16>;
    } ;

    Hello,
    The example form application note 1082 works fine, but bare in mind to use proper SFP-RJ45 adapter. Our tests have shown that this application note doesn't work with optical or copper sfp, and also with some adapters. Newly bought 1000Base-T adapter works perfectly.
    Kind regards
    Piotr Zdunek
    Warsaw University of Technology

Maybe you are looking for

  • How do I find the IP address of a wireless printer (via bonjour) on my Airport Extreme?

    I can see the MAC address of my macbook and the printer using the AirPort Utility, but I can't find the actual IP. Attempting to connect through the printer utility puts:http://hp88388e.local./ in the URL, but the page just hangs. isn't there a numer

  • Is it possible to sort an interactive report with a default column ?

    Hi, I have a nice request used with an interactive report. select "ID", "DATE_CREATION", "SERVICE", "RESPONSABLE", "NATURE_CONTRAT", "SOCIETE", "DATE_DEBUT", "DATE_FIN", "DELAI_RENOUVELLEMENT" from "#OWNER#"."CONTRATS_MAINTENANCE" order by DATE_FIN d

  • Photoshop Elements 2.0 Help Please!

    I just installed Photoshop Elements 2.0 and when I go to open it I get an error message saying that the program "Could not initialize Photoshop Elements because the scratch disks are full. This is definately NOT because of my computer's processing po

  • How to run multiple Thread using Scheduler's in 1.5

    Hi, I have a scenario, in which I have to run a Thread at every 15 minutes, If the first Thread is not Finished in 15 min then new Thread has to start. Currently I implemeted with java 1.5 schedulers, but the problem is if my first Thread is taking m

  • Save command has suddenly stopped working

    A few days ago, I was unable to use the save command when accessing a folder for a website that resides on a network drive. Dreamweaver only works now if the local folder is on the same computer as the program. Could a MS update or something similar