Thanks for the answer :-)

How do I then connect this functionality to "my" user-table, or can I get AndroMDA to generate a table definition that I can use (with the rights and everything ) ?

// Mikael


Wouter Zoons wrote:

Nevyx wrote:

Hello,

Does anyone know howto validate that you have logged intop a system before each page.
I have added a LoginSession object, and I would like to validate the existence of these before every action class (is it possible to change what Action class you inherit from so that one can do the validation here or is there another way which this is supposed to be done ?


I have seen that you have some kind of login functionality (with rights...), but I haven't seen how to enable this (I guess that I have to refer to this somehow from my user structure).

Thansk for any help.

// Mikael



try these javadocs:

http://java.sun.com/j2ee/1.4/docs/api/javax/servlet/http/HttpServletRequest.html#getRemoteUser()


http://java.sun.com/j2ee/1.4/docs/api/javax/servlet/http/HttpServletRequest.html#getUserPrincipal()



http://java.sun.com/j2ee/1.4/docs/api/javax/servlet/http/HttpServletRequest.html#isUserInRole(java.lang.String)



-- Wouter

ps: it's never needed to extend the action classes or anything like that, since they merely encapsulate process logic (not business logic), customization is done in the controller callbacks


-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games.
Get your fingers limbered up and give it your best shot. 4 great events, 4
opportunities to win big! Highest score wins.NEC IT Guy Games. Play to
win an NEC 61 plasma display. Visit http://www.necitguy.com/?r=20
_______________________________________________
Andromda-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/andromda-user





------------------------------------------------------- This SF.Net email is sponsored by: NEC IT Guy Games. Get your fingers limbered up and give it your best shot. 4 great events, 4 opportunities to win big! Highest score wins.NEC IT Guy Games. Play to win an NEC 61 plasma display. Visit http://www.necitguy.com/?r=20 _______________________________________________ Andromda-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/andromda-user

Reply via email to