hi all,
i started to use turbine and velocity to implement a small web project.
i use the turbine 2.1 release and the included velocity classes.
the backend is a mysql db and jdk is 1.3.1.
i do not use the turbine db with TURBINE_USER etc. tables.
i subclasses turbine user to get the user information from my own db.
( this is mainly because i didn't get the torque stuff yet ).
i made a welcome.vm which is a form to choose the language. the action
for this form puts the chosen language into the context.
String language = new String(
data.getParameters().getString("language_select") );
context.put( "chosen_language", language );
and switches the screen to mylogin.vm
data.setScreenTemplate("/mylogin.vm");
this works fine and the according class reads a .properties file with
the right texts.
it uses them like:
<b>$Localize.getWelcomeText()</b></font>
where Localize is an object with methods for text information and is put
in the
context by welcome.vm, too.
mylogin.vm is a form, too with an according action to check the username
and password.
if it fails it redirects to mylogin.vm (itself) else it logs in and
shows an :'it worked screen'
AND HERE IS MY PROBLEM ( at last )
when login fails all the context objects seem to be gone because the
mylogin.vm
now displays $Localize.getWelcomeText() instead of e.g.: 'hello user' or
something.
it seems like turbine or velocity creates a new context because i do not.
i would like to keep the context because in case of a failed loin attemp
i don't want to force the
user to choose the language again.
how can i keep the context through screen switches ?
another thing is that i didn't turn on a session anywhere. do i have to
do this or
is it done automatically for me ??
any opinions apreciated and thanks for your help,
klaas
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]