The first thing that I would like to point out is that basic difference of leaving off the ".setPage()" on the $link context object. I belive that it will use template.homepage from your TR.props file in this case. I am not certain of this because I have not really looked at the code. It seems like I ran across this a while back....
In your first example, the action that you are calling is LoginUser. Turbine will execute the doPerform() method of the LoginUser class as a result. It will use the setting of module.packages from TR.props to determine which packages to look in. It will take each entry (multiple entries are comma seperated), and add ".actions" to the end of the package name. It then adds the class name to arrive at the fully qualified class name. Example: module.packages=com.mycompany.sampleapp.modules,org.apache.turbine.modul es Turbine will attempt to load com.mycompany.sampleapp.modules.actions.LoginUser first. If that fails, it will attempt to load org.apache.turbine.modules.actions.LoginUser. There is a LoginUser action that come with Turbine. If you check your module.packages setting, you will see where it is trying to look. Turbine comes with a default LoginUser action. You might want to make sure that you have org.apache.turbine.modules listed on your module.packages setting. I am not sure about the SQL action. Is this is a how-to or similar document? > -----Original Message----- > From: Eigen Technology Pty Ltd [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, January 01, 2003 12:26 AM > To: [EMAIL PROTECTED] > Subject: setAction > > > what is the difference between: > > <form method="post" action="$link.setAction("LoginUser")"> > > and > > <form method="post" > action="$link.setPage("Index.vm").setAction("SQL")"> > > where the setPage is not found in the first Form? I found > SQL.java in the directory tree, but not LoginUser.java > > help appreciated. > michael > > > > -- > To unsubscribe, e-mail: > <mailto:turbine-user-> [EMAIL PROTECTED]> > For > additional commands, > e-mail: <mailto:[EMAIL PROTECTED]> > > -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
