> I Still have problem with servlet invoked as action in a <FORM
> METHOD=POST.... If I replace POST by GET I am OK but the problem is
> that if am filling secret data such as password fields all i am
> typing is browsed in the URL window of that Servlet . If i put POST
> instead of GET i get message HTTP 405 "page cannot be printed"
You also have to change your servlet. Instead of overriding the
doGet method, you have to overide the doPost method. Unless you've
made this change to your code, when you try to POST, the servlet engine
will look for the doPost method and not find it, and hence you get
error 405, "page cannot be printed."
Frankly, I override the service() method. Various people have
said "this is bad" but I've never actually heard a coherent, cogent
explanation of why it's bad. 99% of the time you don't really care
whether they use GET or POST. The main reason not to use GET is for
security (as above) or data size reasons. GET was meant originally
for quick queries, POST was added later for handling substantial data
submission.
Steven J. Owens
[EMAIL PROTECTED]
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html