I found the answer. It is to use the struts-el html tag library instead
of the standard html tag library, and then to refer to the variable
using the expression language syntx:
<c:set var="action" value="/foo/update"/>
. . .
<html:form action="${action}" . . . />
Erik Weber wrote:
I want to use c:choose to decide how to set the value of the action
parameter in an html:form tag (add or update).
How exactly do I refer to the variable that is set in the c:when and
c:otherwise conditionals from within my html:action tag?
The only thing I can think of that works is something like this:
<html:form action="<%= someVar %>" . . . >
So how do I declare someVar, with c:set? Or do I have to use Scriptlet
or JSP declaration syntax?
Erik
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]