C
ctyberg
I'd like to dynamically change the form's action based on a request
parameter.
For ex.
<c:if test="${param.isNew == 'true'}>
<html:form action="/saveNew.do" >
</c:if>
<c:if test="${param.isNew == 'false'}>
<html:form action="/saveExisting.do" >
</c:if>
However, the above would generate a nesting error since the form's end
tag is not within the c:if tag.
How else can I achieve the same idea? Any ideas?
parameter.
For ex.
<c:if test="${param.isNew == 'true'}>
<html:form action="/saveNew.do" >
</c:if>
<c:if test="${param.isNew == 'false'}>
<html:form action="/saveExisting.do" >
</c:if>
However, the above would generate a nesting error since the form's end
tag is not within the c:if tag.
How else can I achieve the same idea? Any ideas?