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 00:52:10 UTC
Intake Error
Hello:
Can anyone help, I am getting the following Intake related error message
in the turbine.log file:
[Wed Nov 14 18:50:45 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
[Wed Nov 14 18:50:45 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
My intake.xml file looks like:
<input-data basePackage="com.lmco.espares.">
<group name="Login" key="login">
<field name="userName" key="userName" type="String">
<rule name="required" value="true">Please enter a userId</rule>
<rule name="mask" value=".+@.+\..+">Please enter a valid user
id</rule>
</field>
</group>
</input-data>
My template looks like:
<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>