Subject: RE: Form method always a get.
Did that already with the same result. I do use netbeans... I don't know if
that makes a difference.
A.
--- Budi Kurniawan [EMAIL PROTECTED] wrote:
Try adding a Submit button to click to submit. If the method is post
by submitting this way then there's
-
From: Yansheng Lin [mailto:[EMAIL PROTECTED]
Sent: Thursday, May 06, 2004 5:52 PM
To: 'Tomcat Users List'
Subject: RE: Form method always a get.
As per previous post, use a submit button. You are using
links, that's why
your servlet thinks it's a GET. Is button out of question
for you
What is your environment ? (os, tomcat, apache/iis, jdk)
Find out if the request that reaches your server is a POST:
- Look for the request in the access log.
- use an ethernet sniffer to see what is coming.
after this test you know if you have to look at the server
or the client side.
Message-
From: Yansheng Lin [mailto:[EMAIL PROTECTED]
Sent: Thursday, May 06, 2004 5:52 PM
To: 'Tomcat Users List'
Subject: RE: Form method always a get.
As per previous post, use a submit button. You are using
links, that's why
your servlet thinks it's a GET. Is button out of question
: RE: Form method always a get.
???
He says that the error was the same when using submit buttons
and you say he should use it.
AFAIK your explanation is wrong.
If you submit a form with javascript (even if triggered by a link)
it uses (should use ?) the method type that is given in the form
You're probably missing the closing quote after the method name:
form method=post
Rgds,
Budi
Author of How Tomcat Works
-Original Message-
From: Adam Gruszynski [mailto:[EMAIL PROTECTED]
Sent: Wednesday, May 05, 2004 12:52 PM
To: Tomcat Users List
Subject: Form method always a get.
Thanks for answering. The following is what I'm trying to
execute:
body
link rel=stylesheet href=include/styles.css
type=text/css
script language=JavaScript
function preSubmit(thePage) {
document.welcomeform.actionelement.value=thePage;
document.welcomeform.submit();
}
/script
script
PM
To: Tomcat Users List
Subject: RE: Form method always a get.
Thanks for answering. The following is what I'm trying to
execute:
body
link rel=stylesheet href=include/styles.css
type=text/css
script language=JavaScript
function preSubmit(thePage) {
document.welcomeform.actionelement.value
.
Good luck.
budi
Author of How Tomcat Works
-Original Message-
From: Adam Gruszynski [mailto:[EMAIL PROTECTED]
Sent: Wednesday, May 05, 2004 1:03 PM
To: Tomcat Users List
Subject: RE: Form method always a get.
Thanks for answering. The following is what I'm trying
to
execute
Then, it could be your servlet/JSP page.
Budi Kurniawan
Author of How Tomcat Works
-Original Message-
From: Adam Gruszynski [mailto:[EMAIL PROTECTED]
Sent: Wednesday, May 05, 2004 1:13 PM
To: Tomcat Users List
Subject: RE: Form method always a get.
Did that already with the same
10 matches
Mail list logo