|
»
« Return to Thread: servlet question
Re: servlet question
Hi,
Actually this should work since RIFE is setup as a filter, so can be
'above' your servlet.
For this to work though, you'll probably have to setup a element that
you bind to the same URL and just call 'defer()' inside the
processElement method. Without this, RIFE will not consider the URL of
the servlet as one of the URLs that it should process. It's probably
easier if you setup this element with a wildcard URL to prevent you
having to set this up for each servlet like this.
Hope this helps,
Geert
On 23 Nov 2008, at 01:01, dk wrote:
>
> Hello everyone,
>
> I am trying to find whether sth is possible with RIFE or not.
>
> Say I want to use a servlet like below
> -----
> public class Test extends HttpServlet
> {
> public void doGet(HttpServletRequest req, HttpServletResponse res)
> throws ServletException, IOException
> {
> PrintWriter out = res.getWriter();
>
> out.println("Hello, world!");
> out.close();
> }
> }
> -----
> which is fairly simple. I added this to web.xml and it works ok. I can
> also put it under /admin/hello.
>
> What I want to do is to use the authentication mechanism of RIFE so
> that a user can not reach my servlet under /admin unless he is logged
> in.
>
> Thanks
--
Geert Bevin
Terracotta - http://www.terracotta.org
Uwyn "Use what you need" - http://uwyn.com
RIFE Java application framework - http://rifers.org
Music and words - http://gbevin.com
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "rife-users" group.
To post to this group, send email to rife-users@...
To unsubscribe from this group, send email to rife-users+unsubscribe@...
For more options, visit this group at http://groups.google.com/group/rife-users?hl=en
-~----------~----~----~----~------~----~------~--~---
« Return to Thread: servlet question
| Free embeddable forum powered by Nabble | Forum Help |
