Skip to main content


Showing posts from July, 2014

Best Practice of URL Redirection in Spring Controllers

Example :

XYZ Class is a Controller and has URL mapping = "parent"
Controller XYZ has method-1 with URL mapping = "first"
Controller XYZ has method-2 with URL mapping = "second"

if you want to redirect from method-1 to method-2, normally we write redirect URL as


Here UrlBasedViewResolver does the redirection "relative to current servlet context". It works fine in INTRA calling between methods of controller.But it may surprise when INTER calling between methods of other controllers.

But if you redirect like below


Here  URL that starts with a slash(/) will be interpreted as relative to the web application root, i.e. the context path will be pre-appended to the URL.It is default behavior in UrlBasedViewResolver.

Benefit of this is that INTER calling between methods of other controllers becomes easier.…

Central Bank's Terms

Repo Rate/Repurchase Rate (RT) -

It is the rate at which bank borrows funds from RBI with the help of securities to meet demand they are facing for loans.
It injects liquidity in economy

Reverse Repo Rate/Repurchase Rate (RRT) -

It is the rate at which RBI borrows fund from Bank to reduce money floating in banking system.
It absorbs liquidity from economy.

Cash Reserve Ratio (CRR) -

It refers to amount of deposits banks have to maintain in RBI.

Statutory Liquidity Ratio (SLR) -

It refer to amount that banks require to maintain in form of GOLD or goverment approved securities(bond/shares).
RBI always determines the percentage of SLR.

Bank Rate (BR) -

It is rate of interest at which RBI lends money to banks.

Call Rate/Overnight Rate (Cl/OR) -

It rate at which bank lends or borrows money from each other for daily basis or short-term requirment in overnight market.


Understanding The Union Budget : Part-I

What is Union Budget?  It is nothing but the Annual Financial Statement presented by Central government in Parliament. It shows receipt and expenditure of government in financial year(1 April-31 March).
How can government get Money for Budget? Government too have its account.We can describe it in three parts.
1. Consolidated Fund - - revenue received by taxation and other
- loan raised by government
- recoveries of load granted by government
- expenditure incurred from this fund
- parliamentary authorization required

 2. Contingency Fund -  
- emergency or unexpected or unforeseen or urgent outflows such as economic crisis,disaster
- held by the finance secretary on behalf of the president of India

3.  Public Account -
- money received from transactions such as money raised from government schemes e.g Provident Fund,Saving Scheme
- government acts as banker
- government authorization not required
- in layman's term, money received from public is kept in this account and respective …