Joe,

That's along the lines of what I am playing with, except I chose to not use
BSF.  Groovy has an 'embedded' mode that allows you to call groovy directly
from a Java class.  I can get this to work (i.e. invoke the script), but I
just can't figure out how to pass in a complex argument.  I was hoping there
might be a couple of groovy guru's (?) that could shed some light on this.

Later,

Jerry Jalenak
Development Manager, Web Publishing
LabOne, Inc.
10101 Renner Blvd.
Lenexa, KS  66219
(913) 577-1496

[EMAIL PROTECTED]


> -----Original Message-----
> From: Joe Germuska [mailto:[EMAIL PROTECTED]
> Sent: Monday, June 21, 2004 12:06 PM
> To: Struts Users Mailing List
> Subject: RE: [OT] Accessing Http Request with Groovy
> 
> 
> I don't know the answer to your question, but I'm generally 
> interested in using scripting languages in Struts, and validation 
> seems like one of the likely candidates.
> 
> Don Brown has taken a few steps towards hooking BSF into 
> commons-validator; I'm sure he'd be happy to have other interested 
> parties testing it out and/or contributing.  Groovy does have a BSF 
> adapter, so it should fit in pretty neatly.
> 
> I'm also thinking that one could use just BSF and a chain command to 
> do validation without using commons-validator at all.  Of course, 
> then you'd lose the client-side javascript which is my favorite 
> benefit from using commons-validator.
> 
> Joe
> 
> -- 
> Joe Germuska
> [EMAIL PROTECTED]
> http://blog.germuska.com
> "In fact, when I die, if I don't hear 'A Love Supreme,' I'll turn 
> back; I'll know I'm in the wrong place."
>     - Carlos Santana
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

This transmission (and any information attached to it) may be confidential and
is intended solely for the use of the individual or entity to which it is
addressed. If you are not the intended recipient or the person responsible for
delivering the transmission to the intended recipient, be advised that you
have received this transmission in error and that any use, dissemination,
forwarding, printing, or copying of this information is strictly prohibited.
If you have received this transmission in error, please immediately notify
LabOne at the following email address: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to