struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Fabiano Franz <>
Subject [s2] Struts 2.1.1 test build and ActionContext.getContext()
Date Wed, 23 Apr 2008 18:54:20 GMT

Hi folks,

I'm testing the last Struts 2 test build
but I found a problem: ActionContext.getContext().getActionInvocation() is
now returning null, and I was using it to be able to access the action's
namespace. It was working on Version notes for 2.1.1 says "the
static method ActionContext.getContext() no longer lazily initializes an
ActionContext. Unit tests that relied upon this behaviour need to setup the
ActionContext via the Container first.". How could I be able to get the
action namespace with 2.1.1? Any idea?


Fabiano Franz
View this message in context:
Sent from the Struts - User mailing list archive at

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message