struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From José Antonio Delgado Trujillo <>
Subject exclude params submit
Date Tue, 02 Jan 2018 19:08:55 GMT
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=“”/>

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

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

I have the next Form
<s:form action = "login">
		<s:textfield key="credentialBean.user" />
		<s:password key="credentialBean.pass" />
		<s:submit key="submit" />

This is my properties file


This is my trusts.xml configuration
	<constant name="struts.devMode" value="true" />
	<package name="loginstruts" extends="struts-default”>

		<interceptor-stack name="appDefault">
			<interceptor-ref name="defaultStack">
				<param name="params.excludeParams">dojo..*,^struts..*,^session..*,^request..*,^application..*,^servlet(Request|Response)..*,parameters...*,submit</param>
	<default-interceptor-ref name="appDefault"/>


Still i’ve got submit error.
What am i doing wrong?

Un saludo,
José A.

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message