--- Dave Belfer-Shevett <[EMAIL PROTECTED]> wrote:
> I have a Logon form that works fine without an interceptor, but as soon 
> as I add one, my getUsername() and other methods fail (the username is 
> null).

When you declare interceptor-refs for an action you are declaring *all* the
interceptors for that action. You either need to create a *complete* stack
with your interceptor included or specify *all* the interceptors your action
requires.

> Question 2...
> I tried doing this, and saw the connection start up, but the Action 
> class kept having the connection as 'null'.  I think I'm either 
> misunderstanding how the interceptor / action sequence works, or doing 
> something blatantly stupid.

Without the actual implementation it will be difficult to help.

What you probably meant in the code above was that you'd check for an
interface that informs the interceptor that the action accepts a connection
property. If the action being invoked implements the interface, get the
connection and set it on the action. If you look at many of the S2/XWork
interceptor source you'll see this technique used all over the place.

That's certainly one way to handle connections.

Dave


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to