Hi varun,
you should probably attend web dynpro abap courses or go deeper in all the content provided in scn regarding web dynpro. You'll find a lot of howtos that would help you to sort things out! I doubt we can help you here given the question you ask are too wide to be answered in a forum post.
Regards