Dependent drop down box

I want to create two dependent drop down box.

parent drop down is for Country

child drop down is for city

How do I do it ? I would like to use JQuery ajax here.

my page will be in JSP.

I recently came across a good tutorial for just this sort of thing.

So You Need To Fill a Dropdown Dynamically