This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Struts and the fly likes Hibernate and Struts Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Hibernate and Struts" Watch "Hibernate and Struts" New topic
Author

Hibernate and Struts

V Patil
Ranch Hand

Joined: Oct 04, 2008
Posts: 36
using hibernate Arraylist is returned by logic class and in that arraylist data for state and city both is present.
now i want distinct data to be displayed in jsps and according to onchange of state i want to display city names.
Nishan Patel
Ranch Hand

Joined: Sep 07, 2008
Posts: 684

hi..

If you get ArrayList with both city and state then it is not possible to differentiate onchange select box.

You have to use AJAX for select Country then onselect get list for state.

Thanks,
Nishan


Thanks, Nishan Patel
SCJP 1.5, SCWCD 1.5, OCPJWSD Java Developer,My Blog
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Hibernate and Struts
 
Similar Threads
Java ArrayList into Name value pair
JSF table
multiple responseText
Rich Faces 4.0 Autocomplete
How to use inner join with hql query