Title: RE: [OS-webwork] Interceptors Question
Your problem is that the result strings are case sensitive, try "login" instead.  I did this very same thing for wafer, you can see the interceptor at http://cvs.sourceforge.net/viewcvs.py/wafer/examples/webwork2/webwork2-weblog/WEB-INF/src/com/flyingbuttress/wafer/interceptor/AuthorizeInterceptor.java?rev=1.1&view=markup
 
Thanks for the Seraph info.  For those who want to use it check out, http://opensource.atlassian.com/
 
Kris Thompson
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Sunday, October 19, 2003 11:04 AM
To: [EMAIL PROTECTED]
Subject: RE: [OS-webwork] Interceptors Question

Have you looked at seraph?  I am using it relatively successfully..  I had to tweak it a bit to work with the latest and greatest of OSUser.  Apparently their is possible version that is independent of OSUser.

Basically Seraph deals with figuring out if someone is logged in or not, and if they have the appropriate permissions to access a page. 

Then, I have a UserAware interface that my actions that need user information (for instance to display the user name) on.  And an interceptor that populates the user object.

Eric

-----Original Message-----
From: Fred Lamuette [mailto:[EMAIL PROTECTED]]
Sent: Sunday, October 19, 2003 10:32 AM
To: [EMAIL PROTECTED]
Subject: [OS-webwork] Interceptors Question


I want to authentificate users with a custom interceptor. I can test the
rights, and if the access is not granted, interrupt the action execution (by
not calling invokation.invoke()) and then return the string "LOGIN".
Obviously, nothing is executed,  because the result "LOGIN" is not found the
results defined in my action config, but I thought that global actions could
be retrieved and then executed if defined in the root package. Am I wrong ?
Richard.



-------------------------------------------------------
This SF.net email sponsored by: Enterprise Linux Forum Conference & Expo
The Event For Linux Datacenter Solutions & Strategies in The Enterprise
Linux in the Boardroom; in the Front Office; & in the Server Room
http://www.enterpriselinuxforum.com
_______________________________________________
Opensymphony-webwork mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork

Reply via email to