File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Cascading DropDown" Watch "Cascading DropDown" New topic

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() {

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

I agree. Here's the link:
subject: Cascading DropDown
It's not a secret anymore!