Re: Doubt on Struts 2 Architechture
suppose, i'm not using timer interceptor and suppose i'm using timer interceptor then in such a case that interceptor only triggered but it's executing all interceptor in reverse order once again in post processing. why? -- View this message in context: http://struts.1045723.n5.nabble.com/Doubt-on-Struts-2-Architechture-tp4601232p4629574.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: Doubt on Struts 2 Architechture
On Mon, Jul 25, 2011 at 9:58 AM, mohan rao [via Struts] ml-node+4629574-1865382249-219...@n5.nabble.com wrote: suppose, i'm not using timer interceptor and suppose i'm using timer interceptor then in such a case that interceptor only triggered but it's executing all interceptor in reverse order once again in post processing. why? -- If you reply to this email, your message will be added to the discussion below: http://struts.1045723.n5.nabble.com/Doubt-on-Struts-2-Architechture-tp4601232p4629574.html To unsubscribe from Doubt on Struts 2 Architechture, click herehttp://struts.1045723.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_codenode=4601232code=bW9oYW5hcmFvc3ZAZ21haWwuY29tfDQ2MDEyMzJ8NTQ5NjkzNDYy. -- View this message in context: http://struts.1045723.n5.nabble.com/Doubt-on-Struts-2-Architechture-tp4601232p4629652.html Sent from the Struts - User mailing list archive at Nabble.com.
Re: Doubt on Struts 2 Architechture
Actually, no, it's not executing them again, it's finishing the original execution. The interceptor does whatever it's supposed to do before the execution of the action, it then turns over control to Struts which decides whether there is another interceptor in the chain, or whether it's time to execute the action. When the action is done, the call returns control back to each interceptor in (as you said) reverse order where it can finish it's work. It's the simplest and most effective way of assuring the interceptors can do both pre-processing and post-processing. (*Chris*) On Sun, Jul 24, 2011 at 9:28 PM, mohan rao mohanara...@gmail.com wrote: suppose, i'm not using timer interceptor and suppose i'm using timer interceptor then in such a case that interceptor only triggered but it's executing all interceptor in reverse order once again in post processing. why? -- View this message in context: http://struts.1045723.n5.nabble.com/Doubt-on-Struts-2-Architechture-tp4601232p4629574.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: Doubt on Struts 2 Architechture
was looking for a good interceptors reference, thank you Mitch for the book -- Manolo Pájaro Santander Ingeniero de Sistemas VIII Semestre (Actual) Promoviendo el Software Libre CUSOL-UAC Linux Registered User # 522026
RE: Doubt on Struts 2 Architechture
is this the book? http://www.manning.com/dbrown/ Martin Gainty __ Jogi és Bizalmassági kinyilatkoztatás/Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité Ez az üzenet bizalmas. Ha nem ön az akinek szánva volt, akkor kérjük, hogy jelentse azt nekünk vissza. Semmiféle továbbítása vagy másolatának készítése nem megengedett. Ez az üzenet csak ismeret cserét szolgál és semmiféle jogi alkalmazhatósága sincs. Mivel az electronikus üzenetek könnyen megváltoztathatóak, ezért minket semmi felelöség nem terhelhet ezen üzenet tartalma miatt. Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et 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: Thu, 21 Jul 2011 16:51:22 -0500 Subject: Re: Doubt on Struts 2 Architechture From: mano0...@gmail.com To: user@struts.apache.org was looking for a good interceptors reference, thank you Mitch for the book -- Manolo Pájaro Santander Ingeniero de Sistemas VIII Semestre (Actual) Promoviendo el Software Libre CUSOL-UAC Linux Registered User # 522026
RE: Doubt on Struts 2 Architechture
That's it. Mitch From: Martin Gainty mgai...@hotmail.com To: Struts Users Mailing List user@struts.apache.org Date: 07/21/2011 05:16 PM Subject:RE: Doubt on Struts 2 Architechture is this the book? http://www.manning.com/dbrown/ Martin Gainty __ Jogi és Bizalmassági kinyilatkoztatás/Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité Ez az üzenet bizalmas. Ha nem ön az akinek szánva volt, akkor kérjük, hogy jelentse azt nekünk vissza. Semmiféle továbbítása vagy másolatának készítése nem megengedett. Ez az üzenet csak ismeret cserét szolgál és semmiféle jogi alkalmazhatósága sincs. Mivel az electronikus üzenetek könnyen megváltoztathatóak, ezért minket semmi felelöség nem terhelhet ezen üzenet tartalma miatt. Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et 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: Thu, 21 Jul 2011 16:51:22 -0500 Subject: Re: Doubt on Struts 2 Architechture From: mano0...@gmail.com To: user@struts.apache.org was looking for a good interceptors reference, thank you Mitch for the book -- Manolo Pájaro Santander Ingeniero de Sistemas VIII Semestre (Actual) Promoviendo el Software Libre CUSOL-UAC Linux Registered User # 522026
RE: Doubt on Struts 2 Architechture
Thanks Mitch shalom Martin __ Note de déni et de confidentialité Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et 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. To: user@struts.apache.org Subject: RE: Doubt on Struts 2 Architechture From: mmcken...@wernervas.com Date: Thu, 21 Jul 2011 18:09:02 -0500 That's it. Mitch From: Martin Gainty mgai...@hotmail.com To: Struts Users Mailing List user@struts.apache.org Date: 07/21/2011 05:16 PM Subject:RE: Doubt on Struts 2 Architechture is this the book? http://www.manning.com/dbrown/ Martin Gainty __ Jogi és Bizalmassági kinyilatkoztatás/Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité Ez az üzenet bizalmas. Ha nem ön az akinek szánva volt, akkor kérjük, hogy jelentse azt nekünk vissza. Semmiféle továbbítása vagy másolatának készítése nem megengedett. Ez az üzenet csak ismeret cserét szolgál és semmiféle jogi alkalmazhatósága sincs. Mivel az electronikus üzenetek könnyen megváltoztathatóak, ezért minket semmi felelöség nem terhelhet ezen üzenet tartalma miatt. Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et 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: Thu, 21 Jul 2011 16:51:22 -0500 Subject: Re: Doubt on Struts 2 Architechture From: mano0...@gmail.com To: user@struts.apache.org was looking for a good interceptors reference, thank you Mitch for the book -- Manolo Pájaro Santander Ingeniero de Sistemas VIII Semestre (Actual) Promoviendo el Software Libre CUSOL-UAC Linux Registered User # 522026
Re: Doubt on Struts 2 Architechture
The struts2 architecture allows for preprocessing and post processing of requests. What if you wanted to record how long it takes for a request to be processed? You could have an interceptor on the top of your request that records the start time and the same interceptor will record the end time when the request is on its way out. The struts2 in action book has an excellent chapter on interceptors which I highly recommend reading. Hope this helps. Mitch From: mohan rao mohanara...@gmail.com To: user@struts.apache.org Date: 07/18/2011 09:06 PM Subject:Doubt on Struts 2 Architechture Interceptors stack will be triggered before action class is executed and after the result. Why it's need to execute interceptors stack once again after result. I used all the interceptors before triggering an action and what's the purpose of calling these interceptors once again after action without doing anything. Moreover it will take time to execute all the interceptors once again. why the sturts2 architecture is designed like this. Please through some light on this. Thank you very much. -- View this message in context: http://struts.1045723.n5.nabble.com/Doubt-on-Struts-2-Architechture-tp4601232p4601232.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: Doubt on Struts 2 Architechture
and by the way, interceptors dont get called again after action is completed they just havent ended when the action is and result is done. On Tue, Jul 19, 2011 at 10:17 PM, mmcken...@wernervas.com wrote: The struts2 architecture allows for preprocessing and post processing of requests. What if you wanted to record how long it takes for a request to be processed? You could have an interceptor on the top of your request that records the start time and the same interceptor will record the end time when the request is on its way out. The struts2 in action book has an excellent chapter on interceptors which I highly recommend reading. Hope this helps. Mitch From: mohan rao mohanara...@gmail.com To: user@struts.apache.org Date: 07/18/2011 09:06 PM Subject:Doubt on Struts 2 Architechture Interceptors stack will be triggered before action class is executed and after the result. Why it's need to execute interceptors stack once again after result. I used all the interceptors before triggering an action and what's the purpose of calling these interceptors once again after action without doing anything. Moreover it will take time to execute all the interceptors once again. why the sturts2 architecture is designed like this. Please through some light on this. Thank you very much. -- View this message in context: http://struts.1045723.n5.nabble.com/Doubt-on-Struts-2-Architechture-tp4601232p4601232.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Doubt on Struts 2 Architechture
Interceptors stack will be triggered before action class is executed and after the result. Why it's need to execute interceptors stack once again after result. I used all the interceptors before triggering an action and what's the purpose of calling these interceptors once again after action without doing anything. Moreover it will take time to execute all the interceptors once again. why the sturts2 architecture is designed like this. Please through some light on this. Thank you very much. -- View this message in context: http://struts.1045723.n5.nabble.com/Doubt-on-Struts-2-Architechture-tp4601232p4601232.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: Doubt on Struts 2 Architechture
I was already posted my question http://www.coderanch.com/t/542088/Struts/struts-Architechture got zero response. -- View this message in context: http://struts.1045723.n5.nabble.com/Doubt-on-Struts-2-Architechture-tp4601232p4601242.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: Doubt on Struts 2 Architechture
Interceptors wrap actions, like servlet filters do (more or less). If they didn't get control back you couldn't do things like an open-session-in-view. Dave On Jul 18, 2011 10:06 PM, mohan rao mohanara...@gmail.com wrote: Interceptors stack will be triggered before action class is executed and after the result. Why it's need to execute interceptors stack once again after result. I used all the interceptors before triggering an action and what's the purpose of calling these interceptors once again after action without doing anything. Moreover it will take time to execute all the interceptors once again. why the sturts2 architecture is designed like this. Please through some light on this. Thank you very much. -- View this message in context: http://struts.1045723.n5.nabble.com/Doubt-on-Struts-2-Architechture-tp4601232p4601232.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org