> -----Original Message-----
> From: A mailing list about Java Server Pages specification
> and reference
>
> Please excuse me for a servlet Question, but I couldn't go
> anywhere for
> help.
> I am using frameset in my HTML to generate a HTML framed
> page. On click
> of a submit button of one frame a servlet needs to send results to the
> other frame. Servlet open's a new window as it looses the
> frame context.
> How can I send the frameset info to my servlet.

You can use the TARGET attribute of a <FORM> tag to specify where the
results of the form submission should be displayed - ie you name each of
your frames with the 'NAME' attribute.

You can use JavaScript to submit forms eg form.submit(), so from one frame
you can submit a form in another frame - use links/buttons instead of real
submit buttons.

or

You can rebuild the frameset from scratch each time you submit the form by
submitting to the frameset's parent window.

To communicate between successive pages you have a variety of methods:
-Add parameters to the end of the action url
-Add hidden form elements
-Use objects stored in session variables
-Use cookies

Hope that helps,

Steve

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
FAQs on JSP can be found at:
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html

Reply via email to