users@glassfish.java.net

Re: [webtier] jsf login page

From: Theodor Richard <theodor.richard_at_googlemail.com>
Date: Thu, 1 Jul 2010 16:19:50 +0200

Thanks Richard,

I'll definitely try this out.

I love the way how Java EE tries to ease the development process and saves
time and money. But so far, that's all in theory to me. In practice, you end
up spending a lot of time getting your app work in Glassfish. And that's
really time consuming, even for non complex applications.

Regards,
Birol

On Thu, Jul 1, 2010 at 1:53 PM, <glassfish_at_javadesktop.org> wrote:

> Hi Theodor
>
> > thanks for the link. Does that mean I have to check for every page
> whether
> the current user is authenticated and redirect to the login page if it's
> not
> the case?
>
> No :) It happens in your session. You just need to assign role based access
> to your system.
>
> So users with role admin can browse /admin/
> But users with role normal_users can not browse /admin/
>
> Or users with role admin can only call abcObject.getCurrentUsers(); with
> getCurrentUsers() as an annotation @RolesAllowed("admin")
>
> The are some very nice articles on "Container based Authentication".
> NetBeans also has cool wizards to help you with the sun-web.xml
> It's JavaEE's way of saving you time and money.
>
> Hope this helps
> Richard.
> [Message sent by forum member 'rjdkolb']
>
> http://forums.java.net/jive/thread.jspa?messageID=476504
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>
>