i am using three dowpdown menu and each of them changing based on each other. as example if i chose year then month dropdown need to be populated from database and when i chose month then day dropdown need to be populated from database based on year and month selected.
Ah, I see you are using the JSP to format an HTML fragment for insertion. This should most likely be a GET rather than a POST -- is there any processing that takes place on the server besides formatting the fragment?
In any case, you cannot cause a single Ajax request to fork into two separate requests.
If the requests are very similar, you can write a function that makes the request, passing parameters that specify the differences.
You can write a JSP page that returns JSON instead of HTML. All that's really different is that the Content-Type header for a JSON request should be "application/json" instead of "text/html".
An IDE is no substitute for an Intelligent Developer.
I am displeased. You are no longer allowed to read this tiny ad:
Programmatically Create PDF Using Free Spire.PDF with Java