Click here to Skip to main content
15,887,988 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi,

how to display the drop downs in single page in jsp with mysql. If it is possible post the specific code

example:
one drop down is consist country's, and second drop down is consist states.

how it is do.

plz anybody send code r links to me
Posted
Updated 29-Feb-12 21:44pm
v4

1 solution

Reload example with two select boxes.
<s:form id="formSelectReload" action="echo" theme="simple" cssclass="yform" xmlns:s="#unknown">

AJAX Form

Language:
<s:url id="remoteurl" action="jsonsample">
<sj:select xmlns:sj="#unknown">
href="%{remoteurl}"
id="language"
onChangeTopics="reloadsecondlist"
name="language"
list="languageObjList"
listKey="myKey"
listValue="myValue"
emptyOption="true"
headerKey="-1"
headerValue="Please Select a Language"
/>


Framework:
<s:url id="remoteurl" action="jsonsample">
<sj:select xmlns:sj="#unknown">
href="%{remoteurl}"
id="selectWithReloadTopic"
formIds="formSelectReload"
reloadTopics="reloadsecondlist"
name="echo"
list="reloadList"
emptyOption="true"
headerKey="-1"
headerValue="Please Select a Framework"
/>


<sj:submit xmlns:sj="#unknown">
id="submitFormSelectReload"
targets="result"
value="AJAX Submit"
indicator="indicator"
button="true"
/>

src="images/indicator.gif"
alt="Loading..."
style="display:none"
/>


 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900