Thank you very much!

Billy Ng
----- Original Message ----- From: "Craig McClanahan" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <user@struts.apache.org>
Cc: "Joe Germuska" <[EMAIL PROTECTED]>
Sent: Monday, February 14, 2005 9:18 PM
Subject: Re: Will struts handles any methods other than get and post?



On Mon, 14 Feb 2005 20:50:57 -0800, Billy Ng <[EMAIL PROTECTED]> wrote:
Sorry, my question was misleading. Basically, I expect Struts to just
accept the GET and POST methods because some of my customers concern other
methods would cause security problem.

Unless you override ActionServlet and implement one of the other doXxx() methods, Struts defaults to the standard behavior provided by javax.servlet.http.HttpServlet, which throws a METHOD NOT ALLOWED (405) response to an HTTP/1.1 request, or a BAD REQUEST (400) response to an HTTP/1.0 request.

Craig


Billy Ng ---------------------------------------------------- This mailbox protected from junk email by MailFrontier Desktop from MailFrontier, Inc. http://info.mailfrontier.com

----- Original Message -----
From: "Joe Germuska" <[EMAIL PROTECTED]>
To: "Billy Ng" <[EMAIL PROTECTED]>; <user@struts.apache.org>
Sent: Saturday, February 12, 2005 7:07 AM
Subject: Re: Will struts handles any methods other than get and post?

> At 4:07 PM -0800 2/11/05, Billy Ng wrote:
>>Hi folks,
>>
>>Would anybody please tell me if Struts handles any methods other than >>get
>>and post?
>
> Not out of the box, but it would be totally trivial to extend
> ActionServlet and implement those methods to do what Struts does for > GET
> and POST.
>
> The problem is that the other HTTP methods have implied semantics that
> make it unlikely what what you want Struts to do is treat them exactly > as
> if they were GET or POST.
>
> So then the question is: what do you want Struts to do when it handles > the
> less common HTTP methods?
>
> Joe
>
> --
> Joe Germuska [EMAIL PROTECTED] http://blog.germuska.com
> "Narrow minds are weapons made for mass destruction" -The Ex


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to