Hi Jake,

As far as I know (and I've only had a chance to look at the code briefly), I think it is used by the Turbine (servlet) class to determine whether or not the submitted action is a login/logout and processes them differently from normal actions. If you'd like to know more about how Turbine works under the covers you can download the source and debug with it (I highly recommend it actually :).

Have a look at:

http://jakarta.apache.org/builds/jakarta-turbine/turbine-2/release/2.2/

cheers,
CP

Jake Fear wrote:
I see, the module packages item had been taken care of.  I was unaware
of the action.login property.  This makes some sense, because without
changing the property things seemed to work when I changed the name of
my custom class (but not its package).  It seems strange to me that this
particular action must be named explicitly.  Are you aware of the exact
purpose this serves?

Thanks again,
Jake

On Sun, 2002-12-29 at 20:52, CP Lim wrote:

Hi Jake,

Did you update your TR.properties file? You'll need to update the 'action.login' to reference your version of the login class. You'll also have to include your package so that turbine can find it in the 'module.packages' properties as well.

Let me illustrate with an example. Assuming your new login class is 'MyLogin' and it exists in the package 'com.mycompany.modules', then you'd edit the TR.properties entries as follows:

--------------------------------------------
#this will include your MyLogin class to the path to search for modules.
module.packages=com.mycompany.modules,org.apache.turbine.modules

#replace the previous 'LoginUser' class with your own.
action.login=MyLogin
--------------------------------------------

HTH,
CP

Jake Fear wrote:

I am using Turbine2.2 and I am attempting to subclass the LoginUser
class in order to add some cookie handling ability (so that it does not
always redirect to the default page).  However, even when I simply call
super.doPerform(data) in my own doPerform method it seems to break the
login functionality and I can never get logged in.  I tried moving my
functionality to the protected perform(RunData data) method and that
seems to have the same results.  Can anyone tell about any known issues
subclassing actions?

Cheers,
Jake


--
R E D S H E R I F F
C.P. Lim - Software Engineer
Level 1, 10 Queens Road +61 3 9864 0733 tel
Melbourne VIC +61 3 9864 0778 fax
Australia +61 413 781 846 mob

This message and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you are not the intended recipient, you are hereby notified that any use or dissemination of this communication is strictly prohibited. If you have received this message in error please notify us immediately by return email or telephone +61 (3) 9659 0432, then delete this message. Any views expressed in this message are those of the individual sender and many not necessarily reflect the views of Red Sheriff.


--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to