I just migrated the following code to the new "form" tag library in 2.0-m5 release:
Old way:
New way:Code:<form method="post" action="<c:url value='/base64.htm' />">
However when the page renders I get the following incorrect value for the "action" attribute:Code:<form:form commandName="base64Form">
Actual:
Expected:Code:<form method="POST" action="/hcbo-sso-web/WEB-INF/jsp/base64.jsp">
The action is pointing directly to a JSP is obviously incorrect, so I tried specifying the action attribute as "/base64.htm". That produced the following:Code:<form method="post" action="/hcbo-sso-web/base64.htm">
Notice that the context for the web-app is missing. What is the correct way to get the context generated? I am also using Tiles. Would that make a difference?Code:<form method="POST" action="/base64.htm">
Shannon Kendrick


Reply With Quote
