This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
I am using struts2+ hibernate
1) I have one table which have approximately 40 - 50 columns (basically a questionaire)
2) I have a query page in which i want to do the following
a) There will be two lists ... 1 for the main search criteria ( the column names) and 1 for the unique values for each list
Eg List 1 --> Fruits,Vegetables,Cars List2 --> Apple,Banana,Orange (for Fruits) or List2 --> Cabbage,Beans(for Vegetable)
List2 depends on the selected value of the List1
b) Since the number of columns is much , it is not possible to display each and every criteria in the search page. (I am using hibernate criterion search to minimise the results)
c) So i want to dynamically create the search condition based on a button "ADD MORE SEARCH"
Eg Search1 : Fruits Value: Apple ==> If user clicks on "ADD MORE SEARCH"
Search2 : Taken before meal Value: Yes
Eg Search1 : Cars Value: Family ==> If user clicks on "ADD MORE SEARCH"
Search2 : Type Value: BMW ==> If user clicks on "ADD MORE SEARCH"
Search3 : Insurance Value: Yes
My question is as follows :
1. What will be the best approach to implement the "ADD MORE SEARCH" facilities .. any tutorial guide/links will be greatly appreciated <this is where i am stuck>
2. I am planning to store the Column Name with the Value in a map , and iterate those map in the hibernate criterion search .. Is this the best approach ??
3. Any report generation tool in java which can do the above .. any tutorial guide/links will be greatly appreciated
Every kind of help/suggestions is greatly needed ..
Thanks in advance,
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com