> Hi All ,
> 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"
Hi
Whenever you are sending secret, valuable information you need to use
POST method only, so in the servlet also you must use doPost() method
only.
If you want your servlet must handle doPost() and doGet() here is a
trick.
public void doGet(HttpServletRequest req, HttpServletResponse res)
.....
{
.......body goes here....
}
//add doPost also
public void doPost(HttpServletRequest req, HttpServletResponse res)
{
doGet(req, res);
}
this will solve your problem.
Prasad
[EMAIL PROTECTED]
__________________________________________________
Do You Yahoo!?
Bid and sell for free at http://auctions.yahoo.com
___________________________________________________________________________
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