Question: I am working on a web application that is used to print user receipts based on the supplied receipt number. I want to enhance it in such a way that when i supply receipt numbers from 1 to 100 it will print all 100 receipts. Is there any ways in Java to implement this. How can i implement this in Java ?

Answer: 
Using a framework saves you a ton of time and helps you to organise your app mroe logically.

If the app is small then frameworks like CodeIgniter or Kohana are ideal.

If you are building a bigger app that needs to scale the Symfony or possiby Zend are the ones to look at.

If you were to start your app in Symfony you would instanly get:

* url rewriting using routes
* a form framework for handling everything to do with your web forms
* internationalisation and localisation
* emailing
* caching
* admin area generator, to help you add data quickly
* unit testing framework

Plus the whole framework is extendable and custmisable to suit your needs.

Starting without a framework you'd have to write all of this yourself. Or integrate several disparate open source modules.

Hope this helps.
I`ve used Yii for a few projects. Need to say its extensions (backvendor <http://www.yiiframework.com/extension/backvendor/> and bootstrap <http://www.yiiframework.com/extension/bootstrap/>) really save time on the first stages of development