This week's giveaway is in the EJB and other Java EE Technologies forum. We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line! See this thread for details.
Hi i want to make servlet which on a fix time submit particular form.i made such servlet and it is working fine but how to submit form using servelt cause it need that if i want to submit form ,html must run on a browser but i want all work behind the scene.i want all the work behind the scence cause i want all the work multi threaded.
Salam Raja, When the web container that is running the servlet (Tomcat for ex) sends data to the HTTP client, it uses an opened connection with the HTTP client. That connection is ALWAYS opened by the HTTP client when it requests a resource from the server. So having the web container/servlet send data to the client without having this later request any resource DOES NOT MAKE SENSE (think about TCP at client side that would drop silently all incoming segments that don't belong to any opened connection). However, you can embed a little script within the HTML page that runs at client side and that sends requests to your servlet periodically behind the scenes. This way, your servlet would reply periodically in a normal way. regards [ June 25, 2002: Message edited by: Omar IRAQI ]
Omar IRAQI Houssaini
Joined: Dec 07, 2001
Thank you for reply but i am not clear about what to do.actually i want to run MyServlet only once on a server for example mycgiserver.com and then close my computer and all work should do by MyServlet.and there is no inraction of any user and it work using threading for example submit a form etc.pls explain me how to run java script and html without intraction of any user and by only using server side threading.cause there is no browser is open if i close my computer and if no user is connect with it.