Re: Request and parameters are null

2007-06-13 Thread Dave Newton
--- Rusty Spoone <[EMAIL PROTECTED]> wrote:
> How do I add the interceptors that handle setting 
> data into my action?

http://struts.apache.org/2.x/docs/interceptors.html

d.



   

Yahoo! oneSearch: Finally, mobile search 
that gives answers, not web links. 
http://mobile.yahoo.com/mobileweb/onesearch?refer=1ONXIC

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



Re: Request and parameters are null

2007-06-13 Thread Rusty Spoone

Yes. There is only one interceptor which is the one I defined. So this must
sound like a silly question. How do I add the interceptors that handle
setting data into my action?


   




On 6/13/07, Laurie Harper <[EMAIL PROTECTED]> wrote:


Rusty Spoone wrote:
> Hi all. I have a Login action that gets intercepted by non other than
> LoginInterceptor. In the interceptor the username and password are
checked.
> I can even print them in the logs to see that they are really there.
>
> The interceptor returns
>
> return invocation.invoke();
>
> Then in the Login action username, password and HttpServletRequest are
all
> null. I have setters for each. I am implementing ServletRequestAware.
>
> I must have really screwed something up. Any ideas?

What do you mean by 'gets intercepted by non other than
LoginInterceptor.'? If you've configured the action so that the normal
interceptor stack is not applied and that's the only interceptor that
runs, then you've bypassed the interceptors that handle setting data
onto your action.

If that doesn't make sense, try posting the relevant parts of your
struts.xml configuration.

L.


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




Re: Request and parameters are null

2007-06-13 Thread Laurie Harper

Rusty Spoone wrote:

Hi all. I have a Login action that gets intercepted by non other than
LoginInterceptor. In the interceptor the username and password are checked.
I can even print them in the logs to see that they are really there.

The interceptor returns

return invocation.invoke();

Then in the Login action username, password and HttpServletRequest are all
null. I have setters for each. I am implementing ServletRequestAware.

I must have really screwed something up. Any ideas?


What do you mean by 'gets intercepted by non other than 
LoginInterceptor.'? If you've configured the action so that the normal 
interceptor stack is not applied and that's the only interceptor that 
runs, then you've bypassed the interceptors that handle setting data 
onto your action.


If that doesn't make sense, try posting the relevant parts of your 
struts.xml configuration.


L.


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



Request and parameters are null

2007-06-13 Thread Rusty Spoone

Hi all. I have a Login action that gets intercepted by non other than
LoginInterceptor. In the interceptor the username and password are checked.
I can even print them in the logs to see that they are really there.

The interceptor returns

return invocation.invoke();


Then in the Login action username, password and HttpServletRequest are all
null. I have setters for each. I am implementing ServletRequestAware.

I must have really screwed something up. Any ideas?