aspose file tools*
The moose likes Struts and the fly likes findByProperty() in the scaffold.sql.AccessBase - Need Additional Parameters Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "findByProperty() in the scaffold.sql.AccessBase - Need Additional Parameters " Watch "findByProperty() in the scaffold.sql.AccessBase - Need Additional Parameters " New topic
Author

findByProperty() in the scaffold.sql.AccessBase - Need Additional Parameters

JiaPei Jen
Ranch Hand

Joined: Nov 19, 2000
Posts: 1309
I need to pass additonal parameters rather than using one pair of property/value of parameters in the exising findByProperty() method.
I am using the findByProperty method in the org.apache.commons.scaffold.sql.AccessBase. The findByProperty method takes "only one" pair of property/value as it parameters. As such, visitors of the web site queries all articles in the database by providing 'author' as the property and supply the name of the author (xyz) as value.

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; say, 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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: findByProperty() in the scaffold.sql.AccessBase - Need Additional Parameters
 
Similar Threads
jsp:setProperty is ignored !
Need Help From Those Who Are Good At Using Lucene In the Struts Application
Best practice to get table form data back to Java beans
Using getHibernateTemplate() problem
Hibernate not saving