You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@turbine.apache.org by "Dan E." <ey...@db.erau.edu> on 2001/11/15 19:02:58 UTC
Intake Problem
Hello all:
I am just begining to use Intake and it doesn't work for me. I am
following the HowTo and trying to validate a user name field as part of a
login procedure, but I get the error below in the turbine.log file.
I have included my intake.xml file and my Login.vm template below.
[Thu Nov 15 12:57:40 EST 2001] -- ERROR -- Error rendering Velocity
template: screens/Login.vm: Invocation of method 'get("userName")' in
class org.apache.turbine.services.intake.model.Group threw exception class
org.apache.turbine.util.TurbineException
[Thu Nov 15 12:57:40 EST 2001] -- ERROR -- Error rendering Velocity
template: screens/Login.vm: Error rendering Velocity template:
screens/Login.vm: Invocation of method 'get("userName")' in class
org.apache.turbine.services.intake.model.Group threw exception class
org.apache.turbine.util.TurbineException
--------------------------------------------------------------------------
<input-data basePackage="com.lmco.espares.">
<group name="Login" key="login">
<field key="u" name="userName" type="String">
<rule name="minLength" value="10">Please enter a userId</rule>
</field>
</group>
</input-data>
----------------------------------------------------------------------------
<td valign="middle" colspan="4" bgcolor="#CC3333"> <font color="#000066">
#set ($loginGroup =$intake.Login.Default)
#if (!$loginGroup.userName.isValid() )
$loginGroup.userName.Message<BR>
#end
<input type="text" name="$!loginGroup.userName.key" value="$!loginGroup.userName" size="30">
</font>
</td>
-----------------------------------------------------------------------------
Dan Eyassu
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>