That is the case as you can see. public class Login extends VelocityAction
I used a $var where var is a pull tool set to request. It was reinitialised after failed login. I use the same mecanism when the user is logged, and have no problem with the pull tool is not reinitialized. The data.setMessage fills my needs. Many thanks Raphaël 2007/2/16, Juergen Hoffmann <[EMAIL PROTECTED]>:
Hi Raphael, to make sure everything works within your customized LoginAction, you should extend LoginUser though in favor of VelocityAction Kind regards Juergen > -----Ursprüngliche Nachricht----- > Von: Raphaël Piéroni [mailto:[EMAIL PROTECTED] > Gesendet: Freitag, 16. Februar 2007 08:19 > An: Turbine Users List > Betreff: Re: [turbine2.3.2] setting an error message for the login > screen. > > Thanks it works. > > I used context.put("message", messageText); > and have not $message valuated in the template. > > > Many Thanks, > > Raphaël > > 2007/2/15, [EMAIL PROTECTED] <[EMAIL PROTECTED]>: > > > > Hi, > > > > in your VM template where you want to show the message, do > > you have something as followed: > > > > $data.getMessage() > > > > And in the action login class, you should have something as > > followed > > > > $data.setMessage(...) > > > > Regards, > > Thomas > > > > ---------- Initial Header ----------- > > > > From : "Raphaël Piéroni" <[EMAIL PROTECTED]> > > To : [email protected] > > Cc : > > Date : Thu, 15 Feb 2007 16:03:52 +0100 > > Subject : [turbine2.3.2] setting an error message for the > > login screen. > > > > Hi, > > > > I'd like to add an error message when an user fails to login. > > > > In my customised login action (extends VelocityAction) > > I put a message in the velovity context. > > But, that message is never shown in the template. > > > > I can't figure out what to do. > > Can that be the fault of > > data.setUser(TurbineSecurity.getAnonymousUser()); > > which is called at the end of the action when the user is > > not logged ? > > > > > > Thanks in advance for any help. > > > > > > Raphaël > > > > > > --------------------- ALICE SECURITE ENFANTS --------------------- > > Protégez vos enfants des dangers d'Internet en installant Sécurité > > Enfants, le contrôle parental d'Alice. > > http://www.aliceadsl.fr/securitepc/default_copa.asp > > > > > > > > --------------------------------------------------------------------- > > 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]
