LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 05-05-2005, 01:03 PM   #1
poeta_boy
Member
 
Registered: Oct 2003
Location: Mexico
Distribution: Ubuntu
Posts: 223

Rep: Reputation: 31
jsp's and printing something in order


hello everyone:

I have a little problem with a JSP... bassically, this is all there's inside:

Code:
	out.println("Obteniendo");
	out.println("<script language=\"JavaScript\"> 
location.replace(\"faltantes.jsp?host=" + host + 
"&user=" + user + "&pass=" + pass + 
"&database=" + database +  "&inventario="
 + inventario + "\"); </script>");
the thing is, that the "faltantes" jsp points to a Java object doing quite a heavy job, maybe taking up to 3 minutes to finish and display a new page.... I'd like the user to see the message "Obteniendo" while he waits for the new page to load.

If I put a link to faltantes, and make the user click on it, then he will have to wait the 3 minutes and might be tempted to click on in again (since in this case, with a link, the page will wait for the next to load) so I'd like a link pointing to this jsp, and see the message while the job is doing in the background.... is that possible?

I would think that the order I'm printing on screen would define it... like, print the message, and wait for the next page to load.... is that so?

Thanks for everything

Last edited by poeta_boy; 05-05-2005 at 01:04 PM.
 
Old 05-06-2005, 08:43 AM   #2
oblivious69
Member
 
Registered: May 2005
Distribution: debian
Posts: 79

Rep: Reputation: 15
Try using a button instead of a link...using some javascript, you could probably get the button to be unclickable once the user has clicked it and display obteniendo on the button itself.
 
Old 05-06-2005, 11:37 AM   #3
poeta_boy
Member
 
Registered: Oct 2003
Location: Mexico
Distribution: Ubuntu
Posts: 223

Original Poster
Rep: Reputation: 31
Hello:

thanks! it does the trick,!!!

Thanks
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
about Jakarta Struts, Jsp's and Tomcat.... problem iterating in a jsp poeta_boy Programming 2 09-06-2005 02:36 PM
CUPS printing in wrong order boyceman Linux - Software 0 11-05-2004 10:12 AM
Scribus Printing How to put 4 flyers on a page when printing jazzboy Linux - Software 0 05-02-2004 06:13 AM
which to order? i m gr8 Linux - Newbie 6 04-17-2004 08:17 AM
Reverse Order Printing lawrencegoodman Linux - Newbie 2 11-13-2003 07:59 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 05:23 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration