navrsalemile
Programmer
Javascript:
function chgAction( action_name )
{
if( action_name=="aaa" ) {
document.forms[0].action = "/AAA";
}
else if( action_name=="bbb" ) {
document.forms[0].action = "/BBB";
}
else if( action_name=="ccc" ) {
document.forms[0].action = "/CCC";
}
}
in the form:
<html:form method="post" action="">
...
<html:radio property="input" value="aaa" onclick="showAAA();chgAction(this.value);"/>AAA
...
<html:radio property="input" value="bbb" onclick="showBBB();chgAction(this.value);"/>BBB
Action "/AAA" is not recognized by Struts. Any idea what is wrong?
function chgAction( action_name )
{
if( action_name=="aaa" ) {
document.forms[0].action = "/AAA";
}
else if( action_name=="bbb" ) {
document.forms[0].action = "/BBB";
}
else if( action_name=="ccc" ) {
document.forms[0].action = "/CCC";
}
}
in the form:
<html:form method="post" action="">
...
<html:radio property="input" value="aaa" onclick="showAAA();chgAction(this.value);"/>AAA
...
<html:radio property="input" value="bbb" onclick="showBBB();chgAction(this.value);"/>BBB
Action "/AAA" is not recognized by Struts. Any idea what is wrong?