In my application there is a drop down box, second drop down box value depends on first.I developed it using AJAX and Struts1.3.8.
When the second drop down box item selects it will display some information of the selected item of select options. Here the processing of the request takes much time. But end user thinks it is not working.So to avoid that i want to display the temporary page displaying
"Processing request.. Please wait...."
How to implement it using AJAX and Struts1.3.8.
In struts2 it is predefined and using stop and wait we can achieve it..
But how to do in Struts1.3.8???
Any idea and response highly appreciatable.
I am not sure how it works in struts2, try below two things
1. Check the source code of struts 2 which you know that it is working and try to implement the same [it should be no different than simple ajax implementation].
2. In the worst case scenario [if you do not get a way out], have this message in a simple HTML "div" tag which would be blocked/hidden by default. We have something called ready state in AJAX which we can use along with div. From the time when the call is made till the ready state is achieved show the div and again hide it. I know that this might not be the best way to achieve the goal, but it should still work
Have Fun with Java
little,little.. little by little makes a lot..