MG>pls see below
> From: lukaszlen...@apache.org
> Date: Wed, 30 Mar 2016 07:59:28 +0200
> Subject: Re: struts2 interceptor session timeout with ajax
> To: user@struts.apache.org
>
> I think you must use `onSuccessTopics` instead of `onErrorTopics` -
> returning 403 does
if(status1 == 403 ) {
> window.location.href = "/Sample/login.action";
> }
> });
>
>
>
>
>
>
>
>
>
> From: Lukasz Lenart
> Sent: Friday, March 11, 201
t: Friday, March 11, 2016 2:21 PM
To: Struts Users Mailing List
Subject: Re: struts2 interceptor session timeout with ajax
It won't work that way, when using Ajax you must use Ajax to redirect
to a login page. You can use something like this
http://cypressnorth.com/programming/global-ajax-e
10:51 AM
> To: user@struts.apache.org
> Subject: struts2 interceptor session timeout with ajax
>
> Have jquery tabbed panel in a jsp page which has a button to Save the form in
> the tabbed panel which is making an ajax call and is working fine.
>
> Now trying to implement the s
Need help with this please.
From: fea jabi
Sent: Wednesday, March 9, 2016 10:51 AM
To: user@struts.apache.org
Subject: struts2 interceptor session timeout with ajax
Have jquery tabbed panel in a jsp page which has a button to Save the form in
the tabbed
Have jquery tabbed panel in a jsp page which has a button to Save the form in
the tabbed panel which is making an ajax call and is working fine.
Now trying to implement the session management for all requests in the
application and imlemented the new interceptor to perform the same. Having
issu
That's really Helpful Greg
On Wed, Oct 13, 2010 at 12:21 AM, Greg Lindholm wrote:
> Here are some that I've used in recent project:
>
> AuthenticationInterceptor to check if user is signed in.
> HibernateInterceptor to manage Hibernate session lifecycles
> LoggingInterceptor for custom logging
>
Here are some that I've used in recent project:
AuthenticationInterceptor to check if user is signed in.
HibernateInterceptor to manage Hibernate session lifecycles
LoggingInterceptor for custom logging
HandsetPropertiesInterceptor for injecting properties into the request
based on User-Agent sett
I am truely agree but can give me some example where you have applied them
just to get me an idea may be lacing imagination this time
:)
On Tue, Oct 12, 2010 at 10:40 PM, Greg Lindholm wrote:
> Every app I've written has custom interceptors (and of course custom
> interceptor stacks).
> Don't fe
Every app I've written has custom interceptors (and of course custom
interceptor stacks).
Don't fear interceptors, they are your friends.
On Tue, Oct 12, 2010 at 12:17 PM, aum strut wrote:
> Hi All,
>
> I have a generic question about Struts2Interceptor,since Struts2 is itself
> in term of Interc
I don't think I've deployed an app without at least one or two custom
interceptors.
On Tuesday, October 12, 2010, aum strut wrote:
> Hi All,
>
> I have a generic question about Struts2Interceptor,since Struts2 is itself
> in term of Interceptor and most of the required interceptors are there
> pl
Hi All,
I have a generic question about Struts2Interceptor,since Struts2 is itself
in term of Interceptor and most of the required interceptors are there
placed.
My question is how many of us are using custom Interceptor which are there
in production enviornment.my idea is to get some broad presp
Hi all,
You can try this way:
http://poulwiel.blogspot.com/2009/01/intercepting-all-actions-inside-my-app.html
Best greetings,
Paweł Wielgus.
2010/7/13 Fabio Alves de Araujo Ebner - DnaSolution
:
> The problem is: When he pass through interceptor and go to action
> "cadastrarOrdemServico" my va
The problem is: When he pass through interceptor and go to action
"cadastrarOrdemServico" my var cdProjetoOS are set with null :(
thanks, follow my all code:
CLASS LoginClienteInterceptor .java
---
package br.com.dnasolution.site.interceptor;
im
I'm fairly new to this myself so maybe someone else can jump in. First
things first, put a print statement in the intercept methods of your
interceptors so you at least know if the interceptor is even getting
called.
Secondly, I didn't ever use a line like this:interceptorRefs = {
@Intercept
Hey man, this is my structure
MY ACTION
package br.com.dnasolution.site.action;
/** import **//
@ParentPackage("my-secure")
public class OrdemServicoAction {
@Action(value = "cadastrarOrdemServico", results = {...@result(name = "valido",
location = "/jsp/ordemservico/cadastro_sucesso.jsp
ion wrote:
so i put in my aciotn
ParentPackage("loginClienteAndUsuario")
and i got the same problem
- Original Message - From: "JP Cafaro"
To: "Struts Users Mailing List"
Sent: Monday, July 12, 2010 2:18 PM
Subject: Re: Help Struts2 + interceptor
The
so i put in my aciotn
ParentPackage("loginClienteAndUsuario")
and i got the same problem
- Original Message -
From: "JP Cafaro"
To: "Struts Users Mailing List"
Sent: Monday, July 12, 2010 2:18 PM
Subject: Re: Help Struts2 + interceptor
The action ha
The action has to be a part of that package, it has to extend that package.
Fabio Alves de Araujo Ebner - DnaSolution wrote:
Hi, i need help to use interceptor, i create one to test if the user are logged in my application until he execute one Action, but when the server pass throw interceptor
Hi, i need help to use interceptor, i create one to test if the user are logged
in my application until he execute one Action, but when the server pass throw
interceptor and back to action, all my var are null, this is my struts.xml
http://struts.apache.org/dtds/struts-2.0.dtd";>
Martin Gainty wrote:
//action class not implements ShortCircuitableValidator
public class MyAction extends ActionSupport implements ShortCircuitableValidator
{
OgnlValueStack vs = new OgnlValueStack();
In an Action when I need the value stack I don't construct a new one but
instead get i
t n'aura pas n'importe
quel effet légalement obligatoire. Étant donné que les email peuvent facilement
être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité
pour le contenu fourni.
> Date: Wed, 27 May 2009 11:25:47 -0400
> From: d...@newfield.org
>
You can still use the Global Result, just set the global results value to an
OGNL expression. This limits the places you can use the interceptor to
actions that can fill the OGNL expression, but you could handle that with a
common base class if you really want to go down this path. I don't think
Yes, you can, though I don't really thing it's the right way to go.
Basically you use the body content of the tag to set the variable to
the value of a scriplet expression like so:
<%= myVar%>
Again, there are much better ways of coding modern web applications that
resorting to scriplets and I w
Yes i know that, very appreciate this clarification :)
--
Stefano Corallo
On Wed, May 27, 2009 at 5:25 PM, Dale Newfield wrote:
> Stefano Corallo wrote:
>
>> i think that this is the only one solution. Thanks guys for your reply.
>>
>
> If you don't have a base class for all of your actions, y
Stefano Corallo wrote:
i think that this is the only one solution. Thanks guys for your reply.
If you don't have a base class for all of your actions, you might be
able in the interceptor to get ahold of the ognl valueStack and set the
value directly, then refer to #shortCircuitRedirectUrl (i
Hi Dale,
i think that this is the only one solution. Thanks guys for your reply.
--
Stefano Corallo
On Wed, May 27, 2009 at 4:59 PM, Dale Newfield wrote:
> Stefano Corallo wrote:
>
>> I know the global result, but is unusefull for this purpose. The problem
>> is
>> that the actions that i wan
Stefano Corallo wrote:
I know the global result, but is unusefull for this purpose. The problem is
that the actions that i want to call is knew at runtime cause the
interceptor at init time scan classes with certain annotations and i want to
forward to those actions so i can't put the result in s
être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité
pour le contenu fourni.
> From: st...@sjlt.co.uk
> To: user@struts.apache.org
> Subject: RE: Struts2 Interceptor
> Date: Wed, 27 May 2009 10:47:42 +0100
>
> Hi Stefano,
>
> This looks l
27 May 2009 07:54
To: user@struts.apache.org
Subject: Struts2 Interceptor
Hi all,
can an interceptor call an arbitraty action different from the action
requested by the client?
Suppose i've the interceptor "interceptor-router" placed in the stack and
the client call MyAction.action,
Hi Criss,
thanks for your reply.
I know the global result, but is unusefull for this purpose. The problem is
that the actions that i want to call is knew at runtime cause the
interceptor at init time scan classes with certain annotations and i want to
forward to those actions so i can't put the re
Hello David and Chris,
Thank you two very much indeed for your help.
I have tried tag with different scope and seems I can set a
parameter to any value I want, but I cant set it to the value/variable from
jsps java code block, so I suppose may not be applicable to my
requirement. (or I must
Sort of. The way that I've achieved something similar to what you seem to
be asking is to define a bunch of Global Results in struts.xml that define
common actions that the interceptors may need to invoke (like reset-password
or invalid-input), then instead of chaining to the action in the
interce
Hi all,
can an interceptor call an arbitraty action different from the action
requested by the client?
Suppose i've the interceptor "interceptor-router" placed in the stack and
the client call MyAction.action, when the interceptor intercept the call is
possible to 'redirect' the call to MyDiffere
On Monday 16 February 2009 05:15:49 Torsten Krah wrote:
> Am Samstag, 14. Februar 2009 17:11:55 schrieb Frans Thamura:
> > i try use the non interceptor version, work well, but i find the
> > interceptor cannot work with JTA related injection
>
> Why?
> I am using S2 and Spring with JTA managed tra
Am Samstag, 14. Februar 2009 17:11:55 schrieb Frans Thamura:
> i try use the non interceptor version, work well, but i find the
> interceptor cannot work with JTA related injection
Why?
I am using S2 and Spring with JTA managed transaction too here and it works
fine (if spring is the object facto
hi all
i use an interceptor that do query, so i injected the hibernate using
spring - my struts2 using spring
and i want to implement JTA in my persistance factory
i try use the non interceptor version, work well, but i find the
interceptor cannot work with JTA related injection
can help all
-
s.pwd = password;
}
Regards,
Randy Burgess
Sr. Web Applications Developer
Nuvox Communications
> From: xianwinwin <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List
> Date: Thu, 3 Jan 2008 15:37:08 -0800 (PST)
> To:
> Subject: struts2: interceptor - validation doesn
AND THE WINNER IS: xniit2003
YES!! thank you so much! good call and a brilliant observation
thank you all!
you wrote:
I guess your problem is in the xml file.
You are using "error" result type. But by default if validation error
occurs, "input" string is being returned.
So please use "inp
I didn't see an INPUT result configured, which will be needed.
/Ian
--
Ian Roughley
From Down & Around, Inc.
Consulting * Training / Mentoring * Agile Process * Open Source
web: http://www.fdar.com - email: [EMAIL PROTECTED]
Dave Newton wrote:
Please post the entire relevant code and confi
I guess your problem is in the xml file.
You are using "error" result type. But by default if validation error
occurs, "input" string is being returned.
So please use "input" instead of "error" and check again.
Thanks
On Jan 4, 2008 5:07 AM, xianwinwin <[EMAIL PROTECTED]> wrote:
>
> I've been st
Please post the entire relevant code and configuration. I do this all the
time (annotating the getter, though, as Wes said) and don't have any
problems. You're extending ActionSupport?
d.
--- xianwinwin <[EMAIL PROTECTED]> wrote:
>
> thanks wes, I tried this manipulation - didnt work
> :-(
>
>
thanks wes, I tried this manipulation - didnt work
:-(
Wes Wannemacher wrote:
>
> Try annotating the getter rather than the setter.
>
> -Wes
>
> On 1/3/08, xianwinwin <[EMAIL PROTECTED]> wrote:
>>
>> yes i did :super:
>>
>>
>>
>> newton.dave wrote:
>> >
>> > Did you annotate the class with t
Try annotating the getter rather than the setter.
-Wes
On 1/3/08, xianwinwin <[EMAIL PROTECTED]> wrote:
>
> yes i did :super:
>
>
>
> newton.dave wrote:
> >
> > Did you annotate the class with the @Validation() annotation?
> >
> > d.
> >
> > --- xianwinwin <[EMAIL PROTECTED]> wrote:
> >
> >>
> >>
yes i did :super:
newton.dave wrote:
>
> Did you annotate the class with the @Validation() annotation?
>
> d.
>
> --- xianwinwin <[EMAIL PROTECTED]> wrote:
>
>>
>> I've been struggling with this issue for a while and any pointer would be
>> appreciated.
>>
>> I have a simple file with one
Did you annotate the class with the @Validation() annotation?
d.
--- xianwinwin <[EMAIL PROTECTED]> wrote:
>
> I've been struggling with this issue for a while and any pointer would be
> appreciated.
>
> I have a simple file with one field -name; I would like to validate that
> the
> user put
I've been struggling with this issue for a while and any pointer would be
appreciated.
I have a simple file with one field -name; I would like to validate that the
user put information in it.
I'm using the annotation in order to achieve this but for some reason the
validation doesn't work (there
47 matches
Mail list logo