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          : turbine-user@jakarta.apache.org
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]

Reply via email to