My 2 cents:

1. It is true that frames are hard (I will not use the word "suck"). It does provide a 
rich user interface. We can have a long debate here, though, and I will not get into 
that. 

2. Struts does not provide a direct support for frames, you have to do it your own. In 
addition to what Erik suggested, you can also target to another frame and only update 
the content of that frame. With a litter bit help of javascript, you can refresh any 
frame or frames you want. 

3. I have developed a product with three frames and using Struts as web-tier controls. 
I have my own framework to handle the interaction between different frames. It works 
out pretty well.

Good luck,
Zhiyong 

-----Original Message-----
From: Erik Hatcher [mailto:[EMAIL PROTECTED] 
Sent: Thursday, January 22, 2004 1:04 PM
To: Research Triangle Java User's Group mailing list.
Subject: Re: [Juglist] Struts two frame refresh


Two items of wisdom here:

1) Don't use frames.  Frames suck.

2) If you do use frames, and want both frames updated from a hyperlink, 
you need to do some extra special magic.  I did this on a past project 
and it was a bit of work but I created some nice infrastructure that 
proxied ActionErrors in and out of session scope with a special base 
action, so errors appeared in the right frame.  I might have posted 
some insight to the struts-user/-dev lists 1 1/2 to 2 years ago, but 
that project is long dead.  You will have to target _top to get both 
frames updated, and the action needs to forward to a JSP/HTML that is 
the frameset, and consideration of the URL's used for each frame need 
to be made.

        Erik



On Jan 22, 2004, at 12:35 PM, Jason Williams wrote:

> Hi all,
>
> I am currently working on an application that uses Struts 1.1.  The 
> interface is a frameset and I have a "wizard" interface in one frame 
> and a navigation structure in the other.  My question is this: At 
> certain points
> in the wizard process, the navigation frame needs to be updated with
> information that is a result of an action taken inside the execute 
> method of
> my Action class.  How do I get Struts to both refresh the nav frame AND
> forward the user to the next wizard screen in the main frame?
>
> I'm fairly new to Struts, so any insight appreciated.  Thanks,
>
>
> Jason Williams
> Web Commerce Group
> Private-label Internet Applications for Business
>
> Home of Arkdom Managed Services
> www.arkdom.com
>
>
>
> _______________________________________________
> Juglist mailing list
> [EMAIL PROTECTED] 
> http://trijug.org/mailman/listinfo/juglist_trijug.org


_______________________________________________
Juglist mailing list
[EMAIL PROTECTED] http://trijug.org/mailman/listinfo/juglist_trijug.org

_______________________________________________
Juglist mailing list
[EMAIL PROTECTED]
http://trijug.org/mailman/listinfo/juglist_trijug.org

Reply via email to