I have a form with several tags using the attribute key. As it is said in getting started / message resource file Key is used to substitute tag’s value and label attributes.
For example: <s:textField key=“person.name”/> To put the tag label Struts2 look for property file. To put the tag value Struts2 look for setName of a bean person instantiated by the action class. So <s:submit key=“Submit”> produces the next error: 18:27:10,990 ERROR [stderr] (default task-9) Unexpected Exception caught setting 'submit' on 'class uoc.jdelgadot.loginstruts.action.Login: Error setting expression 'submit' with value ['Acceder', ] To avoid this in getting started / elude params say to configure a new stack filter with exclude params. I have the next Form —— <s:form action = "login"> <s:textfield key="credentialBean.user" /> <s:password key="credentialBean.pass" /> <s:submit key="submit" /> </s:form> —— This is my properties file — credentialBean.user=Usuario credentialBean.pass=Contraseña submit=Acceder — This is my trusts.xml configuration — <struts> <constant name="struts.devMode" value="true" /> <package name="loginstruts" extends="struts-default”> <interceptors> <interceptor-stack name="appDefault"> <interceptor-ref name="defaultStack"> <param name="params.excludeParams">dojo..*,^struts..*,^session..*,^request..*,^application..*,^servlet(Request|Response)..*,parameters...*,submit</param> </interceptor-ref> </interceptor-stack> </interceptors> <default-interceptor-ref name="appDefault"/> ... — Still i’ve got submit error. What am i doing wrong? Un saludo, José A.