This week's giveaway is in the EJB and other Java EE Technologies forum. We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line! See this thread for details.
I have written a JSP for File Upload which has a form element <"FORM ENCTYPE="multipart/form-data"> <input type="submit" name="option" value="upload"> <input type="submit" name="option" value="check-in"> </form> the problem is now. i want to check which button is clicked. by request.getPArameter("option"); however. it does not return any value since the enctp is mulipart/form. Can anyone please let me know how can i check which button is clickd? Reggards,
Originally posted by srilatha reddy: within jsp scriplet write request.setAttribute("todo","upload");
in onclick event
That would be pointless. The onclick event is fired on the client as a Javscript event. Any scriptlet "embedded" in it would have been executed on the server before the page was even sent to the browser. [ March 01, 2006: Message edited by: Bear Bibeault ]