struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject RE: Forwards and Frames
Date Mon, 02 Dec 2002 11:29:41 GMT


I take this thread and ask for a different question. I searched all around to find some answers.
What if I don't use a form and call directly an action from a link in my frame. The action,
in some case, must display a page
over the frameset (_parent target) or relaunch the frameset (after a logout action for example)...

It seems I can't put a target parameter in a forward in the struts-config.
Have I to use an intermediary page that loads the frameset in a _parent target via Javascript
to do that. ?

I know the better way will be to avoid frame based web app... but right now, it's not possible


From: Kristian Duske
Subject: RE: Forwards and Frames
Date: Mon, 25 Nov 2002 10:32:38 -0800



> Background information: I have a page split into two frames, top
> and bottom.
> I have a form in the top part, that displays a list of messages.  The user
> then selects the messages they want displayed and they press a button and
> the button forwards the information to the bottom form? How do I
> do this in
> the Action Class? Or what should I search under? I have "Mastering Jakarta
> Struts" and "Struts in Action" to look into this, I just don't
> know what it
> is called.

This is more an HTML question than a Struts question. You have to specify
the target-Attribute for the html:form tag, very much like in HTML:

<html:form ... target="bottom">

The value of this attribute is the name of the bottom frame, as specified in
your frameset:

<frameset ...>
        <frame name="top" ...>
        <frame name="bottom" ...>


This message and any attachments (the "message") is
intended solely for the addressees and is confidential. 
If you receive this message in error, please delete it and 
immediately notify the sender. Any use not in accord with 
its purpose, any dissemination or disclosure, either whole 
or partial, is prohibited except formal approval. The internet
can not guarantee the integrity of this message. 
BNP PARIBAS (and its subsidiaries) shall (will) not 
therefore be liable for the message if modified. 


Ce message et toutes les pieces jointes (ci-apres le 
"message") sont etablis a l'intention exclusive de ses 
destinataires et sont confidentiels. Si vous recevez ce 
message par erreur, merci de le detruire et d'en avertir 
immediatement l'expediteur. Toute utilisation de ce 
message non conforme a sa destination, toute diffusion 
ou toute publication, totale ou partielle, est interdite, sauf 
autorisation expresse. L'internet ne permettant pas 
d'assurer l'integrite de ce message, BNP PARIBAS (et ses
filiales) decline(nt) toute responsabilite au titre de ce 
message, dans l'hypothese ou il aurait ete modifie.

To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message