Use Struts2 tags to set values and check condition and then use OGNL to put action
attribute.
<s:set var="formAction" value="'baseAction'" />
<s:if test="some_condition">
<s:set var="formAction" value="'childAction'" />
</s:if>
<s:form method="post" action="%{#formAction}">
<s:input....../>
<s:select...../>
</s:form>