struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From stanl...@gmail.com
Subject Bug in scenario
Date Sat, 22 Sep 2007 12:53:18 GMT
If your action class implements ModelDriven and Preparable and your prepare
method returns a null object, ParameterInterceptor tries to set the parms
which are names appropriate to properties in model object that is expected
to be on the top of stack.  However, since model was null, it was NOT SET on
top of the stack and all the parameters are now looked for in the action
class.  They are not found there (naturally) so all the parm setters fail.
Should the ModelDriven interceptor create a model when it is null?
-- 
Scott
stanlick@gmail.com

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