You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by "Kamholz, Keith (corp-staff) USX" <kk...@moog.com> on 2003/05/28 15:57:04 UTC
Conditional Form Action
Hey everyone,
I'm trying to use the same JSP to update two similar but different types of
data.
The form is the same for both, but I want to use a different action mapping
for each.
I tried this:
<logic:equal value="format" name="type">
<html:form action="/UpdateFormat.do">
</logic:equal>
<logic:equal value="subformat" name="type">
<html:form action="/UpdateSubFormat.do">
</logic:equal>
Some Form stuff here...
</html:form>
This doesn't work, which isn't a huge surprise. What the proper "struts
way" of doing this?
Thanx.
- Keith
www.buffalo.edu/~kkamholz
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org