This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach 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 Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Hibernate and Struts" Watch "Hibernate and Struts" New topic

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


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 Patel
SCJP 1.5, SCWCD 1.5, OCPJWSD Java Developer,My Blog
I agree. Here's the link:
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