There is a scenario where the same submit button needs to handle three different method calls in a dispatch action. To avoid coding the same button three times, I tried <s:submit value=" Save " method='<s:property value="methodName"/>' /> java.lang.NoSuchMethodException: com.abc.xyz.struts.ExampleDispatchAction.()
<s:submit value=" Save " method="<%=methodName%>"/> org.apache.jasper.JasperException: /jsp/example/exampleEdit.jsp(130,11) According to TLD or attribute directive in tag file, attribute method does not accept any expressions <s:submit value=" Save " method="<s:property value="methodName"/>"/> org.apache.jasper.JasperException: /jsp/example/exampleEdit.jsp(132,88) equal symbol expected It seems like we have to hard code the method value. Is there a better way to handle this? -- View this message in context: http://www.nabble.com/S2---s%3Asubmit-method%3D%22value%22-has-to-be-hard-coded--tp23416227p23416227.html Sent from the Struts - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org