You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@turbine.apache.org by Eigen Technology Pty Ltd <mi...@eigentechnology.com> on 2002/12/22 11:12:48 UTC
Archive
This is a really Newbie question.
If I want to search the archive for some old questions, do I need to
download all the files and search through them or is there a site on the
web that I can perform search. If it is the latter case, would appreciate
if someone could point me to the site.
cheers
michael
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: Archive
Posted by Eigen Technology Pty Ltd <mi...@eigentechnology.com>.
Got it ...
michael
> On 22/12/2002 9:22 PM, "Eigen Technology Pty Ltd"
> <mi...@eigentechnology.com> wrote:
>
>> Scott,
>>
>> I was a Perl/PHP user and now switching to Turbine.
>>
>> If I have more than one Form elements passed on from one page to the
>> other, how does this:
>>
>> $data.Parameters.HTMLElementName
>>
>> method resolve it? (there is this split command in Perl/PHP)
>>
>> In a .vm file I coded:
>>
>> #set($test=data.Parameters.HTMLElementName)
>> $test
>>
>> but the resultant Page on my broswer gave me an Error. What went
>> wrong?
>>
>> cheers
>> michael
>
> I didn't mean to use the literal String "HTMLElementName" - you should
> substitute this with the name attribute you assigned to the html input
> element in your form (<input name="myInputElementName" ...>).
>
> "$data" is the Turbine RunDataService (configured in your
> TurbineResources.properties file).
> "Parameters" is resolved to the getParameters() method in RunData using
> reflection.
> "myInputElementName" is resolved via reflection to
> get("myInputElementName") (well I think it is, if I am wrong just expand
> it yourself or if the type is important do getInt("myInputElementName")
> or whatever).
>
> See the "Parameter and Cookie Parsing" section of:
> http://jakarta.apache.org/turbine/turbine-2/services/rundata-service.html
>
> Cheers,
>
> Scott
> --
> Scott Eade
> Backstage Technologies Pty. Ltd.
> http://www.backstagetech.com.au
> .Mac Chat/AIM: seade at mac dot com
>
>
> --
> To unsubscribe, e-mail:
> <ma...@jakarta.apache.org> For additional
> commands, e-mail: <ma...@jakarta.apache.org>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
RE: AW: Regular Expression
Posted by Quinton McCombs <qm...@nequalsone.com>.
Perl, I believe.
> -----Original Message-----
> From: Laurie Harper [mailto:zodiac@holoweb.net]
> Sent: Friday, December 27, 2002 9:27 AM
> To: turbine-user@jakarta.apache.org
> Subject: Re: AW: Regular Expression
>
>
> It may depend on versions, but TDK 2.2 seems to be using ORO.
> I have no
> idea which RE syntax Intake uses (ORO supports several flavours).
> Unfortunately the ORO documentation doesn't describe the RE
> languages it
> implements, though; you are expected to go and look up the
> documentation
> for the original implementation (Perl5, awk, etc).
>
> Anyone know which of ORO's RE languages Intak expects?
>
> L.
>
> Marc Lustig wrote:
>
> >
> > >-----Ursprüngliche Nachricht-----
> > >Von: Eigen Technology Pty Ltd [mailto:michael@eigentechnology.com]
> > >Gesendet: Sonntag, 22. Dezember 2002 13:40
> > >An: turbine-user@jakarta.apache.org
> > >Betreff: Regular Expression
> > >
> > >
> > >This question is probably related to my Perl/PHP background. There
> > >may be a better alternative in Turbine/in-Take/Criteria,
> if there is,
> > >please let me know.
> > >
> > >My FORM contains a keyword in a field. To match all rows that
> > >contains this keyword requires regular expression. My
> questions are:
> > >
> > >1. Can I extract datum from one field in a row to perform Regular
> > >Expression comparison ?
> >
> >
> > See
> > http://jakarta.apache.org/turbine/turbine-2/howto/intake-howto.html
> > Intake has a validation for RegExp:
> > Error message for regular
> > expression failed
> >
> > >2. Where can I find a good link on Regexp How-to or
> whatever is used
> > >by Java2 now?
> >
> >
> > As far as I know Intake uses the Apache RegExp
> > http://jakarta.apache.org/regexp/index.html
> >
> >
> > Marc
> >
> >
> > --
> > To unsubscribe, e-mail:
> > For additional commands, e-mail:
>
>
>
> --
> To unsubscribe, e-mail:
> <mailto:turbine-user-> unsubscribe@jakarta.apache.org>
> For
> additional commands,
> e-mail: <ma...@jakarta.apache.org>
>
>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: AW: Regular Expression
Posted by Laurie Harper <zo...@holoweb.net>.
It may depend on versions, but TDK 2.2 seems to be using ORO. I have no
idea which RE syntax Intake uses (ORO supports several flavours).
Unfortunately the ORO documentation doesn't describe the RE languages it
implements, though; you are expected to go and look up the documentation
for the original implementation (Perl5, awk, etc).
Anyone know which of ORO's RE languages Intak expects?
L.
Marc Lustig wrote:
>
> >-----Ursprüngliche Nachricht-----
> >Von: Eigen Technology Pty Ltd [mailto:michael@eigentechnology.com]
> >Gesendet: Sonntag, 22. Dezember 2002 13:40
> >An: turbine-user@jakarta.apache.org
> >Betreff: Regular Expression
> >
> >
> >This question is probably related to my Perl/PHP background. There may be
> >a better alternative in Turbine/in-Take/Criteria, if there is, please let
> >me know.
> >
> >My FORM contains a keyword in a field. To match all rows that contains
> >this keyword requires regular expression. My questions are:
> >
> >1. Can I extract datum from one field in a row to perform Regular
> >Expression comparison ?
>
>
> See http://jakarta.apache.org/turbine/turbine-2/howto/intake-howto.html
> Intake has a validation for RegExp:
> Error message for regular
> expression failed
>
> >2. Where can I find a good link on Regexp How-to or whatever is used by
> >Java2 now?
>
>
> As far as I know Intake uses the Apache RegExp
> http://jakarta.apache.org/regexp/index.html
>
>
> Marc
>
>
> --
> To unsubscribe, e-mail:
> For additional commands, e-mail:
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: AW: Regular Expression
Posted by Jake Fear <fe...@grifware.com>.
Regular expressions are very well documented on their own. I would go
and look at the Regexp and ORO projects (both at Jakarta) to find some
further documentation on regular expressions in general. I'm not sure
that is what you were looking for...
Jake
Eigen Technology Pty Ltd wrote:
>Thanks Marc,
>
>I wonder if there a document giving a bit more detail on how to use
>regexp? the one given below has only introductions to some general info on
>regexp.
>
>Merry Xmas
>michael
>
>
>
>
>>
>>
>>>-----Ursprüngliche Nachricht-----
>>>Von: Eigen Technology Pty Ltd [mailto:michael@eigentechnology.com]
>>>Gesendet: Sonntag, 22. Dezember 2002 13:40
>>>An: turbine-user@jakarta.apache.org
>>>Betreff: Regular Expression
>>>
>>>
>>>This question is probably related to my Perl/PHP background. There may
>>>be a better alternative in Turbine/in-Take/Criteria, if there is,
>>>please let me know.
>>>
>>>My FORM contains a keyword in a field. To match all rows that contains
>>>this keyword requires regular expression. My questions are:
>>>
>>>1. Can I extract datum from one field in a row to perform Regular
>>>Expression comparison ?
>>>
>>>
>>See http://jakarta.apache.org/turbine/turbine-2/howto/intake-howto.html
>>Intake has a validation for RegExp:
>><rule name="mask" value="yourregexpresion">Error message for regular
>>expression failed</rule>
>>
>>
>>
>>>2. Where can I find a good link on Regexp How-to or whatever is used
>>>by Java2 now?
>>>
>>>
>>As far as I know Intake uses the Apache RegExp
>>http://jakarta.apache.org/regexp/index.html
>>
>>
>>Marc
>>
>>
>>--
>>To unsubscribe, e-mail:
>><ma...@jakarta.apache.org> For additional
>>commands, e-mail: <ma...@jakarta.apache.org>
>>
>>
>
>
>
>
>--
>To unsubscribe, e-mail: <ma...@jakarta.apache.org>
>For additional commands, e-mail: <ma...@jakarta.apache.org>
>
>
>
>
>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: AW: Regular Expression
Posted by Eigen Technology Pty Ltd <mi...@eigentechnology.com>.
Thanks Marc,
I wonder if there a document giving a bit more detail on how to use
regexp? the one given below has only introductions to some general info on
regexp.
Merry Xmas
michael
>
>
>> -----Ursprüngliche Nachricht-----
>> Von: Eigen Technology Pty Ltd [mailto:michael@eigentechnology.com]
>> Gesendet: Sonntag, 22. Dezember 2002 13:40
>> An: turbine-user@jakarta.apache.org
>> Betreff: Regular Expression
>>
>>
>> This question is probably related to my Perl/PHP background. There may
>> be a better alternative in Turbine/in-Take/Criteria, if there is,
>> please let me know.
>>
>> My FORM contains a keyword in a field. To match all rows that contains
>> this keyword requires regular expression. My questions are:
>>
>> 1. Can I extract datum from one field in a row to perform Regular
>> Expression comparison ?
>
> See http://jakarta.apache.org/turbine/turbine-2/howto/intake-howto.html
> Intake has a validation for RegExp:
> <rule name="mask" value="yourregexpresion">Error message for regular
> expression failed</rule>
>
>> 2. Where can I find a good link on Regexp How-to or whatever is used
>> by Java2 now?
>
> As far as I know Intake uses the Apache RegExp
> http://jakarta.apache.org/regexp/index.html
>
>
> Marc
>
>
> --
> To unsubscribe, e-mail:
> <ma...@jakarta.apache.org> For additional
> commands, e-mail: <ma...@jakarta.apache.org>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
AW: Regular Expression
Posted by Marc Lustig <ma...@marclustig.com>.
> -----Ursprüngliche Nachricht-----
> Von: Eigen Technology Pty Ltd [mailto:michael@eigentechnology.com]
> Gesendet: Sonntag, 22. Dezember 2002 13:40
> An: turbine-user@jakarta.apache.org
> Betreff: Regular Expression
>
>
> This question is probably related to my Perl/PHP background. There may be
> a better alternative in Turbine/in-Take/Criteria, if there is, please let
> me know.
>
> My FORM contains a keyword in a field. To match all rows that contains
> this keyword requires regular expression. My questions are:
>
> 1. Can I extract datum from one field in a row to perform Regular
> Expression comparison ?
See http://jakarta.apache.org/turbine/turbine-2/howto/intake-howto.html
Intake has a validation for RegExp:
<rule name="mask" value="yourregexpresion">Error message for regular
expression failed</rule>
> 2. Where can I find a good link on Regexp How-to or whatever is used by
> Java2 now?
As far as I know Intake uses the Apache RegExp
http://jakarta.apache.org/regexp/index.html
Marc
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Regular Expression
Posted by Eigen Technology Pty Ltd <mi...@eigentechnology.com>.
This question is probably related to my Perl/PHP background. There may be
a better alternative in Turbine/in-Take/Criteria, if there is, please let
me know.
My FORM contains a keyword in a field. To match all rows that contains
this keyword requires regular expression. My questions are:
1. Can I extract datum from one field in a row to perform Regular
Expression comparison ?
2. Where can I find a good link on Regexp How-to or whatever is used by
Java2 now?
cheers
michael
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: Archive
Posted by Eigen Technology Pty Ltd <mi...@eigentechnology.com>.
Sorry, I have asked a similar multiple parameters question before and I
know the answer to that. Thanks. But I am still a puzzled by the second
Error message.
cheers
michael
> Scott,
>
> I was a Perl/PHP user and now switching to Turbine.
>
> If I have more than one Form elements passed on from one page to the
> other, how does this:
>
> $data.Parameters.HTMLElementName
>
> method resolve it? (there is this split command in Perl/PHP)
>
> In a .vm file I coded:
>
> #set($test=data.Parameters.HTMLElementName)
> $test
>
> but the resultant Page on my broswer gave me an Error. What went wrong?
>
> cheers
> michael
>
>
>
>
>> On 22/12/2002 9:12 PM, "Eigen Technology Pty Ltd"
>> <mi...@eigentechnology.com> wrote:
>>
>>> This is a really Newbie question.
>>>
>>> If I want to search the archive for some old questions, do I need to
>>> download all the files and search through them or is there a site on
>>> the web that I can perform search. If it is the latter case, would
>>> appreciate if someone could point me to the site.
>>>
>>> cheers
>>> michael
>>
>> Have a look at :
>> http://archives.apache.org/eyebrowse/ViewLists
>>
>> Select the list you are interested in searching and then use the
>> Search option. You may need to look in multiple lists - e.g.
>> turbine-user, turbine-torque-user, velocity-user, etc.
>>
>> Direct links to the archives are provided on the Project Info pages of
>> all Turbine projects - e.g.:
>> http://jakarta.apache.org/turbine/turbine-2/project-info.html
>>
>> HTH,
>>
>> Scott
>> --
>> Scott Eade
>> Backstage Technologies Pty. Ltd.
>> http://www.backstagetech.com.au
>> .Mac Chat/AIM: seade at mac dot com
>>
>>
>>
>> --
>> To unsubscribe, e-mail:
>> <ma...@jakarta.apache.org> For additional
>> commands, e-mail: <ma...@jakarta.apache.org>
>
>
>
>
> --
> To unsubscribe, e-mail:
> <ma...@jakarta.apache.org> For additional
> commands, e-mail: <ma...@jakarta.apache.org>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: Archive
Posted by Scott Eade <se...@backstagetech.com.au>.
On 22/12/2002 9:22 PM, "Eigen Technology Pty Ltd"
<mi...@eigentechnology.com> wrote:
> Scott,
>
> I was a Perl/PHP user and now switching to Turbine.
>
> If I have more than one Form elements passed on from one page to the other,
> how does this:
>
> $data.Parameters.HTMLElementName
>
> method resolve it? (there is this split command in Perl/PHP)
>
> In a .vm file I coded:
>
> #set($test=data.Parameters.HTMLElementName)
> $test
>
> but the resultant Page on my broswer gave me an Error. What went wrong?
>
> cheers
> michael
I didn't mean to use the literal String "HTMLElementName" - you should
substitute this with the name attribute you assigned to the html input
element in your form (<input name="myInputElementName" ...>).
"$data" is the Turbine RunDataService (configured in your
TurbineResources.properties file).
"Parameters" is resolved to the getParameters() method in RunData using
reflection.
"myInputElementName" is resolved via reflection to get("myInputElementName")
(well I think it is, if I am wrong just expand it yourself or if the type is
important do getInt("myInputElementName") or whatever).
See the "Parameter and Cookie Parsing" section of:
http://jakarta.apache.org/turbine/turbine-2/services/rundata-service.html
Cheers,
Scott
--
Scott Eade
Backstage Technologies Pty. Ltd.
http://www.backstagetech.com.au
.Mac Chat/AIM: seade at mac dot com
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: Archive
Posted by Eigen Technology Pty Ltd <mi...@eigentechnology.com>.
Scott,
I was a Perl/PHP user and now switching to Turbine.
If I have more than one Form elements passed on from one page to the other,
how does this:
$data.Parameters.HTMLElementName
method resolve it? (there is this split command in Perl/PHP)
In a .vm file I coded:
#set($test=data.Parameters.HTMLElementName)
$test
but the resultant Page on my broswer gave me an Error. What went wrong?
cheers
michael
> On 22/12/2002 9:12 PM, "Eigen Technology Pty Ltd"
> <mi...@eigentechnology.com> wrote:
>
>> This is a really Newbie question.
>>
>> If I want to search the archive for some old questions, do I need to
>> download all the files and search through them or is there a site on
>> the web that I can perform search. If it is the latter case, would
>> appreciate if someone could point me to the site.
>>
>> cheers
>> michael
>
> Have a look at :
> http://archives.apache.org/eyebrowse/ViewLists
>
> Select the list you are interested in searching and then use the Search
> option. You may need to look in multiple lists - e.g. turbine-user,
> turbine-torque-user, velocity-user, etc.
>
> Direct links to the archives are provided on the Project Info pages of
> all Turbine projects - e.g.:
> http://jakarta.apache.org/turbine/turbine-2/project-info.html
>
> HTH,
>
> Scott
> --
> Scott Eade
> Backstage Technologies Pty. Ltd.
> http://www.backstagetech.com.au
> .Mac Chat/AIM: seade at mac dot com
>
>
>
> --
> To unsubscribe, e-mail:
> <ma...@jakarta.apache.org> For additional
> commands, e-mail: <ma...@jakarta.apache.org>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: Archive
Posted by Scott Eade <se...@backstagetech.com.au>.
On 22/12/2002 9:12 PM, "Eigen Technology Pty Ltd"
<mi...@eigentechnology.com> wrote:
> This is a really Newbie question.
>
> If I want to search the archive for some old questions, do I need to
> download all the files and search through them or is there a site on the
> web that I can perform search. If it is the latter case, would appreciate
> if someone could point me to the site.
>
> cheers
> michael
Have a look at :
http://archives.apache.org/eyebrowse/ViewLists
Select the list you are interested in searching and then use the Search
option. You may need to look in multiple lists - e.g. turbine-user,
turbine-torque-user, velocity-user, etc.
Direct links to the archives are provided on the Project Info pages of all
Turbine projects - e.g.:
http://jakarta.apache.org/turbine/turbine-2/project-info.html
HTH,
Scott
--
Scott Eade
Backstage Technologies Pty. Ltd.
http://www.backstagetech.com.au
.Mac Chat/AIM: seade at mac dot com
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>