Re: frame

2005-11-08 Thread Frank W. Zammetti
I'm not 100% sure I understand the question, but what I *think* your asking is how can you break out of a frameset in Struts without using Javascript, is that right? If that's the case, you can have a link like so: Alternatively, you can use the action attribute instead of href and name an Acti

Re: frame

2005-11-08 Thread Murray Collingwood
The action is your href, so: parent.test.location.href = "/MyAction.do" You may need to use html:rewrite to create the correct anchor depending on the context. Cheers mc On 8 Nov 2005 at 9:39, Diaconu Eduard wrote: > with javascript to go out of a frame "test" you do > > parent.test.loc

Re: frame

2005-11-08 Thread Dixa M
I cant exactly tell how toimplement in struts but. u can use a simple form having a 'target' as your desired frame. that means when the form is submited your result will be focused in the frame specified in form's target.This can be done with Struts html:form too. Hope this will help you, Be

Re: Frame problem using Struts

2004-09-13 Thread Sebastian Ho
Sorry but I don't understand where is the 'dynamic targetting'. From the example, don't we need to hard code the setDynamicTarget(XX) in the JSP? But I won't know the taget to set at that time.. Sebastian Ho On Mon, 2004-09-13 at 16:33, Bj wrote: > Here is an example of dynamic targeting :-) > B

Re: Frame problem using Struts

2004-09-13 Thread Bj
Here is an example of dynamic targeting :-) By default, the target will be '_self' but depending on the clicked button, you can change the target to '_top','_parent',..., a frame name or any opended window. Your Action will forward your path (succes, failure,...) to the corresponding target wind

Re: Frame problem using Struts

2004-09-13 Thread Sebastian Ho
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 L

Re: Frame problem using Struts

2004-09-13 Thread Benjamin Letrou
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 clicke

Re: Frame problem using Struts

2004-09-13 Thread Sebastian Ho
No..It is just a login Page. Thats why I need to change the top frame as well to display the menu after login.. On Mon, 2004-09-13 at 15:03, Michael McGrady wrote: > Sebastian Ho wrote: > > >Hi > > > >My index.jsp has a top frame and bottom frame. > > > >I have a html:button in the bottom frame.

Re: Frame problem using Struts

2004-09-13 Thread Michael McGrady
Sebastian Ho wrote: 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 disp