Hey guys ... The school year has started again, so that means I'll probably be back here!
I'll cut to the chase: I have two forms in a single .jsp file. I'd like to make it so that if I hit one button, it'll do some java. If I hit the other one, it'll do the other stuff. Right now, whenever I hit one button, it does everything.
Here's what the .jsp file looks like so far. At the bottom of the page I'll "highlight" where I think I need to work.
Here is the first form:
I need to make it so that when I hit that submit button, only this code here is called:
If you guys want any more information, I'll gladly give it. Been working on this for a while now and just can't seem to get anywhere.
posted 6 years ago
Going to make a separate reply here since I think this will help clear up what I need it to do. For each of the form buttons, I would need something like this.
Notice that the very first line gets the parameter name. However, from the little reading I've done, request.getParameter won't work for forms - only inputs.