Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search Coderanch
Advance search
Google search
Register / Login
Hayk Baghdasaryan
Greenhorn
+ Follow
2
Posts
0
Threads
0
Cows
since Jul 20, 2006
Merit badge:
grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
Ranch Hand Scavenger Hunt
Number Posts (2/100)
Number Threads Started (0/100)
Number Cows Received (0/5)
Number Likes Received (0/10)
Number Likes Granted (0/20)
Set bumper stickers in profile (0/3)
Report a post to the moderators (0/1)
Edit a wiki page (0/1)
Create a post with an image (0/2)
Greenhorn Scavenger Hunt
First Post
Number Posts (2/10)
Number Threads Started (0/10)
Number Likes Received (0/3)
Number Likes Granted (0/3)
Set bumper stickers in profile (0/1)
Set signature in profile
Search for a post/thread (0/3)
Set a watch on a thread
Save thread as a bookmark
Create a post with an image (0/1)
Recent posts by Hayk Baghdasaryan
storing hashmap in context
hi, as I understood you mean this
HashMap map = new HashMap(); request.getSession().getServletContext().setAttribute("map", map);
show more
17 years ago
Servlets
Dynamic page content using out.flush()
... // browser has cache. It wait until the buffer filled. //We must fill the buffer out.println("<!-- aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa -->"); out.flush(); out.println("<!-- aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa -->"); out.flush(); out.println("<!-- aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa -->"); out.flush(); out.println("<form name='my_form'>"); out.flush(); out.println("<input type='text' name='status'>"); out.flush(); out.println("</form>"); out.flush(); for(int i = 0; i < 10 ; i++){ try{ Thread.sleep(1000); out.println("<script>document.my_form.status.value=\"" + Math.random() + "\"</script>"); out.flush(); }catch(Exception e){ e.printStackTrace(System.out); } } out.println("</body></html>");
This code must work
[ July 20, 2006: Message edited by: Hayk Baghdasaryan ]
[ July 20, 2006: Message edited by: Hayk Baghdasaryan ]
show more
17 years ago
Servlets