A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Find requested source form
Joined: Jul 17, 2005
May 18, 2006 05:21:00
My scenario is,
I have one
which has two forms and the forms contains similar data. the submit action for the forms are the JSP itself. is there any way how to know from which form posted the data?
<form name="1" action="my.jsp">
<form name="2" action="my.jsp">
Thanks in advance.
Joined: Nov 24, 2005
May 18, 2006 05:33:00
Insert a hidden tag in each, with a different value.
<input type="hidden" name="which" value="form1"/>
and another one for form2.
All roads lead to JavaRanch
subject: Find requested source form
Loading multiple forms in single jsp
Need Help with JSP & Servlet
How to merge two forms in a single jsp
Encrypting URL in Address Bar
Multiple form with one action
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014