List Info

Thread: Re: setting an error message for the login screen.




Re: setting an error message for the login screen.
country flaguser name
France
2007-02-15 12:05:11
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"
<raphaelpieronigmail.com>
To          : turbine-userjakarta.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.
h
ttp://www.aliceadsl.fr/securitepc/default_copa.asp



------------------------------------------------------------
---------
To unsubscribe, e-mail: turbine-user-unsubscribejakarta.apache.org
For additional commands, e-mail: turbine-user-helpjakarta.apache.org


Re: setting an error message for the login screen.
user name
2007-02-16 04:03:14
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 <hoffmannapache.org>:
>
> 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:raphaelpieronigmail.com]
> > 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, thomas.ungfreesbee.fr
<thomas.ungfreesbee.fr>:
> > >
> > > 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"
<raphaelpieronigmail.com>
> > > To          : turbine-userjakarta.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.
> > > h
ttp://www.aliceadsl.fr/securitepc/default_copa.asp
> > >
> > >
> > >
> > >
------------------------------------------------------------
---------
> > > To unsubscribe, e-mail:
turbine-user-unsubscribejakarta.apache.org
> > > For additional commands, e-mail:
turbine-user-helpjakarta.apache.org
> > >
> > >
>
>
>
>
------------------------------------------------------------
---------
> To unsubscribe, e-mail: turbine-user-unsubscribejakarta.apache.org
> For additional commands, e-mail: turbine-user-helpjakarta.apache.org
>
>
Re: setting an error message for the login screen.
user name
2007-02-16 01:18:57
Thanks it works.

I used context.put("message", messageText);
and have not $message valuated in the template.


Many Thanks,

Raphaël

2007/2/15, thomas.ungfreesbee.fr <thomas.ungfreesbee.fr>:
>
> 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"
<raphaelpieronigmail.com>
> To          : turbine-userjakarta.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.
> h
ttp://www.aliceadsl.fr/securitepc/default_copa.asp
>
>
>
>
------------------------------------------------------------
---------
> To unsubscribe, e-mail: turbine-user-unsubscribejakarta.apache.org
> For additional commands, e-mail: turbine-user-helpjakarta.apache.org
>
>
AW: setting an error message for the login screen.
country flaguser name
Germany
2007-02-16 03:40:39
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:raphaelpieronigmail.com]
> 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, thomas.ungfreesbee.fr
<thomas.ungfreesbee.fr>:
> >
> > 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"
<raphaelpieronigmail.com>
> > To          : turbine-userjakarta.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.
> > h
ttp://www.aliceadsl.fr/securitepc/default_copa.asp
> >
> >
> >
> >
------------------------------------------------------------
---------
> > To unsubscribe, e-mail:
turbine-user-unsubscribejakarta.apache.org
> > For additional commands, e-mail:
turbine-user-helpjakarta.apache.org
> >
> >



------------------------------------------------------------
---------
To unsubscribe, e-mail: turbine-user-unsubscribejakarta.apache.org
For additional commands, e-mail: turbine-user-helpjakarta.apache.org


[1-4]

about | contact  Other archives ( Real Estate discussion Medical topics )