You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@turbine.apache.org by Rob Ward <rw...@paradata.com> on 2001/08/11 02:01:30 UTC
ACL becomes null - why?
Hi,
I'm trying to build a first, simple application with Turbine, and I've come
across a baffling problem: I find that when I attempt to perform an action,
the ACL becomes null, and the user is presented with the login screen again.
Here's what I've done:
I have a SecureScreen class, just like in the sample application, and
similarly, a SecureAction class. The only screens classes I have now are
Index and Default. I have templates, Index.vm, Login.vm, Select.vm.
On the index page, I have a form:
<form name="$link.setAction("Search")" method="post">
And it is submitted as follows:
<input type=submit name="eventSubmit_doSearch" value="Search">
And I have created a corresponding action class, Search, that extends
SecureAction and has a method doSearch.
I can login correctly, and the Index page is displayed (i.e. the user is
validated just fine). However when I try to submit the form, I get the login
screen!
>From debugging, I can see that the Search action class is never used -
instead, SecureScreen's isAuthorised method fails because the data.getACL
method returns null, and so the user is deemed to have not logged in. I'm
not sure why this is happening, since I know the session is ok.
So my question is - what am I missing here? Why isn't the action class being
invoked, and why is the ACL becomming null? Any help would be much
appreciated.
Thanks,
Rob
---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-user-help@jakarta.apache.org
Re: ACL becomes null - why?
Posted by Jon Stevens <jo...@latchkey.com>.
on 8/10/01 5:01 PM, "Rob Ward" <rw...@paradata.com> wrote:
> <form name="$link.setAction("Search")" method="post">
You need a $link.setPage() still...
-jon
---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-user-help@jakarta.apache.org