I don't think that you have control of when the frames are loading. The browser
attempts to load both frames simultaneously. (Please correct me if I am wrong)
Therefore, you would have to do something kinda funky (javascript) to instruct
another frame to 'reload' after the current frame finishes.
If you cannot gaurantee that your users have javascript enabled, you will
probably want to avoid it.

A couple of thoughts...

Instead, maybe you could use an action for both frames...  Have them call a
utility class that generates a static ID.
Then each action will be able to share the same ID and perform the desired tasks
using it?
- Or -
Your welcome page could be a single frame that calls an action.  The action
could generate the ID you want, then forward to a frameset page that loads the
JSP page with the drop down list, and the action you mentioned below.

HTH,
    Pete


Jack Xu wrote:

> I have a frameset of 2 frames. The first frame loads a JSP file containing a
> custom tag. The tag retrieves a list from my database and displays it as a
> drop down list. The tag then marks the first entry in the list as default
> and then load another file in the second frame. In stead of having a static
> welcome page in the second frame, I'm wondering if there's any way to
> perform this:
>
> 1. The custom tag finishes in the first frame. It puts some kind of ID in
> the session.
> 2. Before the second frame loads, a struts action is executed. The action
> retrieves information from my database based on the ID the custom tag put in
> the session, construct a form containing the information returned from the
> database and forwards to the JSP page to be loaded to the second frame. The
> JSP load info from the form so that I have default page with information
> loaded from the database.
>
> Your help is very much appreciated !
>
> --------------------------------------------------------------
> Jack Xu
>
> March Networks
> (416)977-7007 x 308
> Email: [EMAIL PROTECTED]
> --------------------------------------------------------------
begin:vcard 
n:;
x-mozilla-html:FALSE
org:<BR><IMG SRC="http://www.irista.com/logo/irista.gif";><BR><BR><FONT Color=#000080><FONT SIZE=2><B>Bringing Vision to Your Supply Chain
adr:;;;;;;
version:2.1
end:vcard

Reply via email to