When you say depending on the clicked button, are u assuming that there are >1 button. I only have one button in the frame. The behaviour is coded in actino class. If this is not what u meant, some pointers or example will be appreciated.
thanks sebastian On Mon, 2004-09-13 at 15:26, Benjamin Letrou wrote: > Hi, > why don't you set your target dynamicaly with a javascript ? > you set your form action to XX.do and change the target depending on the > clicked button. > > Bj > > Sebastian Ho a Ãcrit : > > Hi > > > > My index.jsp has a top frame and bottom frame. > > > > I have a html:button in the bottom frame. When the button is clicked, > > Action will either forward to the same page or a different page. The > > same page target will be _self which is how struts behaves. > > > > For the other path that displays a different page, I need it to be _top > > because it replaces the top frame as well. > > > > I got stuck after my javascript attempt fails. I added > > onClick-location.parent="XX.do" to my button. The action class (XX.do) > > is called correctly, but no matter which actionForward my action > > returns, the javascript overwrite that and forwards to XX.do! > > > > Any idea how to solve this? > > > > Thanks > > > > Sebastian Ho > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]