| Author |
Collection
|
Reshma Reddy
Ranch Hand
Joined: Dec 21, 2006
Posts: 197
|
|
Hi All, In my application is there two tables i am using list, for that tables and i am getting confuse how to compare the two table elements and i want the elements that are equal in two tables. Thanks, vishnu
|
 |
Srikanth Basa
Ranch Hand
Joined: Jun 06, 2005
Posts: 241
|
|
|
Can you please be more specific on what you are asking and how it is related to servlets ?
|
 |
Reshma Reddy
Ranch Hand
Joined: Dec 21, 2006
Posts: 197
|
|
Hi Srikanth, i am using spring and hibernate for my application i wrote one DAO for that, by using that i am getting table values. Thanks, vishnu
|
 |
Ben Souther
Sheriff
Joined: Dec 11, 2004
Posts: 13410
|
|
This still doesn't sound like a servlet question. Moving to Java In General (intermediate) where collections are discussed.
|
Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
|
 |
Tamas Jano
Ranch Hand
Joined: Feb 21, 2007
Posts: 55
|
|
Still not specific enough but I presume you want the result to contain the rows that match from the two tables. Take a look at joins, that might be the thing you need.
|
 |
Reshma Reddy
Ranch Hand
Joined: Dec 21, 2006
Posts: 197
|
|
Hi Tamas, i have to compare in my java class and after that i have to pass this result to for further method. Thanks, vishnu.
|
 |
Raghavan Muthu
Ranch Hand
Joined: Apr 20, 2006
Posts: 3327
|
|
|
Do you mean ask how you want to compare two objects which are populated with the values of table row?
|
Everything has got its own deadline including one's EGO!
[CodeBarn] [Java Concepts-easily] [Corey's articles] [SCJP-SUN] [Servlet Examples] [Java Beginners FAQ] [Sun-Java Tutorials] [Java Coding Guidelines]
|
 |
Srikanth Basa
Ranch Hand
Joined: Jun 06, 2005
Posts: 241
|
|
Not still clear what you are asking for. If you are asking for comparing the elements in two lists and getting the common elements out, here goes the idea 1.4 Compatible
|
 |
Reshma Reddy
Ranch Hand
Joined: Dec 21, 2006
Posts: 197
|
|
Hi Srikanth, Thanks for giving idea, but in my application persons is there more than lack but this one is the better idea to do comparision or is there any another approach for this. Thanks, vishnu
|
 |
 |
|
|
subject: Collection
|
|
|