You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@turbine.apache.org by Melanie Philpot <Me...@anite.com> on 2004/05/13 14:48:52 UTC

turbine tools - ejb to xml, data validation

Can anyone help with tools for:

1. Getting data from an ejb and putting into xml
2. Validation of form

Thought of using Intake for form validation, however it does not come as a default in my TurbineResources.properties file. There is no description of the service. It is still in use and is it any good? Tips on how to set it up would be most helpful.

Melanie

===========================================================
Melanie Philpot 
Web Developer 
Central Government Division
Anite Public Sector	
110 Fleet Road
Fleet 
Hampshire 
GU51 4BL

tel:  01252 360650
ddi: 01252 360668
fax: 01252 819729

email:mailto:melanie.philpot@anite.com
web: http://www.aniteps.com
===========================================================
Registered Office: Anite Public Sector: 100 Longwater Avenue, GreenPark, Reading, Berkshire, RG2 6GP. VAT No. 732 9280 28 
Registered in England No. 4045673

This email and any files transmitted with it are confidential and are intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please inform the sender and do not print, copy or disclose its contents to any other person nor use it for any purpose other than for what it was intended.
nor use it for any purpose other than for what it was intended.



Scanned for viruses by MessageLabs. The integrity and security of this message cannot be guaranteed. This email is intended for the named recipient only, and may contain confidential information and proprietary material. Any unauthorised use or disclosure is prohibited.

---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-user-help@jakarta.apache.org


RE: turbine tools - ejb to xml, data validation

Posted by David Demner <tu...@demner.com>.
Hi Melanie,

Not sure about the first one, so I can't help you there.

I'm using Intake pretty successfully, although the documentation is a bit
lacking in places and just plain wrong in others.  I know, I know - I should
submit a patch or stop whining ;)

Going through my TurbineResources.properties (which started with the TDK) I
see:

services.IntakeService.classname=org.apache.turbine.services.intake.TurbineI
ntakeService
tool.request.om=org.apache.turbine.om.OMTool
tool.request.intake=org.apache.turbine.services.intake.IntakeTool
services.IntakeService.xml.path=WEB-INF/conf/intake.xml
services.IntakeService.serialize.path=WEB-INF/appData.ser

And then I have an intake.xml, which started from the TDK too as:

<!DOCTYPE input-data SYSTEM "dtd/intake.dtd">
<input-data basePackage="blah.">

	<!-- intake example with the login screen -->
	<group name="Login" key="login">
		<field name="Username" key="username" type="String">
			<rule name="required" value="true">Please enter a
username</rule>
			<rule name="mask" value="^\w{1,20}$">Your username
must be between 1 and 20 characters long and consist only of
letters/numbers</rule>
		</field> 
		<field name="Password" key="password" type="String">
			<rule name="required" value="true">Please enter a
password</rule>
			<rule name="minLength" value="4">The password you
entered was too short, please try again.</rule>
		</field>
	</group>
</input-data>

So playing around with these should get you going.

There's a thread at
http://marc.theaimsgroup.com/?l=turbine-user&m=108135151011107&w=2 on using
commons-validator instead of intake, but I've never tried it.

There are some docs at
http://jakarta.apache.org/turbine/turbine-2.3/howto/intake-howto.html but
again, it's a little unclear in places.

Good luck,

DAvid

-----Original Message-----
From: Melanie Philpot [mailto:Melanie.Philpot@anite.com] 
Sent: Thursday May 13, 2004 5:49 AM
To: Turbine User (E-mail)
Subject: turbine tools - ejb to xml, data validation


Can anyone help with tools for:

1. Getting data from an ejb and putting into xml
2. Validation of form

Thought of using Intake for form validation, however it does not come as a
default in my TurbineResources.properties file. There is no description of
the service. It is still in use and is it any good? Tips on how to set it up
would be most helpful.

Melanie

===========================================================
Melanie Philpot 
Web Developer 
Central Government Division
Anite Public Sector	
110 Fleet Road
Fleet 
Hampshire 
GU51 4BL

tel:  01252 360650
ddi: 01252 360668
fax: 01252 819729

email:mailto:melanie.philpot@anite.com
web: http://www.aniteps.com
===========================================================
Registered Office: Anite Public Sector: 100 Longwater Avenue, GreenPark,
Reading, Berkshire, RG2 6GP. VAT No. 732 9280 28 
Registered in England No. 4045673

This email and any files transmitted with it are confidential and are
intended solely for the use of the individual or entity to whom they are
addressed. If you have received this email in error please inform the sender
and do not print, copy or disclose its contents to any other person nor use
it for any purpose other than for what it was intended.
nor use it for any purpose other than for what it was intended.



Scanned for viruses by MessageLabs. The integrity and security of this
message cannot be guaranteed. This email is intended for the named recipient
only, and may contain confidential information and proprietary material. Any
unauthorised use or disclosure is prohibited.

---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-user-help@jakarta.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-user-help@jakarta.apache.org