wood burning stoves 2.0*
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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Problem with Dependent dropdown " Watch "Problem with Dependent dropdown " New topic
Author

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">
</s:div>



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: http://aspose.com/file-tools
 
subject: Problem with Dependent dropdown
 
Similar Threads
struts 2: ajax theme problem
How to use struts2 submit tag as button without submitting the form ?
Help with tabbed Panel
multiple dropdown interdependant on the previous selected dropdoen value
Help