Friday, October 5

difference between RTGS and NEFT fund transfer

1. What is RTGS System?

Ans The acronym "RTGS" stands for Real Time Gross Settlement. RTGS system is a funds transfer mechanism where transfer of money takes place from one bank to another on a "real time" and on "gross" basis. This is the fastest possible money transfer system through the banking channel. Settlement in "real time" means payment transaction is not subjected to any waiting period. The transactions are settled as soon as they are processed. "Gross settlement" means the transaction is settled on one to one basis without bunching with any other transaction. Considering that money transfer takes place in the books of the Reserve Bank of India, the payment is taken as final and irrevocable.

2 How RTGS is different from Electronic Fund Transfer System (EFT) or National Electronics Funds Transfer System (NEFT)?

Ans EFT and NEFT are electronic fund transfer modes that operate on a deferred net settlement (DNS) basis which settles transactions in batches. In DNS, the settlement takes place at a particular point of time. All transactions are held up till that time. For example, NEFT settlement takes place 6 times a day during the week days (9.30 am, 10.30 am, 12.00 noon. 1.00 pm, 3.00 pm and 4.00 pm) and 3 times during Saturdays (9.30 am, 10.30 am and 12.00 noon). Any transaction initiated after a designated settlement time would have to wait till the next designated settlement time. Contrary to this, in RTGS, transactions are processed continuously throughout the RTGS business hours.

Source(s):

Reserve Bank of India
http://www.rbi.org.in/scripts/FAQView.aspx?Id=65

Thursday, October 4

Textbox allows only numbers: javascript



//Html/ Jsp textbox which only allow numbers
//only numbers allowed in textbox

function numbersOnly(myfield, e)
      {
            var key;
            var keychar;
            if (window.event)
              key = window.event.keyCode;
            else if (e)
              key = e.which;
            else
              return true;
            keychar = String.fromCharCode(key);
           
            // control keys
            if ((key==null) || (key==0) || (key==8) ||
               (key==9) || (key==13) || (key==27) )
              return true;
           
            // numbers
            else if ((("0123456789.").indexOf(keychar) > -1))
              return true;
            // decimal point jump
            else
              return false;
   }

// JSP code 

use the above javascript function @ onKeyPress event like below


<s:textfield name="textbox1" id=" textbox1" maxlength="20" onkeypress="return numbersOnly(this, event);" />

// <s:textfield> is a struts tag. Html <input> tag can also be used.

Check textbox for email format : javascript



-- Check html/ jsp textbox for email address format  --


//Use this function in javascript.
//Call the function @ textbox onChange event

function checkemail(email,errorMail)
      {          
            var testresults;
            var str=document.getElementById(email).value;
            var filter=/^.+@.+\..{2,3}$/;
            if (filter.test(str)){
                 document.getElementById(errorMail).style.display="none";
                 testresults=true;
            }
            else
            {    
                  document.getElementById(errorMail).style.display="block";
                  testresults=false;
            }
            return testresults;
}

Using Bind Variables in query



//Following code helps to use bind variables in java and Oracle query

import org.hibernate.SessionFactory;

private SessionFactory sessionFactory;

public void method() {
      Session session = null;
      String  studentId = “R16”;
            try {
            session = sessionFactory.openSession();
String sql_select_query = "select name, class, age from class_table where id = :studentId";
            Query query = session.createSQLQuery(sql_select_query);
            query.setString("studentId", studentId);
                  List<Object[]> list = query.list();
      }          
 }

//Use catch or finally block with the above code
//Also use hibernate .jar file to implement above code