I have an action with a wildcard mapping: <action name="Settings_*" method="{1}" class="com.kamakura.struts2.action.SettingsAction" > <result>/jspx/settings.jspx </result> </action>
The jsp page has 2 links which submit the form using javascript. Here is one of the functions: function save() { alert('kowabunga, dude.'); document.settingsForm.action = 'Settings_save.action'; document.settingsForm.submit(); } This does in fact submit to the correct action class methods. The problem is that the action class instance is not the same between one submission and the next. That is, the 'init()' method in the action class sets some instance variables. The "save" method does not have access to those instance variables, because a new instance of the was created (a different instance 'id'). Is the creation of a new instance the standard behavior - I can't believe it is, because that would make the whole 'thread-safe' model in S2 pointless. Am I doing something silly or wrong (I could believe either)? Thanks, Ray Clough -- View this message in context: http://www.nabble.com/%28S2%29-submit-question-tf3717366.html#a10399618 Sent from the Struts - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]