Re: findByProperty() in the scaffold.sql.AccessBase - Need One Additional Parameter to the Pair of Property/Value

2003-10-31 Thread Caroline Jen
Please help.  Need your clever ideas.  Thank you.
--- Caroline Jen [EMAIL PROTECTED] wrote:
 I am using the findByProperty method in the
 org.apache.commons.scaffold.sql.AccessBase.  The
 findByProperty method takes one pair of
 property/value as it parameters.  As such, visitors
 of
 the web site can query all articles in the database
 by
 providing 'author' as the property and supply the
 name
 of the author (xyz) as value.
 
 public static final Collection findByProperty
 (
 Object target,
 String property,
 String value
 ) throws ParameterException, PopulateException,
 ResourceException
 
 I have this field category in my database.  I want
 to search and get all the articles written by
 author(property) with name xyz (value) within the
 HISTORY category.  The value of the category will be
 supplied by the application developer (NOT BY THE
 VISITOR of the web site via selecting from a
 drop-down
 list and fill out the value in the text field).
 
 I need help in handling this kind of situation. 
 Thanks in advance.
 
 -Caroline
 
 __
 Do you Yahoo!?
 Exclusive Video Premiere - Britney Spears
 http://launch.yahoo.com/promos/britneyspears/
 

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


__
Do you Yahoo!?
Exclusive Video Premiere - Britney Spears
http://launch.yahoo.com/promos/britneyspears/

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



findByProperty() in the scaffold.sql.AccessBase - Need One Additional Parameter to the Pair of Property/Value

2003-10-30 Thread Caroline Jen
I am using the findByProperty method in the
org.apache.commons.scaffold.sql.AccessBase.  The
findByProperty method takes one pair of
property/value as it parameters.  As such, visitors of
the web site can query all articles in the database by
providing 'author' as the property and supply the name
of the author (xyz) as value.

public static final Collection findByProperty
(
Object target,
String property,
String value
) throws ParameterException, PopulateException,
ResourceException

I have this field category in my database.  I want
to search and get all the articles written by
author(property) with name xyz (value) within the
HISTORY category.  The value of the category will be
supplied by the application developer (NOT BY THE
VISITOR of the web site via selecting from a drop-down
list and fill out the value in the text field).

I need help in handling this kind of situation. 
Thanks in advance.

-Caroline

__
Do you Yahoo!?
Exclusive Video Premiere - Britney Spears
http://launch.yahoo.com/promos/britneyspears/

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