File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Java SE 8 for the Really Impatient
this week in the
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
Encrypting URL in Address Bar
Multiple form with one action
Need Help with JSP & Servlet
Loading multiple forms in single jsp
How to merge two forms in a single jsp
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014