You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Raman <ra...@smartdatainc.com> on 2004/01/15 15:08:55 UTC

Form submission

I want to implement something like this:

Conditional checks: for form submission to different Actions


<logic:equal value="MP" name="userQuestionaireForm" property="filterConstant">
<html:form action="/UpdateUserQstMP">
</logic:equal>
<logic:notEqual value="MP" name="userQuestionaireForm" property="filterConstant">
<html:form action="/UpdateUserQst">
</logic:notEqual>

But this is giving me error [ServletException  "Unterminated tag'"
if i remove the logic tags it works fine.

Can anybody help me in this or give me some idea...

Thanks
-- Raman

Re: Form submission

Posted by Mark Lowe <ma...@talk21.com>.
<logic:equal ...
	<bean:define id="action" ...
..

<html:form action="<%= action %>">


or

<c:choose>
	<c:when test="${myForm.prop}">
		<c:set var="action" value="/foo.do" />
	</c:when>
	<c:otherwise>
		<c:set var="action" value="/bar.do" />
	</c:otherwise>
</c:choose>
<html-el:form action="${action}">

On 15 Jan 2004, at 14:08, Raman wrote:

> I want to implement something like this:
>
> Conditional checks: for form submission to different Actions
>
>
> <logic:equal value="MP" name="userQuestionaireForm" 
> property="filterConstant">
> <html:form action="/UpdateUserQstMP">
> </logic:equal>
> <logic:notEqual value="MP" name="userQuestionaireForm" 
> property="filterConstant">
> <html:form action="/UpdateUserQst">
> </logic:notEqual>
>
> But this is giving me error [ServletException  "Unterminated tag'"
> if i remove the logic tags it works fine.
>
> Can anybody help me in this or give me some idea...
>
> Thanks
> -- Raman


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org