This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Struts and the fly likes Cascading DropDown Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Cascading DropDown" Watch "Cascading DropDown" New topic
Author

Cascading DropDown

usha kotha
Ranch Hand

Joined: Apr 18, 2012
Posts: 33

Hi Im back with some other query....

While im working with cascading dropdown,here is my script

function show_details() {
dojo.event.topic.publish("show_detail");
}

here is my dropdown after selecting some value from this dropdown im taking this value to action class JobAction.....

<s:select label="Business or Business Id" name="business" headerKey="Select" headerValue="Select" list="ListOfClients" listKey="%{business}" listValue="%{business}" required="true" style="border:1px solid #ccc; background:#fff; width:165px;" onchange="javascript:show_details();return false;"/>
<s:url id="d_url" action="JobAction" /> <sx:div id="details" href="%{d_url}" listenTopics="show_detail" formId="frm" showLoadingText=""></sx:div>


but im unable to return back to the same jsp with some list for second dropdown......
its throwing error like
Before selecting value from dropdown:

Error loading '/JATS/JobAction.action' (500 Internal Server Error)

after selecting value from first dropdown its going to action class with the selected value from dropdown....
but here in this action class im unable to return to the same jsp with some list
its throwing error like:

Couldn't load content:Unknown runtime error

in standard error log its throwing error like:
ContextListener: attributeAdded('org.apache.jasper.compiler.TldLocationsCache', 'org.apache.jasper.compiler.TldLocationsCache@a75737')

could you please help me out in finding solution for this
thanks in advance


 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Cascading DropDown
 
Similar Threads
Struts2 Form + Div display error
multiple dropdown interdependant on the previous selected dropdoen value
problem running dojo.plugin in struts2.1.6
Problem with Dependent dropdown
struts 2: ajax theme problem