On 11/26/06, Tarek Nabil <[EMAIL PROTECTED]> wrote:
I was pretty sure that the correct method was being executed, because I had some logging statements inside. One of those statements is the one that attempts to log the parameter Map and it's still giving the same result; an empty Map.
We'd need to see all the code exactly as it's written. For example, logger.debug(getContext().getParameters()); won't work, unless the Action has added a getContext method of its own. To simplify the test, try instead logger.debug(ActionContext.getContext().getParameters()); I added tried calling ActionContext.getContext in one of my own Actions and set a breakpoint in IDEA, to be sure it works correctly. One thing to not about type property is that it is an integer, so be sure your test is passing an integer as a parameter. That should affect the map, but it would affect what's set to the property. If time is going to be an issue, I'd strongly recommend trying an IDE with integrating debugging, since a quick step through can save a lot of temporary logging statements. The W2/S2 framework is also very testable, and nothing saves more development time than a solid set of unit tests from the get-go. If your application does need to do alot of logging, a very good place to do that is from an Intercetpor, so that the logging can be applied uniformly. HTH, Ted. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]