> -----Original Message-----
> From: Eigen Technology Pty Ltd [mailto:[EMAIL PROTECTED]]
> Sent: Monday, January 06, 2003 6:24 PM
> To: [EMAIL PROTECTED]
> Subject: How to redirect after Login ! More information
> needed! (Chris Campbell)
>
>
> I am having some difficulties in following the instructions
> as given in the reply:
>
> http://archives.apache.org/eyebrowse/ReadMsg?listName=&msgId=290818
>
>
> >All the problem was that the LoginAction was an extension of
> >VelocitySecureAction, and this class throws the template without
> >executing the screen java code.
> >
> >Now it is an extension of VelocityAction.
> >
> >I created a Login.java, (as you suggested) which has to be
> an extension
> >of VelocityScreen, and not secure as seen for the Action upper and i
> >changed a piece of code in the IsAuthorized method in my
> SecureScreen
> >class.
>
>
> 1) Is this new Login.java an extension of VelocityAction or
> VelocityScreen? It is a bit confusing from the above description.
>
If it is a screen module, VelocityScreen. If it is an action,
VelocityAction.
> 2) Do I need to change the line:
>
> FROM action.login=LoginUser
> TO action.login=Login
>
> in TR.properties as a consquence?
>
>
action.login must be the name of the login action that you want to use.
If your new login action is calls 'Login' then your are correct about
the required change.
> >3. in the action of the Login form, set the template to =
> >$destiation_template and for each parameter add a hidden
> input field to
> >= the form
> >
> >ie
> >
> <formmethod="post"action="$ling.setAction("Login").setTemplate
> ($destination_template)">
> >
> >#foreach($parameter in $parameters)
> ><input type=hidden name="$parameter" =
> >value="$parameters.get($parameter)">
> >
> >blah blah...
> >
> ></form>
>
>
> 3) I am having problem with the <form ..... etc line.
>
> after I typed in the login username and passwd, the URL bar shows:
>
> http://ns1.eigentechnology.net:8080/medici/servlet/$link.setAction(
>
>and sent me an page not found message.
If you see $link.... Then Velocity could not resolve the $link pull
tool. This sometimes happens if an exception was thrown during the
execution of the tool. Try <form method="post"
action='$link.setAction("Login").setTemplate("$destination_template")'>
>Can anyone give me some more instructions on this please.
>thanks
>michael
--
To unsubscribe, e-mail:
<mailto:[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]>