my dog learned polymorphism
The moose likes Struts and the fly likes Problem with Dependent dropdown Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Problem with Dependent dropdown " Watch "Problem with Dependent dropdown " New topic

Problem with Dependent dropdown

Shashi Prakash
Ranch Hand

Joined: Mar 28, 2007
Posts: 40
Hi ,

I am trying to populate one dropdown depndign on value from other dropdown . And For this I am using ajax .
I am able to fetch teh data but I am not able to put those at proper place .

I mean second after first one .

here is the code :

<s:textfield key="dda_Token_Name" label="Name" required="true"/>
<s:textfield key="dda_Token_Description" label="Description"/>
<s:select theme="ajax" name="dda_Token_Type_Id" list='ddaTokenTypeList' listKey="dda_Token_Type_Id"
listValue="dda_Token_Type_Name" label="Type" required="true" headerKey=""
headerValue="-- Please Select --" onchange="javascript:show_details();return false;"
<s:url id="d_url" action="DDATokenDetailForTokenAction" /> <s:div showLoadingText="true"
id="details" href="%{d_url}" theme="ajax"
listenTopics="show_detail" formId="frm_add_edit_token">

the last one generated usign ajax is comign at top of first text field .

Can anyone help me with this

Thanks,<br />Target Scwcd<br />SCJP 1.4
I agree. Here's the link:
subject: Problem with Dependent dropdown
It's not a secret anymore!