I have 4 submit buttons in my jsp page and on click of each button i generate different report.on submiting i want to pass a value for each report to a single servlet.and there i will check that if value of parameter is this then call that method i this then that.
One way to do this is to have four radio buttons with the same name for different kinds of reports, and one submit button. When one of the radio buttons will be selected on a form, that value will be sent to a servlet whose path should be specified in the action attribute of the form. In the servlet the value can be retrieved using the request.getParameter(name of the radio button)method.
There's really no need to needlessly complicate the form with extra radio buttons. Again, it's as simple as assigning values to the submit buttons. [ November 16, 2008: Message edited by: Bear Bibeault ]