Add servletRelativeAction form tag attribute

A recent change in FormTag to prepend the context and servlet paths if
not present, causes issues when used in portlet applications.
This change introduces a servletRelativeAction form tag attribute that
must be used for the context and servlet paths to be prepended.

Issue: SPR-10382
This commit is contained in:
Rossen Stoyanchev
2013-05-10 11:56:50 -04:00
parent aaded7e30b
commit c0cacfcd68
3 changed files with 41 additions and 9 deletions

View File

@@ -179,7 +179,7 @@ public class FormTagTests extends AbstractHtmlElementTagTests {
String onreset = "onreset";
this.tag.setCommandName(commandName);
this.tag.setAction(action);
this.tag.setServletRelativeAction(action);
this.tag.setMethod(method);
this.tag.setEnctype(enctype);
this.tag.setOnsubmit(onsubmit);