This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
I need to generate the number of textbox,listbox and button dynamically based on user selection. Means Suppose user has select number 3 then in next page 3 text box, 3 list box and 3 button should be displayed.
Did you read the FAQ entry I linked? I think it's a pretty good introduction.
If you only have 10 or so fields of different things (name, address, phone, etc.) it may be easier to have all the fields on the JSP and conditionally display them. If it were the same kinds of things, like line items on an invoice, indexed properties may make more sense.