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
I agree. Here's the link:
subject: Find requested source form
Need Help with JSP & Servlet
Multiple form with one action
Encrypting URL in Address Bar
How to merge two forms in a single jsp
Loading multiple forms in single jsp
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2013