Java Mailing List Archive

http://www.gg3721.com/

Home » Struts Users Mailing List »

@Interceptor annotaion syntax

Roger Varley

2010-04-09


Author LoginPost Reply

Hi

I've got @InterceptorRefs( { @InterceptorRef("defaultStack"),
    @InterceptorRef("execAndWait")})
in one of may actions. I now want to add the delaySleepInterval parameter to
the execAndWait interceptor.

I've tried @InterceptorRefs( { @InterceptorRef("defaultStack"),
 @InterceptorRef("execAndWait", params = {"delaySleepInterval","5000"})})
and

@InterceptorRefs( { @InterceptorRef("defaultStack"),
 @InterceptorRef(value="execAndWait" , params =
{"delaySleepInterval","5000"})})

The first version doesn't compile and although the second does, it's not
waiting 5 seconds between polls, it's more like 1 second, which
co-incidentally is the value in my "wait" jsp - <meta http-equiv="refresh"
content="2;url=<s:url includeParams="all" />"/>

So, two questions; is my second attempt at the intereptor reference correct,
and what is the correlation between the delaySleepInterval and the refresh
on the "wait".jsp page?


--
Sent from the Struts - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)

©2008 gg3721.com - Jax Systems, LLC, U.S.A.