One way to do this relatively easy is to use a hidden frame. Define a frame
with height=0 at the bottom of your frameset. Give it a sensible name, for
example hidden. Then target your forms to hidden and submit this form to get
a server side action to be executed, with the output in the invisible hidden
frame and the main frame unchanged.
If you want the servlet run in the hidden frame to modify something in the
main frame (but still without reloading the main frame), use javascript in
the hidden frame to update form elements in the main page.
~ Tormod
~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-
Tormod Hystad
Senior Developer, R&D
CatalystOne, Inc. - Execution excellence!
email: [EMAIL PROTECTED]
cell phone: +47 93 09 60 81 (Norway)
web: http://www.catalystone.com
~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-
-----Original Message-----
From: A mailing list for discussion about Sun Microsystem's Java Servlet
API Technology. [mailto:[EMAIL PROTECTED]]On Behalf Of Saad
Shareef
Sent: Saturday, June 30, 2001 7:18 AM
To: [EMAIL PROTECTED]
Subject: calling a servlet while the same html displayed
Hello,
usually when a servlet is called it will return an output. But, in my
situation I want my servlet to be called without returning any output.
In other words, if the broswer has an html file displayed on it, is there a
way to call a servlet without affecting this html page.
Regards,
Saad
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html