File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Struts and the fly likes displaying processing or waiting page in Struts1.3.8 using JSP, When AJAX request made? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Frameworks » Struts
Reply Bookmark "displaying processing or waiting page in Struts1.3.8 using JSP, When AJAX request made?" Watch "displaying processing or waiting page in Struts1.3.8 using JSP, When AJAX request made?" New topic
Author

displaying processing or waiting page in Struts1.3.8 using JSP, When AJAX request made?

Laxman Chowdary
Greenhorn

Joined: Apr 11, 2012
Posts: 21

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.

Thanks in advance,
Laxman chowdary
Shankar Tanikella
Ranch Hand

Joined: Jan 30, 2011
Posts: 329

Hi Laxman,
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..
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: displaying processing or waiting page in Struts1.3.8 using JSP, When AJAX request made?
 
Similar Threads
help me regarding this selection box problem...
I need some advice on JSP
How do i remove a item from a drop down box .
Passing variable value from javascript to jsp page at run time
Dependent dynamic drop downs