>>> I am trying to use the Intake Service in TDK 2.1 b4
>Sorry, we don't support questions against any of the past beta's. You need
>to upgrade to the released version: 2.1
>-jon
Makes sense!
I have upgraded to 2.1 release and ny problem remains the same:
in TurbineResources I have:
tool.request.intake=org.apache.turbine.services.intake.IntakeTool
# Intake Service
services.IntakeService.xml.path=WEB-INF/conf/intake.xml
The intake.xml looks like:
<input-data basePackage="com.mmi.site.">
<group name="Order" key="order">
<field name="Email" key="email" type="String">
<rule name="minLength" value="1">Please enter an email
address</rule>
<rule name="mask" value=".+@.+\..+">Please enter a valid email
address</rule>
</field>
</group>
</input-data>
(I have also tried it with rule: type=required only and with
rule: type=required AND rule minLength="1")
I am able to access the IntakeTool in my java code - also the group and its
field, but the
isAllValid()
method always returns true, even if rules from my intake.xml are not okay.
So I got the impression that turbine doesn't find my intake.xml file at all.
I made a test with deleting the intake.xml,
restarted my application and all stayed the same:
it obviously doesn't find the file.
Which is the correct way to tell the system where to look for the intake.xml
file?
Britt
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]