Browse Source

polishing

git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@3248 50f2f4bb-b051-0410-bef5-90022cba6387
pull/1/head
Juergen Hoeller 16 years ago
parent
commit
c6ce541d29
  1. 6
      org.springframework.web.servlet/src/main/java/org/springframework/web/servlet/tags/form/FormTag.java

6
org.springframework.web.servlet/src/main/java/org/springframework/web/servlet/tags/form/FormTag.java

@ -1,5 +1,5 @@ @@ -1,5 +1,5 @@
/*
* Copyright 2002-2008 the original author or authors.
* Copyright 2002-2010 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -315,7 +315,6 @@ public class FormTag extends AbstractHtmlElementTag { @@ -315,7 +315,6 @@ public class FormTag extends AbstractHtmlElementTag {
}
/**
* Writes the opening part of the block '<code>form</code>' tag and exposes
* the form object name in the {@link javax.servlet.jsp.PageContext}.
@ -329,7 +328,8 @@ public class FormTag extends AbstractHtmlElementTag { @@ -329,7 +328,8 @@ public class FormTag extends AbstractHtmlElementTag {
tagWriter.startTag(FORM_TAG);
writeDefaultAttributes(tagWriter);
tagWriter.writeAttribute(ACTION_ATTRIBUTE, resolveAction());
writeOptionalAttribute(tagWriter, METHOD_ATTRIBUTE, isMethodBrowserSupported(getMethod()) ? getMethod() : DEFAULT_METHOD);
writeOptionalAttribute(tagWriter, METHOD_ATTRIBUTE,
isMethodBrowserSupported(getMethod()) ? getMethod() : DEFAULT_METHOD);
writeOptionalAttribute(tagWriter, TARGET_ATTRIBUTE, getTarget());
writeOptionalAttribute(tagWriter, ENCTYPE_ATTRIBUTE, getEnctype());
writeOptionalAttribute(tagWriter, ACCEPT_CHARSET_ATTRIBUTE, getAcceptCharset());

Loading…
Cancel
Save