hi ricky
the button needs to be something like this
input type="button" value="Add" onclickButton ="javascript:submitForm('ADD')"
and in the heaD tag of your html do this
< script
function submitForm(ac)
{
document.formName.action.value=ac;
document.formName.submit();
}
< script
and in your servlet get the paramter value and forward it to the appropriate servlet
String actionString = request.getParameter("action");
if (actionString.equals("ADD")) {
AddToShoppingCart(request, aPW);
}