Actually I see what's going on:
ActionServlet.java is calling Action.perform() with 4 parameters in
processActionPerform(). Since I don't have a perform() with 4 param
defined, it uses the default one in Action.java that returns null.
For backward compatibility, it looks like we should modify Action.java,
and have the default perform(4 param) calls perform(5 param), not
another way around
as we have now.
Siping Liu wrote:
> Hi,
>
> I'm upgrading to Struts1.0 from 0.5 and see a weird problem:
> I have my action class extends Action instead of ActionBase,
> and still use the perform() method with 5 parameters (the first
> one is servlet). It compiles. But when the action is invoked, I
> get browser message "the page contains no data...", and I'm
> sure the perform() method isn't called (I have a printout on first
> line). It works only after I removed the servlet parameter to
> perform().
>
> I checked Struts source code and don't see any problem. Anyone
> see why this happens?
>
> Thanks,
> S Liu