RE: Redirect and pass as a parameter the original url from an Interceptor

2011-03-17 Thread Alfredo Manuel Osorio Martinez
Thanks all for your answers, I solved it by calling request.getRequestURL() and setting a request attribute with the original url. The redirect gets that attribute and includes it in the querystring. /agente/RegistrarAgenteAction_input.

Re: Redirect and pass as a parameter the original url from an Interceptor

2011-03-17 Thread Roger Varley
On Thu, 2011-03-17 at 12:48 -0600, Alfredo Manuel Osorio Martinez wrote: > I am implementing a Login interceptor which needs to redirect to an > action to first authenticate the user. The problem is that I want to > send as a parameter to that action the original url, the one that the > user was tr

Re: Redirect and pass as a parameter the original url from an Interceptor

2011-03-17 Thread Muneer Malik
I guess not even pass as a query string, he needs to pick up the URL from the request object: request.getRequestURL() Best, On Thu, Mar 17, 2011 at 3:33 PM, Okan Özeren wrote: > Hi, > > I mean, you want to get a parameter as passed with original url by > query string. Am I right? You sould us

Re: Redirect and pass as a parameter the original url from an Interceptor

2011-03-17 Thread Okan Özeren
Hi, I mean, you want to get a parameter as passed with original url by query string. Am I right? You sould use this implementation: // Get the action context from the invocation so we can access the // HttpServletRequest and HttpServletResponse objects. final ActionContext context = invocation.ge

Re: Redirect and pass as a parameter the original url from an Interceptor

2011-03-17 Thread Muneer Malik
can you not pass params within your interceptor? availability Best, On Thu, Mar 17, 2011 at 1:48 PM, Alfredo Manuel Osorio Martinez < alfredo.oso...@afirme.com> wrote: > I am implementing a Login interceptor which needs to redirect to an > action to first authenticate the user. The problem

Redirect and pass as a parameter the original url from an Interceptor

2011-03-17 Thread Alfredo Manuel Osorio Martinez
I am implementing a Login interceptor which needs to redirect to an action to first authenticate the user. The problem is that I want to send as a parameter to that action the original url, the one that the user was trying to get before the redirect to the login page. How can I achieve that?

update a complex object through struts2

2011-03-17 Thread maven apache
Hi: I meet some problem when I use struts as the mvc framework in my app, They are the core classes: *Task{ private int id; private String name; private List steps; } TaskStep{ public int id; private String name; private Date startDate; private TaskStatus status; private List

Re: [maybe OT] Detecting if a new window or tab was opened (server-side)

2011-03-17 Thread Brian Thompson
CTRL-click? Shift-click? Configure the browser to open all links in new tabs? I'm pretty sure you can do that in Firefox. And please don't suggest blocking mouse events. I like to use those features, and I really hate it when sites try to hijack my browser that way. It's one of the more user-ho