You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@turbine.apache.org by Wayne Lovely <wa...@core.com> on 2004/07/11 17:58:31 UTC

Re: commons-validation

I'm not sure if this is good way to do it, but it is the approach that 
I've taken:

1. Make a utility class to wrap commons-validator to deal with:

       loading a validator config
       init and run the validator
       check the validator for errors

2. On a per action basis:

       make an instance of the utility class
       pass in :
         ruleFile (String),
         formBean (JavaBean),
         formName (String),
         errorMsgs (Hashtable)
       and get a boolean back indicating whether there were errors or not

What this allows me to do, is to split my validator config files if I want.
 From a resource perspective, this is expensive, but I was not ready to
look at how to implement a service for this.


Wayne



Henning P. Schmiedehausen wrote:

>"Mark Lybarger" <Ma...@CBC-Companies.com> writes:
>
>I admit that I've looked at the validator some time ago and then it
>looked to me like one big kludge. I don't know whether this has
>changed (this was long before the first validator release) but the
>fact that it seems to have been a part of Struts suggests, that it
>should be stable and proven.
>
>I don't know if someone has already combined commons-validator and
>Turbine but I would be interested in code examples.
>
>	Regards
>		Henning
>
>  
>
>>doh, sorry.  s/commons-logging/commons-validator
>>    
>>
>
>  
>
>>>-----Original Message-----
>>>From: Mark Lybarger 
>>>Sent: Tuesday, July 06, 2004 10:11 AM
>>>To: 'Turbine Users List' (E-mail)
>>>Subject: commons-logging with turbine
>>>
>>>
>>>We're interested in using commons-logging flexability with 
>>>our turbine applications. We're currently using intake for 
>>>validating our form information, but need more robust 
>>>validation (cross field validations, etc).  Is the validator 
>>>easily swapable? Is there documentation/experience out there 
>>>of easily using the commons-validator (or a derivitive) with 
>>>turbine?  Our velocity templates would also need to easily 
>>>identify if a particular field is valid or not... thoughts? 
>>>suggestions?
>>>
>>>
>>>
>>>---------------------------------------------------------------------
>>>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
>>    
>>
>
>
>  
>


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


Re: Compiling turbine-2.3 with maven fails

Posted by "Henning P. Schmiedehausen" <hp...@intermeta.de>.
Thomas Ebeling <t....@conis.de> writes:

>Thank you, but this didn't fix the "No goal [torque:om]"-Problem...

maven -DartifactId=maven-torque-plugin -DgroupId=torque -Dversion=3.1.1-dev plugin:download


	Regards
		Henning

-- 
Dipl.-Inf. (Univ.) Henning P. Schmiedehausen          INTERMETA GmbH
hps@intermeta.de        +49 9131 50 654 0   http://www.intermeta.de/

RedHat Certified Engineer -- Jakarta Turbine Development  -- hero for hire
   Linux, Java, perl, Solaris -- Consulting, Training, Development

"Fighting for one's political stand is an honorable action, but re-
 fusing to acknowledge that there might be weaknesses in one's
 position - in order to identify them so that they can be remedied -
 is a large enough problem with the Open Source movement that it
 deserves to be on this list of the top five problems."
                       -- Michelle Levesque, "Fundamental Issues with
                                    Open Source Software Development"

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


Re: Compiling turbine-2.3 with maven fails

Posted by Thomas Ebeling <t....@conis.de>.
Jeffery Painter wrote:
> looks like you renamed the turbine src code folder to jakarta-tubine-2.3 
> and the project is looking for something in jakarta-turbine-2/

Thank you, but this didn't fix the "No goal [torque:om]"-Problem...

Regards,
Thomas Ebeling
> 
> 
> 
> On Mon, 12 Jul 2004, Thomas Ebeling wrote:
> 
> 
>>Hello,
>>
>>I've been trying for some hours to compile turbine with maven, followed 
>>all instructions, installed all plugins, and still I get this:
>>
>>-----
>>  __  __
>>|  \/  |__ _Apache__ ___
>>| |\/| / _` \ V / -_) ' \  ~ intelligent projects ~
>>|_|  |_\__,_|\_/\___|_||_|  v. 1.0-rc4
>>
>>Tag library requested that is not present: 'maven' in plugin: 'null'
>>Plugin 'maven-deploy-plugin' in project 'jakarta-turbine-2' is not available
>>Tag library requested that is not present: 'maven' in plugin: 'null'
>>Tag library requested that is not present: 'maven' in plugin: 'null'
>>
>>BUILD FAILED
>>File...... /home/rajan/src/jakarta-turbine-2.3/maven.xml
>>Element... attainGoal
>>Line...... 144
>>Column.... 35
>>No goal [torque:om]
>>Total time: 5 seconds
>>Finished at: Mon Jul 12 13:55:33 CEST 2004
>>
>>------
>>
>>Java Version: j2sdk1.4.2_02
>>Maven: v. 1.0-rc4
>>
>>I would really appreciate any help.
>>
>>Thank you!
>>
>>Regards,
>>Thomas Ebeling
>>
>>
>>
>>
> 
> 


-- 
Thomas Ebeling
Development & System Administration
conis Informationssysteme GmbH
Hohenzollerndamm 196
10717 Berlin
Germany
Tel.: +49 (0) 30 / 86 31 34 00
Fax: + 49 (0) 30 / 86 31 34 02
Mobil: +49 (0) 151 / 15 10 56 67
E-Mail: t.ebeling@conis.de
Internet: http://www.conis.de

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


Re: Compiling turbine-2.3 with maven fails

Posted by Jeffery Painter <pa...@kiasoft.com>.
looks like you renamed the turbine src code folder to jakarta-tubine-2.3 
and the project is looking for something in jakarta-turbine-2/



On Mon, 12 Jul 2004, Thomas Ebeling wrote:

> Hello,
> 
> I've been trying for some hours to compile turbine with maven, followed 
> all instructions, installed all plugins, and still I get this:
> 
> -----
>   __  __
> |  \/  |__ _Apache__ ___
> | |\/| / _` \ V / -_) ' \  ~ intelligent projects ~
> |_|  |_\__,_|\_/\___|_||_|  v. 1.0-rc4
> 
> Tag library requested that is not present: 'maven' in plugin: 'null'
> Plugin 'maven-deploy-plugin' in project 'jakarta-turbine-2' is not available
> Tag library requested that is not present: 'maven' in plugin: 'null'
> Tag library requested that is not present: 'maven' in plugin: 'null'
> 
> BUILD FAILED
> File...... /home/rajan/src/jakarta-turbine-2.3/maven.xml
> Element... attainGoal
> Line...... 144
> Column.... 35
> No goal [torque:om]
> Total time: 5 seconds
> Finished at: Mon Jul 12 13:55:33 CEST 2004
> 
> ------
> 
> Java Version: j2sdk1.4.2_02
> Maven: v. 1.0-rc4
> 
> I would really appreciate any help.
> 
> Thank you!
> 
> Regards,
> Thomas Ebeling
> 
> 
> 
> 

-- 
Thank you,
                                                                                                                                               
Jeffery Painter
President
Kiasoft, Inc.                       (910) 352-3699
    3205 Randall Parkway, Suite 119
    Wilmington, NC 28403

- --
painter@kiasoft.com                     http://kiasoft.com
PGP FP: 9CE8 83A2 33FA 32B1 0AB1  4E62 E4CB E4DA 5913 EFBC
                                                                                                                                               
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)
                                                                                                                                               
iD8DBQE/qEQE5Mvk2lkT77wRAnMJAJ9vJ6qOkg/mvqqIpz7troCEQJ8bFACglu/U
YNXabx7DZOV2Hd9LwSTmGpY=
=dWiu
-----END PGP SIGNATURE-----

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


Compiling turbine-2.3 with maven fails

Posted by Thomas Ebeling <t....@conis.de>.
Hello,

I've been trying for some hours to compile turbine with maven, followed 
all instructions, installed all plugins, and still I get this:

-----
  __  __
|  \/  |__ _Apache__ ___
| |\/| / _` \ V / -_) ' \  ~ intelligent projects ~
|_|  |_\__,_|\_/\___|_||_|  v. 1.0-rc4

Tag library requested that is not present: 'maven' in plugin: 'null'
Plugin 'maven-deploy-plugin' in project 'jakarta-turbine-2' is not available
Tag library requested that is not present: 'maven' in plugin: 'null'
Tag library requested that is not present: 'maven' in plugin: 'null'

BUILD FAILED
File...... /home/rajan/src/jakarta-turbine-2.3/maven.xml
Element... attainGoal
Line...... 144
Column.... 35
No goal [torque:om]
Total time: 5 seconds
Finished at: Mon Jul 12 13:55:33 CEST 2004

------

Java Version: j2sdk1.4.2_02
Maven: v. 1.0-rc4

I would really appreciate any help.

Thank you!

Regards,
Thomas Ebeling



-- 
Thomas Ebeling
Development & System Administration
conis Informationssysteme GmbH
Hohenzollerndamm 196
10717 Berlin
Germany
Tel.: +49 (0) 30 / 86 31 34 00
Fax: + 49 (0) 30 / 86 31 34 02
Mobil: +49 (0) 151 / 15 10 56 67
E-Mail: t.ebeling@conis.de
Internet: http://www.conis.de

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