This commit is contained in:
Arjen Poutsma 2008-11-19 15:44:21 +00:00
parent cc5d3ec389
commit 2b2805058b
1 changed files with 3 additions and 3 deletions

View File

@ -294,21 +294,21 @@ public class FormTag extends AbstractHtmlElementTag {
}
/**
* Set the name of the request param for non-browser supported HTTP methods
* Set the name of the request param for non-browser supported HTTP methods.
*/
public void setMethodParam(String methodParam) {
this.methodParam = methodParam;
}
/**
* Get the name of the request param for non-browser supported HTTP methods
* Get the name of the request param for non-browser supported HTTP methods.
*/
protected String getMethodParameter() {
return this.methodParam;
}
/**
* Determine if the HTTP method is browser supported
* Determine if the HTTP method is supported by browsers (i.e. GET or POST).
*/
protected boolean isMethodBrowserSupported(String method) {
return ("get".equalsIgnoreCase(method) || "post".equalsIgnoreCase(method));