pass paramters between jsp's
I have one combo box in the jsp page. on selecting an option, i want to call onchange method and process the selected index in a jsp/servlet with database locally and again redirect the resulted values to the current jsp page.
How to achieve the above task.
Please help
thanks
html:select property="comboboxName" styleClass="formfield" onchange='getCity()'>
</html:select>
<script language='javascript' type='text/javascript'>
function getCity() {
// write ur code
}
=================
my answer is
function getCity() {
document.mainform.action="pmTimeSheet.do?";
document.mainform.submit();
}
in the action class u need to filterout the required data from whole data
so u need to call action class in the function as shown in the above.