<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <title>Insert title here</title> </head> <body> <form ID="Form2" action="FirstServlet" method="post"> <input type="submit" value="Push me for first servlet" /> </form> <form id="Form3"> action="SecondServlet" method="post"> <input type="submit" value="Push me for second servlet" /> </form> </body> </html>
2 Forms in 1 html file not working in eclipse
Page 1 of 13 Replies - 393 Views - Last Post: 03 February 2011 - 11:47 PM
#1
2 Forms in 1 html file not working in eclipse
Posted 03 February 2011 - 11:33 AM
For whatever reason eclipse doesn't like that I'm using 2 forms in 1 file 2 call two different servlets. Is this common how do I fix it I've tried to google the issue and read that what I'm doing is fine so I'm not getting the problem. Thanks guys
Replies To: 2 Forms in 1 html file not working in eclipse
#2
Re: 2 Forms in 1 html file not working in eclipse
Posted 03 February 2011 - 11:53 AM
Hi,,,
try this code..
and the FirstServlet and the SecondServlet should be . Java files either servlets or class files
Thankyou
for more ask
try this code..
<head> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <title>Insert title here</title> </head> <body> <form ID="Form2" action="FirstServlet" method="post"> <input type="submit" value="Push me for first servlet" /> </form> <form id="Form3" action="SecondServlet" method="post"> <input type="submit" value="Push me for second servlet" /> </form> </body> </html>
and the FirstServlet and the SecondServlet should be . Java files either servlets or class files
Thankyou
for more ask
#3
Re: 2 Forms in 1 html file not working in eclipse
Posted 03 February 2011 - 12:38 PM
lol it worked but how did you do that? What did you change in my code I can't tell
#4
Re: 2 Forms in 1 html file not working in eclipse
Posted 03 February 2011 - 11:47 PM
Page 1 of 1
|
|

New Topic/Question
Reply



MultiQuote





|