Quoting Heligon Sandra <[EMAIL PROTECTED]>:

replace the string index.jsp in the location attribute with a struts action
path. FYI, the location attribute is is allowed on both <Menu> and <Item>.

<Menu  name="MenuLogout"  title="menu.label.logout"
location="pathToMyLogoutAction.do"> 
<Menu  name="MenuHelp"  title="menu.label.help"> 
   <Item  name="about" title="menu.label.help.about"
location="pathToMyAboutAction.do"/>
</Menu>

Dont be scared, just try ;)

-- 
P. 

> It is perhaps a solution but I don't know where I can find help
> about syntax of the menu-config.xml file there is no dtd file
> associated to this file in the struts-menu example.
> I don't know which attributes are available in the <item> or <menu>
> tag.
> 
> example of menu-config.xml
> <Menu  name="MenuHelp"  title="menu.label.help"> 
>   <Item  name="about" title="menu.label.help.about"
> location="index.jsp"/>
> </Menu>
> 
> 
> ----------------------------------------------------------------------------
> 
> As of February 12th, 2003 Thomson unifies its email addresses on a
> worldwide
> basis. 
> Please note my new email address: [EMAIL PROTECTED] 
> 
> http://www.thomson.net/ 
> 
> ----Original Message-----
> From: Pascal THIVENT [mailto:[EMAIL PROTECTED]
> Sent: 13 March 2003 16:32
> To: Struts Users Mailing List; Heligon Sandra
> Cc: 'Struts Users Mailing List'
> Subject: RE: Struts-menu with Tiles
> 
> 
> Quoting Heligon Sandra <[EMAIL PROTECTED]>:
> 
> why not using a custom Action to perform the logout and forward then to
> the
> tiles def ? 
> 
> HTH
> 
> P.
> 
> > I defined the following entry in the tiles-def.xml.
> > 
> > <definition name="site.menu.bar" path="/coolmenu2.jsp">
> > </definition>
> > 
> > with coolmenu2.jsp:
> > <%@ taglib uri="/WEB-INF/tld/struts-menu.tld" prefix="menu"%>
> > 
> > <script language="JavaScript1.2" src="./scripts/coolmenus3.js">
> > </script>
> > <script src="./scripts/coolmenu2-config.js"> 
> > </script>
> > 
> > <menu:useMenuDisplayer name="CoolMenu"
> > bundle="org.apache.struts.action.MESSAGE">
> >     <menu:displayMenu name="MenuHome"/>
> >     <menu:displayMenu name="MenuLogout"/>
> >     <menu:displayMenu name="MenuHelp"/>
> > </menu:useMenuDisplayer>
> > 
> > I can display a horizontal struts-menu.
> > But when the user select the command Logout I would like to call a
> > tiles
> > definition, in this case site.login.page.
> > 
> > <definition name="site.login.page" extends="site.mainLayout">
> >       <put name="title" value="Login page" />
> >       <put name="body" value="login.jsp" />
> >       <put name="menu" value="/tiles/common/empty.jsp" />
> >       <put name="user" value="/tiles/common/empty.jsp" />
> > </definition>
> > 
> > If in the menu config I write 
> > <Menu  name="MenuLogout"  title="menu.label.logout"
> > location="site.login.page"> 
> > </Menu>
> > 
> > It doesn't work I have the error "Unable to open location: Document
> > not
> > found on server".
> > To display the login page I must write 
> > <Menu  name="MenuLogout"  title="menu.label.logout"
> > location="login.jsp"> 
> > </Menu>
> > 
> > but the page doesn't have the look and feel of the application.
> > 
> > 
> >
> ----------------------------------------------------------------------------
> > 
> > As of February 12th, 2003 Thomson unifies its email addresses on a
> > worldwide
> > basis. 
> > Please note my new email address: [EMAIL PROTECTED] 
> > 
> > http://www.thomson.net/ 
> > 
> > ----Original Message-----
> > From: Edgar Dollin [mailto:[EMAIL PROTECTED]
> > Sent: 13 March 2003 14:05
> > To: 'Struts Users Mailing List'
> > Subject: RE: Struts-menu with Tiles
> > 
> > 
> > Absolutely.
> > 
> > Just have one of your tiles be the menu.
> > 
> > Edgar
> > 
> > > -----Original Message-----
> > > From: Heligon Sandra [mailto:[EMAIL PROTECTED] 
> > > Sent: Thursday, March 13, 2003 3:47 AM
> > > To: '[EMAIL PROTECTED]'; '[EMAIL PROTECTED]'
> > > Subject: Struts-menu with Tiles
> > > 
> > > 
> > > 
> > >   My question is perhaps stupid, sorry. 
> > >   I would wish to know if it is possible to use 
> > > struts-menu with Tiles. 
> > >   I for a long time seek an example of horizontal 
> > > dropdown menu and the menu used in struts-menu example
> > >   coolmenus3 seems to me satisfactory. 
> > >   But I use the Tiles components to build my pages. 
> > >   Is it possible to use the two technologies? 
> > >   Thanks a lot in advance.
> > >   
> > >   Sandra
> > > 
> > > ----------------------------------------------------------- 
> > > As of February 12, 2003 Thomson unifies its email addresses 
> > > on a worldwide basis.Please note my new email address: 
> > > [EMAIL PROTECTED] 
> > > 
> > > Thomson is the leader in solutions and technologies for the 
> > > entertainment and media industries and serves its customers 
> > > under its four strategic
> > > brands: Technicolor, Grass Valley, RCA and THOMSON. 
> > > More about Thomson: http://www.thomson.net/videochain 
> > > 
> > > 
> > 
> >
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > 
> 
> 
> 
> --
> P.
> 
> ---------------------------------------------------------------------
> 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]

Reply via email to