You can get the action in an interceptor, right? (Bearing in mind that if your interceptor stack includes "workflow" you need to make sure your interceptor order matches your desired behavior.)
chris locke
Greenhorn
Joined: Aug 13, 2010
Posts: 17
posted
0
Maybe I'm misinterpreting, but yes, the action is encompassed in the interceptor. When the interceptor succeeds I can get to the action, but when it fails it never gets to it so I'm looking for a callback to the form where I can add a coding statement like "addActionError".
I think *I'm* probably the one mis-interpreting: what, specifically, are you trying to do? You have the action, so you can call addActionError on it.
chris locke
Greenhorn
Joined: Aug 13, 2010
Posts: 17
posted
0
Basically I have an interceptor that checks the user's status. If the user has timed out, they'll be kicked back to the login page no matter where they are in the app. What I'd like to have is some form of user notification to let them know why they need to log back in.
Thinking about it more now, I'm wondering if maybe I should just kick the user to a different login page which has this user message included?
I wouldn't have a completely separate page for that, unless there's a compelling reason to have one. But since you're doing a redirect, unless you're using the message store interceptor, it would be lost anyway, right? So I'd keep it in session and just check if there's a message there or something.
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to
run our stuff on 16 servers instead of 3.