I've been trying to work on this for hours, but I can't seem to figure it out by myself.
For a project, I need to use JSON, and even though I was able to make it work, the data is not being returned to the correct JSP; instead, it's just displaying the JSON JSP. I suspect the issue lies in how I am receiving the JSON.
Below are screenshots illustrating what's happening:
This is the JSP where I'm implementing AJAX, aiming to populate the second dropdown using AJAX:
This is the unexpected outcome (though it's the right data):
Here is the lengthy code snippet:
- the JSP with AJAX implementation
// Code here
- the JSON JSP
// Code here
- the action class
// Code here