permaculture playing cards*
The moose likes Servlets and the fly likes How to display an image like Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "How to display an image like "searching..." while the jsp page is getting data" Watch "How to display an image like "searching..." while the jsp page is getting data" New topic
Author

How to display an image like "searching..." while the jsp page is getting data

chandubcs
Ranch Hand

Joined: Jun 03, 2001
Posts: 47
How to display an image or text like "searching... please wait" while the jsp page is getting data from database and the page take more than 1 min to show. I am invoking java class from a jsp page, using database connection in java class. so, while getting values from java class file into a jsp page, I need to display an image like "searching.... please wait.." and after getting the values from java class, the image should disappear and the results should display. I will appreciate if anyone helps in this. thanks,
S Chandra Mohan
Ranch Hand

Joined: Oct 19, 2000
Posts: 75
Hey i dont know about JSP,
But In HTML u can do like this
<input type='text' name='t8' size='30' readonly='true'
style= 'background-color: rgb(192,192,192); color: rgb(0,0,0); font-family: Lucida Handwriting; font-size: 15pt; border: medium none'>
This will create a textbox with no borders and readonly.
Later u can Call a Function like
<input type = submit onclick='DispMsg()' >
<script language='java script' TYPE='text/javascript'>
function DispMsg {
document.cmsbnk.t8.value='Generating. Please Wait ....!';
} </script>
Hope u got this

------------------
All the Best,
S Chandra Mohan
sc_mohan_us@yahoo.com


Have a wonderful day and wish u success<p>S Chandra Mohan<br />sc_mohan_us@yahoo.com
Frank Carver
Sheriff

Joined: Jan 07, 1999
Posts: 6920
"chandubcs",
The Java Ranch has thousands of visitors every week, many with surprisingly similar names. To avoid confusion we have a naming convention, described at http://www.javaranch.com/name.jsp . We require names to have at least two words, separated by a space, and strongly recommend that you use your full real name. Please log in with a new name which meets the requirements.
Thanks.


Read about me at frankcarver.me ~ Raspberry Alpha Omega ~ Frank's Punchbarrel Blog
Alex Kravets
Ranch Hand

Joined: Jan 24, 2001
Posts: 476
I once found a web page that discusses this. Try searching for "jsp + servlets + wait page"


All right brain, you don't like me and I don't like you, but let's just do this one thing so I can get back to killing you with beer.<br /> <br />- Homer Simpson
Alex Kravets
Ranch Hand

Joined: Jan 24, 2001
Posts: 476
here is the ink: http://www.javaworld.com/javaworld/jw-12-1998/jw-12-servlethtml_p.html
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to display an image like "searching..." while the jsp page is getting data
 
Similar Threads
Storing, retrieving, displaying images
Image Processing Using JSP
Displaying a table in JSP using JSTL tags
Iterating over Arraylist in jsf application
Query on displaying User records in jsp using Struts