This is just reminding me that Action must be threadsafe,

http://struts.apache.org/userGuide/building_controller.html

i.e. no instance variables.

Not the same for chain commands, I guess. Someone will ask the question of performance hit through using chain instead of action (now I do). I guess I could make command.execute static... Anyone want to run a load test?

So in the "HermaphroditeAction" that extends Action AND implements Command I could do both context.saveErrors(errors) and super.saveErrors(errors, request) ? Hmm...

Might opt for another tweak in struts-config, from:

<action path="/testAct" command="testCmd" catalog="testCat"
   name="testBean" scope="session" validate="false">

add this shortcut:

<action path="/testAct" commandClass="com.mD.test.NewCmd"
   name="testBean" scope="session" validate="false">

While type="a.b.c.xxxAction" goes to "classic" Action.

Wolfgang Gehner




Reply via email to