Re: Call execAndWait but got NullPointerException ?

2011-06-03 Thread Jeff Black
: Emi Lu em...@encs.concordia.ca To: Struts Users Mailing List user@struts.apache.org Cc: Dale Newfield d...@newfield.org Sent: Thursday, June 2, 2011 3:37 PM Subject: Re: Call execAndWait but got NullPointerException ? On 06/02/2011 03:40 PM, Dale Newfield wrote: You didn't add exec-and-wait

Re: Call execAndWait but got NullPointerException ?

2011-06-03 Thread Jeff Black
...@encs.concordia.ca To: Struts Users Mailing List user@struts.apache.org Cc: Dale Newfield d...@newfield.org Sent: Thursday, June 2, 2011 3:37 PM Subject: Re: Call execAndWait but got NullPointerException ? On 06/02/2011 03:40 PM, Dale Newfield wrote: You didn't add exec-and-wait, you replaced your entire

Re: Call execAndWait but got NullPointerException ?

2011-06-03 Thread Emi Lu
Good morning, your interceptor stack doesn't appear to be complete. By adding the following codes into struts.xml, no exception anymore. But the action page does *not* go to wait.jsp; but stays on the original action class page. interceptor name=execAndWait

Re: Call execAndWait but got NullPointerException ?

2011-06-03 Thread Dave Newton
The completeStack should be whatever your normal stack is, I think. Dave On Fri, Jun 3, 2011 at 9:57 AM, Emi Lu em...@encs.concordia.ca wrote: Good morning, your interceptor stack doesn't appear to be complete. By adding the following codes into struts.xml, no exception anymore. But the

Re: Call execAndWait but got NullPointerException ?

2011-06-03 Thread Emi Lu
Hello, The completeStack should be whatever your normal stack is, I think. struts.xml interceptor name=execAndWait class=com.opensymphony.webwork.interceptor.ExecuteAndWaitInterceptor/ action name=*ProcessAction method={1} class=ProcessAction interceptor-ref

Re: Call execAndWait but got NullPointerException ?

2011-06-03 Thread Emi Lu
Hello, For people who would like to do similar action, my solution is by using the following: Issue: Send hundreds of emails (since our mail server, wait 50 seconds per 10 emails). Notify users that email action has not completed. Solution: == 1. Send All Button:

[OT] Re: Call execAndWait but got NullPointerException ?

2011-06-03 Thread Dave Newton
On Fri, Jun 3, 2011 at 12:09 PM, Emi Lu wrote:      marquee width=60% behavior=scroll font color=RED Ew. Use something nice. Dave - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands,

Call execAndWait but got NullPointerException ?

2011-06-02 Thread Emi Lu
Hello, One action class to send emails to 50 users. Before action is done, I'd like to show a waiting page. When I added execAndWait shown as the following: action name=*ProcessAction method={1} class=ProcessAction interceptor-ref name=execAndWait param name=delay2000/param

Re: Call execAndWait but got NullPointerException ?

2011-06-02 Thread Dale Newfield
You didn't add exec-and-wait, you replaced your entire interceptor stack with just the exec-and-wait interceptor. -Dale On Jun 2, 2011, at 3:35 PM, Emi Lu em...@encs.concordia.ca wrote: Hello, One action class to send emails to 50 users. Before action is done, I'd like to show a waiting

Re: Call execAndWait but got NullPointerException ?

2011-06-02 Thread Emi Lu
On 06/02/2011 03:40 PM, Dale Newfield wrote: You didn't add exec-and-wait, you replaced your entire interceptor stack with just the exec-and-wait interceptor. Can you provide more information please? http://www.mkyong.com/struts2/struts-2-execandwait-interceptor-example/ I setup almost the