Re: SV: Struts and Action errors
Hi Vinicius, I think you are a bit lost regarding Struts. Take a look at www.reumann.net. Very good tutorials. They will help you to understand better how to use Struts properly. By the way, i'd like to invite you to a very good struts chatroom. Point your IRC client to irc.darkmyst.org and join #struts_users channel. You'll find great guys there (and a girl too!), that have strong Struts experience. See you there! Regards, Daniel Silva --- Vinicius Carvalho <[EMAIL PROTECTED]> wrote: > Ok, I got it. But what about the other questions? if I'm in a ActionForm, > or a requestprocessor ... > At 10:18 15/1/2004, you wrote: > >Hi there > > > >Use the saveErrors method in Action, before forwarding to jsp. > > > >Med venlig hilsen > > > >Claus Weng Madsen, Teamleder > >TELMORE A/S > >Carl Gustavsgade 3, 2630 Taastrup > >Telefon 70218700, Mobil 30242875 > >www.telmore.dk > > > > > >-Oprindelig meddelelse- > >Fra: Vinicius Carvalho [mailto:[EMAIL PROTECTED] > >Sendt: 15. januar 2004 12:24 > >Til: [EMAIL PROTECTED] > >Emne: Struts and Action errors > > > > > > Hi there! I'm a newbie to Struts, and this question may be a > >little silly, > >sorry. > > How exactly do I use action errors? How do I render them? In my > >app, I > >control the session via RequestProcessor using processPreProcess method. > >If > >the session is invalid, I create a new error using > >ActionErrors errors = new ActionErrors(); errors.add("sessionExpired", > >new ActionError("errors.sessionExpired"); > > > >Well, and then I redirect the user to the desired login page, and there > >I have > > > >But nothing is shown. Also, in my actionForms, in the validate method, I > >add errors using the same syntax and none are shown either. In the Actions > >classes, the examples created by Websphere, I see that everytime those > >actionErrors are saved using a method called saveErrors, but this method > >is not static and belongs to Action class, the other modules does not > >access it. Any help? Thanks > >- To > >unsubscribe, e-mail: [EMAIL PROTECTED] For > >additional commands, e-mail: [EMAIL PROTECTED] > >- To > >unsubscribe, e-mail: [EMAIL PROTECTED] For > >additional commands, e-mail: [EMAIL PROTECTED] > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > __ Do you Yahoo!? Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes http://hotjobs.sweepstakes.yahoo.com/signingbonus - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: SV: Struts and Action errors
Ok, I got it. But what about the other questions? if I'm in a ActionForm, or a requestprocessor ... At 10:18 15/1/2004, you wrote: Hi there Use the saveErrors method in Action, before forwarding to jsp. Med venlig hilsen Claus Weng Madsen, Teamleder TELMORE A/S Carl Gustavsgade 3, 2630 Taastrup Telefon 70218700, Mobil 30242875 www.telmore.dk -Oprindelig meddelelse- Fra: Vinicius Carvalho [mailto:[EMAIL PROTECTED] Sendt: 15. januar 2004 12:24 Til: [EMAIL PROTECTED] Emne: Struts and Action errors Hi there! I'm a newbie to Struts, and this question may be a little silly, sorry. How exactly do I use action errors? How do I render them? In my app, I control the session via RequestProcessor using processPreProcess method. If the session is invalid, I create a new error using ActionErrors errors = new ActionErrors(); errors.add("sessionExpired", new ActionError("errors.sessionExpired"); Well, and then I redirect the user to the desired login page, and there I have But nothing is shown. Also, in my actionForms, in the validate method, I add errors using the same syntax and none are shown either. In the Actions classes, the examples created by Websphere, I see that everytime those actionErrors are saved using a method called saveErrors, but this method is not static and belongs to Action class, the other modules does not access it. Any help? Thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
SV: Struts and Action errors
Hi there Use the saveErrors method in Action, before forwarding to jsp. Med venlig hilsen Claus Weng Madsen, Teamleder TELMORE A/S Carl Gustavsgade 3, 2630 Taastrup Telefon 70218700, Mobil 30242875 www.telmore.dk -Oprindelig meddelelse- Fra: Vinicius Carvalho [mailto:[EMAIL PROTECTED] Sendt: 15. januar 2004 12:24 Til: [EMAIL PROTECTED] Emne: Struts and Action errors Hi there! I'm a newbie to Struts, and this question may be a little silly, sorry. How exactly do I use action errors? How do I render them? In my app, I control the session via RequestProcessor using processPreProcess method. If the session is invalid, I create a new error using ActionErrors errors = new ActionErrors(); errors.add("sessionExpired", new ActionError("errors.sessionExpired"); Well, and then I redirect the user to the desired login page, and there I have But nothing is shown. Also, in my actionForms, in the validate method, I add errors using the same syntax and none are shown either. In the Actions classes, the examples created by Websphere, I see that everytime those actionErrors are saved using a method called saveErrors, but this method is not static and belongs to Action class, the other modules does not access it. Any help? Thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]