Hi Jonathan,
Marc has shown how to implement an auth mechanism at:
http://weblogs.java.net/blog/mhadley/archive/2008/03/authentication.html
Hope it helps,
~Jakub
On Fri, Apr 04, 2008 at 02:10:31PM +0100, Jonathan Cook - Online wrote:
> Hi,
>
> Probably a very simple question so apologies in advance but can you get
> at the HttpSession from within a resource class in a similar way that a
> Servlet class can?
>
> For example if people are logging on to an application with
> username/password could I store their username in the session. Maybe
> this goes against some RESTful principles and there is a different
> approach for this type of stuff but its all quite new to me.
>
> Thanks
> Jon
>
>
>
> http://www.bbc.co.uk/
> This e-mail (and any attachments) is confidential and may contain personal views which are not the views of the BBC unless specifically stated.
> If you have received it in error, please delete it from your system.
> Do not use, copy or disclose the information in any way nor act in reliance on it and notify the sender immediately.
> Please note that the BBC monitors e-mails sent or received.
> Further communication will signify your consent to this.
>