Here is an example frame layout that maps to actions for each of the pages to be 
displayed...
 
<frameset rows="80,*" cols="*" frameborder="no" border="0" framespacing="0">
<frame src="/header.do" name="headerFrame" scrolling="no" noresize>
<frameset cols="120,*" frameborder="no" border="0" framespacing="0">
<frame src="/nav.do" name="navFrame" scrolling="no" noresize>
<frame src="/main.do" name="mainFrame">
</frameset>
</frameset>
 
 
As for href links... I've used the following:
 
<html:link page="javascript:nav('parameter');">example 1</html:link>

 

JavaScript that executes the href.... notice that the line 
(paraent.mainFrame.location) identifies which frame window to display the returned 
page....

// JavaScript Document
function nav(id) {

 var URL = "/Display.do?item=" + id + "&site=public"
 parent.mainFrame.location = URL;
}

 

Hope this helps....

 

-----Original Message----- 
From: neso m [mailto:[EMAIL PROTECTED] 
Sent: Thu 11/13/2003 2:49 PM 
To: Struts Users Mailing List 
Cc: 
Subject: RE: struts application with frames: top, side menus and main screen



        Thanks for your answers. Do you have any documents, how to, etc to point me 
too?
        
        Neso
        
        David Liles <[EMAIL PROTECTED]> wrote:
        There are 100 ways to peel an onion.... one way to peel it is to attach a 
parameter to each of your links and in your action mapping determin which pages should 
be displayed based on the detected parameter....
        
        As for displaying different pages in your different frame windows... you 
control that with your targets.....
        
        -----Original Message-----
        From: neso m [mailto:[EMAIL PROTECTED]
        Sent: Thu 11/13/2003 2:27 PM
        To: Struts Users Mailing List
        Cc:
        Subject: RE: struts application with frames: top, side menus and main screen
        
        
        
        
        
        ...I need to put dynamic support for different languages. Display every page 
in English/French, back and forth also top and side menu changes every time I click 
French or English. As I change through my top menu i would like my side menu to 
change, as well as my main page, for example when I click on administration 
administration menu pops up on the left hand side and main page populated with welcome 
to the admin section. Similar thing with publishing section, and any other on topmenu 
etc.I have little prototype with heavu use of JavaScript which I am not very happy 
with. Where tough to maintain. I beleive that there is a better way to do this 
utilizing some Struts tags instead of using bare JavaScript. I was wondering if there 
is anyone with anything to share that would get me going here.
        
        Thanks !
        
        Neso
        
        David Liles wrote:
        I am currently working on a site that is frame based.... for each of the pages 
that are to be displayed I reference the action mapping for each of the src tags.....
        
        -----Original Message-----
        From: neso m [mailto:[EMAIL PROTECTED]
        Sent: Thu 11/13/2003 2:02 PM
        To: [EMAIL PROTECTED]
        Cc:
        Subject: struts application with frames: top, side menus and main screen
        
        
        
        
        
        Hi !
        
        Has anyone found sample STRUTS application and/or documentation on the net 
that uses frames ? I would like to build the application with top menu, side menu and 
main screen.
        Thanks !
        
        Neso
        
        
        
        
        
        
        ---------------------------------
        Do you Yahoo!?
        Protect your identity with Yahoo! Mail AddressGuard
        
        ---------------------------------------------------------------------
        To unsubscribe, e-mail: [EMAIL PROTECTED]
        For additional commands, e-mail: [EMAIL PROTECTED]
        
        ---------------------------------
        Do you Yahoo!?
        Protect your identity with Yahoo! Mail AddressGuard
        
        ---------------------------------------------------------------------
        To unsubscribe, e-mail: [EMAIL PROTECTED]
        For additional commands, e-mail: [EMAIL PROTECTED]
        
        ---------------------------------
        Do you Yahoo!?
        Protect your identity with Yahoo! Mail AddressGuard 

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to