RE: struts-menu from action

2004-02-05 Thread Pingili, Madhupal
Here is the code to create MenuRepository:

   //Call SQL or Stored Procedure, get roles and prepare list of roles.
   ArrayList userMenus = new ArrayList();
   userMenus.add(TabbedUserSearch);
   userMenus.add(TabbedAdvSearch);
   userMenus.add(TabbedLogoff);
   userMenus.add(TabbedHelp);
   session.setAttribute(WebConstants.USER_MENUS, userMenus);
   //End of preparing roles.
 
   //Create Menu Repository, stuff it and keep it in session scope.
   MenuRepository newMenuRep = new MenuRepository();
   MenuRepository mrp = (MenuRepository)
 servlet.getServletContext().getAttribute(MenuRepository.MENU_R
 EPOSITORY_KEY) ;
   logDebug.debug(UserInitializationAction: Menu - LoadParam:   +
 mrp.getLoadParam() );
   logDebug.debug(UserInitializationAction: Menu - Name:   +
 mrp.getName() );
   newMenuRep.addMenuDisplayerMapping(
 mrp.getMenuDisplayerMapping(DropDown) );
   newMenuRep.addMenuDisplayerMapping(
 mrp.getMenuDisplayerMapping(Simple) );
   newMenuRep.addMenuDisplayerMapping(
 mrp.getMenuDisplayerMapping(CoolMenu) );
   newMenuRep.addMenuDisplayerMapping(
 mrp.getMenuDisplayerMapping(CoolMenu4) );
   newMenuRep.addMenuDisplayerMapping(
 mrp.getMenuDisplayerMapping(MenuForm) );
   newMenuRep.addMenuDisplayerMapping(
 mrp.getMenuDisplayerMapping(ListMenu) );
   newMenuRep.addMenuDisplayerMapping(
 mrp.getMenuDisplayerMapping(TabbedMenu) );
   newMenuRep.addMenuDisplayerMapping(
 mrp.getMenuDisplayerMapping(Velocity) );

   Set menuNames = mrp.getMenuNames();

   for( int k = 0; k  userMenus.size(); k++ ) {
 String roleName = (String) userMenus.get(k);
 Iterator iter = menuNames.iterator();
 while( iter.hasNext() ) {
  String menuName = (String) iter.next();
  if( roleName.equalsIgnoreCase(menuName) ) {
newMenuRep.addMenu( mrp.getMenu(menuName) );
 logDebug.debug(UserInitializationAction: 
MenuNames:   + menuName );
  }
 }
   }
   
 session.setAttribute(MenuRepository.MENU_REPOSITORY_KEY, newMenuRep);
   //End of Menu Repository creation.
 
Now, this new MenuRepository will be used by Struts-Menu to render menus.

I hope this helps.

Reddy Pingili

 -Original Message-
 From: David Erickson [SMTP:[EMAIL PROTECTED]
 Sent: Wednesday, February 04, 2004 4:57 PM
 To:   Struts Users Mailing List
 Subject:  Re: struts-menu from action
 
 You would probably have to do that coding yourself to handle that.. what
 we
 implemented is ALL our menus are stored in menu-config.xml and each one
 has
 assigned a 'roll' to it and if the user has the roll the menu is shown..
 etc
 -David
 
 - Original Message - 
 From: Vijay Kandy [EMAIL PROTECTED]
 To: 'Struts Users Mailing List' [EMAIL PROTECTED]
 Sent: Wednesday, February 04, 2004 2:43 PM
 Subject: struts-menu from action
 
 
  Hello All,
 
  I was going through examples of struts-menu and it looks like the menu
 items
  are read from menu-config.xml. Is it possible to populate these items an
  Action class? I would like to get these from Action because the menu
 items
  are stored in a database and are retrieved based on whos logged in.
 
  Sincerely,
  Vijay Kandy
 
  -
  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]
 

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



Re: struts-menu from action

2004-02-04 Thread David Erickson
You would probably have to do that coding yourself to handle that.. what we
implemented is ALL our menus are stored in menu-config.xml and each one has
assigned a 'roll' to it and if the user has the roll the menu is shown.. etc
-David

- Original Message - 
From: Vijay Kandy [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Sent: Wednesday, February 04, 2004 2:43 PM
Subject: struts-menu from action


 Hello All,

 I was going through examples of struts-menu and it looks like the menu
items
 are read from menu-config.xml. Is it possible to populate these items an
 Action class? I would like to get these from Action because the menu items
 are stored in a database and are retrieved based on whos logged in.

 Sincerely,
 Vijay Kandy

 -
 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]



RE: struts-menu from action

2004-02-04 Thread Vijay Kandy
I was going along that path and I wanted a second opinion. Thank you.

Vijay Kandy

-Original Message-
From: David Erickson [mailto:[EMAIL PROTECTED]
Sent: Wednesday, February 04, 2004 4:57 PM
To: Struts Users Mailing List
Subject: Re: struts-menu from action


You would probably have to do that coding yourself to handle that.. what we
implemented is ALL our menus are stored in menu-config.xml and each one has
assigned a 'roll' to it and if the user has the roll the menu is shown.. etc
-David

- Original Message - 
From: Vijay Kandy [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Sent: Wednesday, February 04, 2004 2:43 PM
Subject: struts-menu from action


 Hello All,

 I was going through examples of struts-menu and it looks like the menu
items
 are read from menu-config.xml. Is it possible to populate these items an
 Action class? I would like to get these from Action because the menu items
 are stored in a database and are retrieved based on whos logged in.

 Sincerely,
 Vijay Kandy

 -
 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]

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



RE: Struts-Menu (Support URL Re-writing)

2004-01-22 Thread Matt Raible
Sounds complicated.  I don't use struts-layout so I don't know that I'm
that interested in *fixing* struts-menu so it works with it.  Maybe you
should check with them and see why they don't support the latest
struts-menu - and why they care what version of struts-menu you're
using?

Matt

 -Original Message-
 From: Parag Pattewar [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, January 21, 2004 9:24 PM
 To: Struts Users Mailing List
 Cc: [EMAIL PROTECTED]
 Subject: RE: Struts-Menu (Support URL Re-writing)
 
 
 Hi Matt
 
 I am using JDK1.4 and  Struts-Menu1.1.
 I tried to do the same thing with struts-menu2.1 , but as I 
 am using struts-layout1.1 its not supporting struts-menu2.1 
 Can you help me to get the compatible version of 
 Struts-Layout2.1 and struts-menu2.1.Which will support the 
 action and forward attribute for the menu and item.
 
 Thanks
 Parag
 
 
 -Original Message-
 From: Matt Raible [mailto:H
 Sent: Tuesday, January 20, 2004 7:32 PM
 To: 'Struts Users Mailing List'
 Subject: RE: Struts-Menu (Support URL Re-writing)
 
 
 I need to know a couple things to help you with this problem.
 
 1.  What version of Struts Menu are you using?
 2.  Which displayer are you using?
 
 
 Also, knowing what platform (OS) and JDK version you're using 
 can't hurt.
 
 Matt
 
  -Original Message-
  From: Parag Pattewar [mailto:[EMAIL PROTECTED]
  Sent: Monday, January 19, 2004 10:34 PM
  To: Struts Users Mailing List
  Cc: [EMAIL PROTECTED]
  Subject: RE: Struts-Menu (Support URL Re-writing)
 
 
  Hi
 
  If I change below location attribute to action attribute 
 for Menu as 
  well as from Item then
 
  For menu link I am getting
 
  http://localhost:8080/cust/null/expandedMenu=CsrAccountInformation
 
  and For Item link I am getting
 
  http://localhost:8080/cust/null instead of 
  http://localhost:8080/cust/personalDataLoad?expandedMenu=CsrAc
  countInformati
  on
 
   Menu  name=CsrAcctInfo  title= action=/accountinfoview 
  Item   name=AcctCon  title=Contact
  action=/personalDataLoad?expandedMenu=CsrAccountInformation/
  Item   name=ClsAcct  title=Close
  
 action=/closeAccountPageRouter?expandedMenu=CsrAccountInformation/
   /Menu
 
  Why this null is coming, is it coming bacause of some path 
 problem. I 
  checked the entry of /accountinfoview and all actions 
 mentioned above 
  in my struts-config.xml, the entries are there.
 
  Thanks in advance for the Help.
 
  Regards
  Parag
 
  -Original Message-
  From: Matt Raible [mailto:[EMAIL PROTECTED]
  Sent: Saturday, January 17, 2004 9:20 PM
  To: 'Struts Users Mailing List'
  Subject: RE: Struts-Menu (Support URL Re-writing)
 
 
  Change the location attribute to a action attribute, where the 
  value of action matches the path of your action mapping.  For 
  example:
 
  Menu  name=CsrAccountInformation  title= 
  action=/accountinfoview
 
  If you are using 2.0, this should work.  If it doesn't, let me know 
  what displayer you're using and I'll fix it.
 
  Matt
 
   -Original Message-
   From: Parag Pattewar [mailto:[EMAIL PROTECTED]
   Sent: Saturday, January 17, 2004 12:05 AM
   To: Matt Raible; 'Struts Users Mailing List'
   Subject: RE: Struts-Menu (Support URL Re-writing)
  
  
  
   Hi
   I am having previous implementation of struts-menu as below
  
   Menu  name=CsrAccountInformation  title= 
   location=accountinfoview.do 
   Item   name=act  title=Con
   location=personaldtd.do?expMenu=AcctInfo/
   Item   name=cas  title=Clo Acct
   location=clsRouter.do?expMenu=AcctInfo/
   /Menu
  
   I have changed it as below, is it the correct way of using
  action and
   forward attributes in struts-menu.
  
   Menu  name=CsrAccountInformation  title= 
   location=accountinfoview.do 
   Item   name=act  title=Con
   action=personaldtd.do?expMenu=AcctInfo/
   Item   name=cas  title=Clo Acct
   forward=clsRouter.do?expMenu=AcctInfo/
   /Menu
  
  
  
   -Original Message-
   From: Matt Raible [mailto:[EMAIL PROTECTED]
   Sent: Friday, January 16, 2004 8:44 PM
   To: 'Struts Users Mailing List'; 'Parag Pattewar'
   Subject: RE: Struts-Menu (Support URL Re-writing)
  
  
   Struts Menu makes use of Struts classes to support forward and 
   action attributes.  If you use those, you'll likely get the 
   re-writing you're looking for.  I did this on a previous
  project and
   did find that the forward attribute worked, but not the 
 action 
   attribute.  I believe this is a bug in Struts since it should do 
   rewriting when looking up an Action's path.
  
   The one issue with re-writing is that if you're using a menu that 
   matches URLs (i.e. tabbed-menu) - they probably won't get
  matched up.
   At a previous project, we were using URLs to highlight 
 the current 
   page we were on and we found that we had to use the
  action attribute
   or the page attribute so that the jsessionid wasn't

RE: Struts-Menu (Support URL Re-writing)

2004-01-21 Thread Parag Pattewar
Hi Matt

I am using JDK1.4 and  Struts-Menu1.1.
I tried to do the same thing with struts-menu2.1 , but as I am using
struts-layout1.1 its not supporting struts-menu2.1
Can you help me to get the compatible version of Struts-Layout2.1 and
struts-menu2.1.Which will support the action and forward attribute for the
menu and item.

Thanks
Parag


-Original Message-
From: Matt Raible [mailto:H
Sent: Tuesday, January 20, 2004 7:32 PM
To: 'Struts Users Mailing List'
Subject: RE: Struts-Menu (Support URL Re-writing)


I need to know a couple things to help you with this problem.

1.  What version of Struts Menu are you using?
2.  Which displayer are you using?


Also, knowing what platform (OS) and JDK version you're using can't
hurt.

Matt

 -Original Message-
 From: Parag Pattewar [mailto:[EMAIL PROTECTED]
 Sent: Monday, January 19, 2004 10:34 PM
 To: Struts Users Mailing List
 Cc: [EMAIL PROTECTED]
 Subject: RE: Struts-Menu (Support URL Re-writing)


 Hi

 If I change below location attribute to action attribute for
 Menu as well as from Item then

 For menu link I am getting

 http://localhost:8080/cust/null/expandedMenu=CsrAccountInformation

 and For Item link I am getting

 http://localhost:8080/cust/null instead of
 http://localhost:8080/cust/personalDataLoad?expandedMenu=CsrAc
 countInformati
 on

  Menu  name=CsrAcctInfo  title= action=/accountinfoview 
 Item   name=AcctCon  title=Contact
 action=/personalDataLoad?expandedMenu=CsrAccountInformation/
 Item   name=ClsAcct  title=Close
 action=/closeAccountPageRouter?expandedMenu=CsrAccountInformation/
  /Menu

 Why this null is coming, is it coming bacause of some path
 problem. I checked the entry of /accountinfoview and all
 actions mentioned above in my struts-config.xml, the entries
 are there.

 Thanks in advance for the Help.

 Regards
 Parag

 -Original Message-
 From: Matt Raible [mailto:[EMAIL PROTECTED]
 Sent: Saturday, January 17, 2004 9:20 PM
 To: 'Struts Users Mailing List'
 Subject: RE: Struts-Menu (Support URL Re-writing)


 Change the location attribute to a action attribute,
 where the value of action matches the path of your action
 mapping.  For example:

 Menu  name=CsrAccountInformation  title=
 action=/accountinfoview

 If you are using 2.0, this should work.  If it doesn't, let
 me know what displayer you're using and I'll fix it.

 Matt

  -Original Message-
  From: Parag Pattewar [mailto:[EMAIL PROTECTED]
  Sent: Saturday, January 17, 2004 12:05 AM
  To: Matt Raible; 'Struts Users Mailing List'
  Subject: RE: Struts-Menu (Support URL Re-writing)
 
 
 
  Hi
  I am having previous implementation of struts-menu as below
 
  Menu  name=CsrAccountInformation  title=
  location=accountinfoview.do 
  Item   name=act  title=Con
  location=personaldtd.do?expMenu=AcctInfo/
  Item   name=cas  title=Clo Acct
  location=clsRouter.do?expMenu=AcctInfo/
  /Menu
 
  I have changed it as below, is it the correct way of using
 action and
  forward attributes in struts-menu.
 
  Menu  name=CsrAccountInformation  title=
  location=accountinfoview.do 
  Item   name=act  title=Con
  action=personaldtd.do?expMenu=AcctInfo/
  Item   name=cas  title=Clo Acct
  forward=clsRouter.do?expMenu=AcctInfo/
  /Menu
 
 
 
  -Original Message-
  From: Matt Raible [mailto:[EMAIL PROTECTED]
  Sent: Friday, January 16, 2004 8:44 PM
  To: 'Struts Users Mailing List'; 'Parag Pattewar'
  Subject: RE: Struts-Menu (Support URL Re-writing)
 
 
  Struts Menu makes use of Struts classes to support forward and
  action attributes.  If you use those, you'll likely get the
  re-writing you're looking for.  I did this on a previous
 project and
  did find that the forward attribute worked, but not the action
  attribute.  I believe this is a bug in Struts since it should do
  rewriting when looking up an Action's path.
 
  The one issue with re-writing is that if you're using a menu that
  matches URLs (i.e. tabbed-menu) - they probably won't get
 matched up.
  At a previous project, we were using URLs to highlight the current
  page we were on and we found that we had to use the
 action attribute
  or the page attribute so that the jsessionid wasn't appended.  Of
  course, we could've stripped this off in our Velocity
 template, but we
  wen't with the quick, less-logic, way.
 
  To see this project, go to http://telluride.resortquest.com
 and drill
  down a bit.  The menu with highlight is on the right.  BTW,
 this site
  uses the Velocity displayer for both the top menu and the side menu.
 
  If you're not familiar with struts-menu, checkout the demo at
  http://raibledesigns.com/struts-menu.
 
  Matt
 
   -Original Message-
   From: Edgar P Dollin [mailto:[EMAIL PROTECTED]
   Sent: Friday, January 16, 2004 7:54 AM
   To: 'Parag Pattewar'; [EMAIL PROTECTED]
   Subject: RE: Struts-Menu (Support URL Re-writing)
  
  
   You have

RE: Struts-Menu (Support URL Re-writing)

2004-01-20 Thread Parag Pattewar
Hi

Where I can get a Struts-Layout.jar?
The jar should be compatible with a Struts-Menu 2.1.jar 

Thanks in advance

Thanks and Regards
Parag

-Original Message-
From: Matt Raible [mailto:[EMAIL PROTECTED]
Sent: Monday, January 19, 2004 7:55 PM
To: 'Struts Users Mailing List'
Subject: RE: Struts-Menu (Support URL Re-writing)


Struts Menu 2.0 and above.  What version of Struts Menu are you using?
Feel free to subscribe to the struts-menu mailing list and move this
discussion over there.

http://lists.sourceforge.net/lists/listinfo/struts-menu-user

Or use the forums:

http://sourceforge.net/forum/?group_id=48726

Matt


 -Original Message-
 From: Parag Pattewar [mailto:[EMAIL PROTECTED] 
 Sent: Sunday, January 18, 2004 9:37 PM
 To: Struts Users Mailing List
 Cc: [EMAIL PROTECTED]
 Subject: RE: Struts-Menu (Support URL Re-writing)
 
 
 Hi
 
 I tried to change the location attribute to forward or 
 Action, its not supporting because the struts version we are 
 using is 1.1 and as you have mentioned to use struts 2.0 and above.
 
 How do I make change, so struts 1.1 should support URL Rewriting.
 
 Regards
 Parag
 
 -Original Message-
 From: Matt Raible [mailto:[EMAIL PROTECTED]
 Sent: Saturday, January 17, 2004 9:20 PM
 To: 'Struts Users Mailing List'
 Subject: RE: Struts-Menu (Support URL Re-writing)
 
 
 Change the location attribute to a action attribute, 
 where the value of action matches the path of your action 
 mapping.  For example:
 
 Menu  name=CsrAccountInformation  title= 
 action=/accountinfoview
 
 If you are using 2.0, this should work.  If it doesn't, let 
 me know what displayer you're using and I'll fix it.
 
 Matt
 
  -Original Message-
  From: Parag Pattewar [mailto:[EMAIL PROTECTED]
  Sent: Saturday, January 17, 2004 12:05 AM
  To: Matt Raible; 'Struts Users Mailing List'
  Subject: RE: Struts-Menu (Support URL Re-writing)
 
 
 
  Hi
  I am having previous implementation of struts-menu as below
 
  Menu  name=CsrAccountInformation  title= 
  location=accountinfoview.do 
  Item   name=act  title=Con
  location=personaldtd.do?expMenu=AcctInfo/
  Item   name=cas  title=Clo Acct
  location=clsRouter.do?expMenu=AcctInfo/
  /Menu
 
  I have changed it as below, is it the correct way of using 
 action and 
  forward attributes in struts-menu.
 
  Menu  name=CsrAccountInformation  title= 
  location=accountinfoview.do 
  Item   name=act  title=Con
  action=personaldtd.do?expMenu=AcctInfo/
  Item   name=cas  title=Clo Acct
  forward=clsRouter.do?expMenu=AcctInfo/
  /Menu
 
 
 
  -Original Message-
  From: Matt Raible [mailto:[EMAIL PROTECTED]
  Sent: Friday, January 16, 2004 8:44 PM
  To: 'Struts Users Mailing List'; 'Parag Pattewar'
  Subject: RE: Struts-Menu (Support URL Re-writing)
 
 
  Struts Menu makes use of Struts classes to support forward and 
  action attributes.  If you use those, you'll likely get the 
  re-writing you're looking for.  I did this on a previous 
 project and 
  did find that the forward attribute worked, but not the action 
  attribute.  I believe this is a bug in Struts since it should do 
  rewriting when looking up an Action's path.
 
  The one issue with re-writing is that if you're using a menu that 
  matches URLs (i.e. tabbed-menu) - they probably won't get 
 matched up. 
  At a previous project, we were using URLs to highlight the current 
  page we were on and we found that we had to use the 
 action attribute 
  or the page attribute so that the jsessionid wasn't appended.  Of 
  course, we could've stripped this off in our Velocity 
 template, but we 
  wen't with the quick, less-logic, way.
 
  To see this project, go to http://telluride.resortquest.com 
 and drill 
  down a bit.  The menu with highlight is on the right.  BTW, 
 this site 
  uses the Velocity displayer for both the top menu and the side menu.
 
  If you're not familiar with struts-menu, checkout the demo at 
  http://raibledesigns.com/struts-menu.
 
  Matt
 
   -Original Message-
   From: Edgar P Dollin [mailto:[EMAIL PROTECTED]
   Sent: Friday, January 16, 2004 7:54 AM
   To: 'Parag Pattewar'; [EMAIL PROTECTED]
   Subject: RE: Struts-Menu (Support URL Re-writing)
  
  
   You have the source to struts and the source to
  struts-menu, grab the
   code from struts and plug it into struts-menu and submit a
  patch.  You
   might need a menu-config.xml option to indicate that you
  will be url
   rewriting.
  
   Edgar
  
   -Original Message-
   From: Parag Pattewar [mailto:[EMAIL PROTECTED]
   Sent: Friday, January 16, 2004 7:21 AM
   To: [EMAIL PROTECTED]
   Subject: Struts-Menu (Support URL Re-writing)
  
  
   Hi all
  
   How do I change Struts-Menu implemention, so it can support URL 
   ReWriting for session tracking?
  
   Thanks and Regards
   Parag Pattewar
   Persistent Systems Private Limited
   Bhageerath
   402, Senapati Bapat Road
   Pune

RE: Struts-Menu (Support URL Re-writing)

2004-01-20 Thread Matt Raible
I need to know a couple things to help you with this problem.

1.  What version of Struts Menu are you using?
2.  Which displayer are you using?


Also, knowing what platform (OS) and JDK version you're using can't
hurt.

Matt

 -Original Message-
 From: Parag Pattewar [mailto:[EMAIL PROTECTED] 
 Sent: Monday, January 19, 2004 10:34 PM
 To: Struts Users Mailing List
 Cc: [EMAIL PROTECTED]
 Subject: RE: Struts-Menu (Support URL Re-writing)
 
 
 Hi
 
 If I change below location attribute to action attribute for 
 Menu as well as from Item then
 
 For menu link I am getting
 
 http://localhost:8080/cust/null/expandedMenu=CsrAccountInformation
 
 and For Item link I am getting
 
 http://localhost:8080/cust/null instead of 
 http://localhost:8080/cust/personalDataLoad?expandedMenu=CsrAc
 countInformati
 on
 
  Menu  name=CsrAcctInfo  title= action=/accountinfoview 
 Item   name=AcctCon  title=Contact
 action=/personalDataLoad?expandedMenu=CsrAccountInformation/
 Item   name=ClsAcct  title=Close
 action=/closeAccountPageRouter?expandedMenu=CsrAccountInformation/
  /Menu
 
 Why this null is coming, is it coming bacause of some path 
 problem. I checked the entry of /accountinfoview and all 
 actions mentioned above in my struts-config.xml, the entries 
 are there.
 
 Thanks in advance for the Help.
 
 Regards
 Parag
 
 -Original Message-
 From: Matt Raible [mailto:[EMAIL PROTECTED]
 Sent: Saturday, January 17, 2004 9:20 PM
 To: 'Struts Users Mailing List'
 Subject: RE: Struts-Menu (Support URL Re-writing)
 
 
 Change the location attribute to a action attribute, 
 where the value of action matches the path of your action 
 mapping.  For example:
 
 Menu  name=CsrAccountInformation  title= 
 action=/accountinfoview
 
 If you are using 2.0, this should work.  If it doesn't, let 
 me know what displayer you're using and I'll fix it.
 
 Matt
 
  -Original Message-
  From: Parag Pattewar [mailto:[EMAIL PROTECTED]
  Sent: Saturday, January 17, 2004 12:05 AM
  To: Matt Raible; 'Struts Users Mailing List'
  Subject: RE: Struts-Menu (Support URL Re-writing)
 
 
 
  Hi
  I am having previous implementation of struts-menu as below
 
  Menu  name=CsrAccountInformation  title= 
  location=accountinfoview.do 
  Item   name=act  title=Con
  location=personaldtd.do?expMenu=AcctInfo/
  Item   name=cas  title=Clo Acct
  location=clsRouter.do?expMenu=AcctInfo/
  /Menu
 
  I have changed it as below, is it the correct way of using 
 action and 
  forward attributes in struts-menu.
 
  Menu  name=CsrAccountInformation  title= 
  location=accountinfoview.do 
  Item   name=act  title=Con
  action=personaldtd.do?expMenu=AcctInfo/
  Item   name=cas  title=Clo Acct
  forward=clsRouter.do?expMenu=AcctInfo/
  /Menu
 
 
 
  -Original Message-
  From: Matt Raible [mailto:[EMAIL PROTECTED]
  Sent: Friday, January 16, 2004 8:44 PM
  To: 'Struts Users Mailing List'; 'Parag Pattewar'
  Subject: RE: Struts-Menu (Support URL Re-writing)
 
 
  Struts Menu makes use of Struts classes to support forward and 
  action attributes.  If you use those, you'll likely get the 
  re-writing you're looking for.  I did this on a previous 
 project and 
  did find that the forward attribute worked, but not the action 
  attribute.  I believe this is a bug in Struts since it should do 
  rewriting when looking up an Action's path.
 
  The one issue with re-writing is that if you're using a menu that 
  matches URLs (i.e. tabbed-menu) - they probably won't get 
 matched up. 
  At a previous project, we were using URLs to highlight the current 
  page we were on and we found that we had to use the 
 action attribute 
  or the page attribute so that the jsessionid wasn't appended.  Of 
  course, we could've stripped this off in our Velocity 
 template, but we 
  wen't with the quick, less-logic, way.
 
  To see this project, go to http://telluride.resortquest.com 
 and drill 
  down a bit.  The menu with highlight is on the right.  BTW, 
 this site 
  uses the Velocity displayer for both the top menu and the side menu.
 
  If you're not familiar with struts-menu, checkout the demo at 
  http://raibledesigns.com/struts-menu.
 
  Matt
 
   -Original Message-
   From: Edgar P Dollin [mailto:[EMAIL PROTECTED]
   Sent: Friday, January 16, 2004 7:54 AM
   To: 'Parag Pattewar'; [EMAIL PROTECTED]
   Subject: RE: Struts-Menu (Support URL Re-writing)
  
  
   You have the source to struts and the source to
  struts-menu, grab the
   code from struts and plug it into struts-menu and submit a
  patch.  You
   might need a menu-config.xml option to indicate that you
  will be url
   rewriting.
  
   Edgar
  
   -Original Message-
   From: Parag Pattewar [mailto:[EMAIL PROTECTED]
   Sent: Friday, January 16, 2004 7:21 AM
   To: [EMAIL PROTECTED]
   Subject: Struts-Menu (Support URL Re-writing)
  
  
   Hi all
  
   How do I

RE: Struts-Menu (Support URL Re-writing)

2004-01-19 Thread Matt Raible
Struts Menu 2.0 and above.  What version of Struts Menu are you using?
Feel free to subscribe to the struts-menu mailing list and move this
discussion over there.

http://lists.sourceforge.net/lists/listinfo/struts-menu-user

Or use the forums:

http://sourceforge.net/forum/?group_id=48726

Matt


 -Original Message-
 From: Parag Pattewar [mailto:[EMAIL PROTECTED] 
 Sent: Sunday, January 18, 2004 9:37 PM
 To: Struts Users Mailing List
 Cc: [EMAIL PROTECTED]
 Subject: RE: Struts-Menu (Support URL Re-writing)
 
 
 Hi
 
 I tried to change the location attribute to forward or 
 Action, its not supporting because the struts version we are 
 using is 1.1 and as you have mentioned to use struts 2.0 and above.
 
 How do I make change, so struts 1.1 should support URL Rewriting.
 
 Regards
 Parag
 
 -Original Message-
 From: Matt Raible [mailto:[EMAIL PROTECTED]
 Sent: Saturday, January 17, 2004 9:20 PM
 To: 'Struts Users Mailing List'
 Subject: RE: Struts-Menu (Support URL Re-writing)
 
 
 Change the location attribute to a action attribute, 
 where the value of action matches the path of your action 
 mapping.  For example:
 
 Menu  name=CsrAccountInformation  title= 
 action=/accountinfoview
 
 If you are using 2.0, this should work.  If it doesn't, let 
 me know what displayer you're using and I'll fix it.
 
 Matt
 
  -Original Message-
  From: Parag Pattewar [mailto:[EMAIL PROTECTED]
  Sent: Saturday, January 17, 2004 12:05 AM
  To: Matt Raible; 'Struts Users Mailing List'
  Subject: RE: Struts-Menu (Support URL Re-writing)
 
 
 
  Hi
  I am having previous implementation of struts-menu as below
 
  Menu  name=CsrAccountInformation  title= 
  location=accountinfoview.do 
  Item   name=act  title=Con
  location=personaldtd.do?expMenu=AcctInfo/
  Item   name=cas  title=Clo Acct
  location=clsRouter.do?expMenu=AcctInfo/
  /Menu
 
  I have changed it as below, is it the correct way of using 
 action and 
  forward attributes in struts-menu.
 
  Menu  name=CsrAccountInformation  title= 
  location=accountinfoview.do 
  Item   name=act  title=Con
  action=personaldtd.do?expMenu=AcctInfo/
  Item   name=cas  title=Clo Acct
  forward=clsRouter.do?expMenu=AcctInfo/
  /Menu
 
 
 
  -Original Message-
  From: Matt Raible [mailto:[EMAIL PROTECTED]
  Sent: Friday, January 16, 2004 8:44 PM
  To: 'Struts Users Mailing List'; 'Parag Pattewar'
  Subject: RE: Struts-Menu (Support URL Re-writing)
 
 
  Struts Menu makes use of Struts classes to support forward and 
  action attributes.  If you use those, you'll likely get the 
  re-writing you're looking for.  I did this on a previous 
 project and 
  did find that the forward attribute worked, but not the action 
  attribute.  I believe this is a bug in Struts since it should do 
  rewriting when looking up an Action's path.
 
  The one issue with re-writing is that if you're using a menu that 
  matches URLs (i.e. tabbed-menu) - they probably won't get 
 matched up. 
  At a previous project, we were using URLs to highlight the current 
  page we were on and we found that we had to use the 
 action attribute 
  or the page attribute so that the jsessionid wasn't appended.  Of 
  course, we could've stripped this off in our Velocity 
 template, but we 
  wen't with the quick, less-logic, way.
 
  To see this project, go to http://telluride.resortquest.com 
 and drill 
  down a bit.  The menu with highlight is on the right.  BTW, 
 this site 
  uses the Velocity displayer for both the top menu and the side menu.
 
  If you're not familiar with struts-menu, checkout the demo at 
  http://raibledesigns.com/struts-menu.
 
  Matt
 
   -Original Message-
   From: Edgar P Dollin [mailto:[EMAIL PROTECTED]
   Sent: Friday, January 16, 2004 7:54 AM
   To: 'Parag Pattewar'; [EMAIL PROTECTED]
   Subject: RE: Struts-Menu (Support URL Re-writing)
  
  
   You have the source to struts and the source to
  struts-menu, grab the
   code from struts and plug it into struts-menu and submit a
  patch.  You
   might need a menu-config.xml option to indicate that you
  will be url
   rewriting.
  
   Edgar
  
   -Original Message-
   From: Parag Pattewar [mailto:[EMAIL PROTECTED]
   Sent: Friday, January 16, 2004 7:21 AM
   To: [EMAIL PROTECTED]
   Subject: Struts-Menu (Support URL Re-writing)
  
  
   Hi all
  
   How do I change Struts-Menu implemention, so it can support URL 
   ReWriting for session tracking?
  
   Thanks and Regards
   Parag Pattewar
   Persistent Systems Private Limited
   Bhageerath
   402, Senapati Bapat Road
   Pune 411016
   India
  
   Tel: +91 (20) 2567 8900 extn. 2640
   Fax: +91 (20) 2567 8901
  
  
  
  
 -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: 
 [EMAIL PROTECTED

Re: struts-menu-user -- confirmation of subscription -- request 348649

2004-01-19 Thread snpe
On Monday 19 January 2004 06:47 pm, [EMAIL PROTECTED] wrote:
 struts-menu-user -- confirmation of subscription -- request 348649

 We have received a request from 10.3.1.8 for subscription of your
 email address, [EMAIL PROTECTED], to the [EMAIL PROTECTED]
 mailing list.  To confirm the request, please send a message to
 [EMAIL PROTECTED], and either:

 - maintain the subject line as is (the reply's additional Re: is
 ok),

 - or include the following line - and only the following line - in the
 message body:

 confirm 348649

 (Simply sending a 'reply' to this message should work from most email
 interfaces, since that usually leaves the subject line in the right
 form.)

 If you do not wish to subscribe to this list, please simply disregard
 this message.  Send questions to [EMAIL PROTECTED]

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



RE: Struts-Menu (Support URL Re-writing)

2004-01-19 Thread Parag Pattewar
Hi

If I change below location attribute to action attribute for Menu as well
as from Item then

For menu link I am getting

http://localhost:8080/cust/null/expandedMenu=CsrAccountInformation

and For Item link I am getting

http://localhost:8080/cust/null instead of
http://localhost:8080/cust/personalDataLoad?expandedMenu=CsrAccountInformati
on

 Menu  name=CsrAcctInfo  title= action=/accountinfoview 
Item   name=AcctCon  title=Contact
action=/personalDataLoad?expandedMenu=CsrAccountInformation/
Item   name=ClsAcct  title=Close
action=/closeAccountPageRouter?expandedMenu=CsrAccountInformation/
 /Menu

Why this null is coming, is it coming bacause of some path problem.
I checked the entry of /accountinfoview and all actions mentioned above in
my struts-config.xml, the entries are there.

Thanks in advance for the Help.

Regards
Parag

-Original Message-
From: Matt Raible [mailto:[EMAIL PROTECTED]
Sent: Saturday, January 17, 2004 9:20 PM
To: 'Struts Users Mailing List'
Subject: RE: Struts-Menu (Support URL Re-writing)


Change the location attribute to a action attribute, where the value
of action matches the path of your action mapping.  For example:

Menu  name=CsrAccountInformation  title= action=/accountinfoview

If you are using 2.0, this should work.  If it doesn't, let me know what
displayer you're using and I'll fix it.

Matt

 -Original Message-
 From: Parag Pattewar [mailto:[EMAIL PROTECTED]
 Sent: Saturday, January 17, 2004 12:05 AM
 To: Matt Raible; 'Struts Users Mailing List'
 Subject: RE: Struts-Menu (Support URL Re-writing)



 Hi
 I am having previous implementation of struts-menu as below

 Menu  name=CsrAccountInformation  title=
 location=accountinfoview.do 
 Item   name=act  title=Con
 location=personaldtd.do?expMenu=AcctInfo/
 Item   name=cas  title=Clo Acct
 location=clsRouter.do?expMenu=AcctInfo/
 /Menu

 I have changed it as below, is it the correct way of using
 action and forward attributes in struts-menu.

 Menu  name=CsrAccountInformation  title=
 location=accountinfoview.do 
 Item   name=act  title=Con
 action=personaldtd.do?expMenu=AcctInfo/
 Item   name=cas  title=Clo Acct
 forward=clsRouter.do?expMenu=AcctInfo/
 /Menu



 -Original Message-
 From: Matt Raible [mailto:[EMAIL PROTECTED]
 Sent: Friday, January 16, 2004 8:44 PM
 To: 'Struts Users Mailing List'; 'Parag Pattewar'
 Subject: RE: Struts-Menu (Support URL Re-writing)


 Struts Menu makes use of Struts classes to support forward
 and action attributes.  If you use those, you'll likely get
 the re-writing you're looking for.  I did this on a previous
 project and did find that the forward attribute worked, but
 not the action attribute.  I believe this is a bug in
 Struts since it should do rewriting when looking up an Action's path.

 The one issue with re-writing is that if you're using a menu
 that matches URLs (i.e. tabbed-menu) - they probably won't
 get matched up. At a previous project, we were using URLs to
 highlight the current page we were on and we found that we
 had to use the action attribute or the page attribute so
 that the jsessionid wasn't appended.  Of course, we could've
 stripped this off in our Velocity template, but we wen't with
 the quick, less-logic, way.

 To see this project, go to http://telluride.resortquest.com
 and drill down a bit.  The menu with highlight is on the
 right.  BTW, this site uses the Velocity displayer for both
 the top menu and the side menu.

 If you're not familiar with struts-menu, checkout the demo at
 http://raibledesigns.com/struts-menu.

 Matt

  -Original Message-
  From: Edgar P Dollin [mailto:[EMAIL PROTECTED]
  Sent: Friday, January 16, 2004 7:54 AM
  To: 'Parag Pattewar'; [EMAIL PROTECTED]
  Subject: RE: Struts-Menu (Support URL Re-writing)
 
 
  You have the source to struts and the source to
 struts-menu, grab the
  code from struts and plug it into struts-menu and submit a
 patch.  You
  might need a menu-config.xml option to indicate that you
 will be url
  rewriting.
 
  Edgar
 
  -Original Message-
  From: Parag Pattewar [mailto:[EMAIL PROTECTED]
  Sent: Friday, January 16, 2004 7:21 AM
  To: [EMAIL PROTECTED]
  Subject: Struts-Menu (Support URL Re-writing)
 
 
  Hi all
 
  How do I change Struts-Menu implemention, so it can support URL
  ReWriting for session tracking?
 
  Thanks and Regards
  Parag Pattewar
  Persistent Systems Private Limited
  Bhageerath
  402, Senapati Bapat Road
  Pune 411016
  India
 
  Tel: +91 (20) 2567 8900 extn. 2640
  Fax: +91 (20) 2567 8901
 
 
 
 -
  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

RE: Struts-Menu (Support URL Re-writing)

2004-01-18 Thread Parag Pattewar
Hi

I tried to change the location attribute to forward or Action, its not
supporting because the struts version we are using is 1.1 and as you have
mentioned to use struts 2.0 and above.

How do I make change, so struts 1.1 should support URL Rewriting.

Regards
Parag

-Original Message-
From: Matt Raible [mailto:[EMAIL PROTECTED]
Sent: Saturday, January 17, 2004 9:20 PM
To: 'Struts Users Mailing List'
Subject: RE: Struts-Menu (Support URL Re-writing)


Change the location attribute to a action attribute, where the value
of action matches the path of your action mapping.  For example:

Menu  name=CsrAccountInformation  title= action=/accountinfoview

If you are using 2.0, this should work.  If it doesn't, let me know what
displayer you're using and I'll fix it.

Matt

 -Original Message-
 From: Parag Pattewar [mailto:[EMAIL PROTECTED]
 Sent: Saturday, January 17, 2004 12:05 AM
 To: Matt Raible; 'Struts Users Mailing List'
 Subject: RE: Struts-Menu (Support URL Re-writing)



 Hi
 I am having previous implementation of struts-menu as below

 Menu  name=CsrAccountInformation  title=
 location=accountinfoview.do 
 Item   name=act  title=Con
 location=personaldtd.do?expMenu=AcctInfo/
 Item   name=cas  title=Clo Acct
 location=clsRouter.do?expMenu=AcctInfo/
 /Menu

 I have changed it as below, is it the correct way of using
 action and forward attributes in struts-menu.

 Menu  name=CsrAccountInformation  title=
 location=accountinfoview.do 
 Item   name=act  title=Con
 action=personaldtd.do?expMenu=AcctInfo/
 Item   name=cas  title=Clo Acct
 forward=clsRouter.do?expMenu=AcctInfo/
 /Menu



 -Original Message-
 From: Matt Raible [mailto:[EMAIL PROTECTED]
 Sent: Friday, January 16, 2004 8:44 PM
 To: 'Struts Users Mailing List'; 'Parag Pattewar'
 Subject: RE: Struts-Menu (Support URL Re-writing)


 Struts Menu makes use of Struts classes to support forward
 and action attributes.  If you use those, you'll likely get
 the re-writing you're looking for.  I did this on a previous
 project and did find that the forward attribute worked, but
 not the action attribute.  I believe this is a bug in
 Struts since it should do rewriting when looking up an Action's path.

 The one issue with re-writing is that if you're using a menu
 that matches URLs (i.e. tabbed-menu) - they probably won't
 get matched up. At a previous project, we were using URLs to
 highlight the current page we were on and we found that we
 had to use the action attribute or the page attribute so
 that the jsessionid wasn't appended.  Of course, we could've
 stripped this off in our Velocity template, but we wen't with
 the quick, less-logic, way.

 To see this project, go to http://telluride.resortquest.com
 and drill down a bit.  The menu with highlight is on the
 right.  BTW, this site uses the Velocity displayer for both
 the top menu and the side menu.

 If you're not familiar with struts-menu, checkout the demo at
 http://raibledesigns.com/struts-menu.

 Matt

  -Original Message-
  From: Edgar P Dollin [mailto:[EMAIL PROTECTED]
  Sent: Friday, January 16, 2004 7:54 AM
  To: 'Parag Pattewar'; [EMAIL PROTECTED]
  Subject: RE: Struts-Menu (Support URL Re-writing)
 
 
  You have the source to struts and the source to
 struts-menu, grab the
  code from struts and plug it into struts-menu and submit a
 patch.  You
  might need a menu-config.xml option to indicate that you
 will be url
  rewriting.
 
  Edgar
 
  -Original Message-
  From: Parag Pattewar [mailto:[EMAIL PROTECTED]
  Sent: Friday, January 16, 2004 7:21 AM
  To: [EMAIL PROTECTED]
  Subject: Struts-Menu (Support URL Re-writing)
 
 
  Hi all
 
  How do I change Struts-Menu implemention, so it can support URL
  ReWriting for session tracking?
 
  Thanks and Regards
  Parag Pattewar
  Persistent Systems Private Limited
  Bhageerath
  402, Senapati Bapat Road
  Pune 411016
  India
 
  Tel: +91 (20) 2567 8900 extn. 2640
  Fax: +91 (20) 2567 8901
 
 
 
 -
  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]



-
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]



RE: Struts-Menu (Support URL Re-writing)

2004-01-17 Thread Parag Pattewar

Hi
I am having previous implementation of struts-menu as below

Menu  name=CsrAccountInformation  title=
location=accountinfoview.do 
Item   name=act  title=Con
location=personaldtd.do?expMenu=AcctInfo/
Item   name=cas  title=Clo Acct
location=clsRouter.do?expMenu=AcctInfo/
/Menu

I have changed it as below, is it the correct way of using action and
forward attributes in struts-menu.

Menu  name=CsrAccountInformation  title=
location=accountinfoview.do 
Item   name=act  title=Con
action=personaldtd.do?expMenu=AcctInfo/
Item   name=cas  title=Clo Acct
forward=clsRouter.do?expMenu=AcctInfo/
/Menu



-Original Message-
From: Matt Raible [mailto:[EMAIL PROTECTED]
Sent: Friday, January 16, 2004 8:44 PM
To: 'Struts Users Mailing List'; 'Parag Pattewar'
Subject: RE: Struts-Menu (Support URL Re-writing)


Struts Menu makes use of Struts classes to support forward and
action attributes.  If you use those, you'll likely get the re-writing
you're looking for.  I did this on a previous project and did find that
the forward attribute worked, but not the action attribute.  I
believe this is a bug in Struts since it should do rewriting when
looking up an Action's path.

The one issue with re-writing is that if you're using a menu that
matches URLs (i.e. tabbed-menu) - they probably won't get matched up.
At a previous project, we were using URLs to highlight the current page
we were on and we found that we had to use the action attribute or the
page attribute so that the jsessionid wasn't appended.  Of course, we
could've stripped this off in our Velocity template, but we wen't with
the quick, less-logic, way.

To see this project, go to http://telluride.resortquest.com and drill
down a bit.  The menu with highlight is on the right.  BTW, this site
uses the Velocity displayer for both the top menu and the side menu.

If you're not familiar with struts-menu, checkout the demo at
http://raibledesigns.com/struts-menu.

Matt

 -Original Message-
 From: Edgar P Dollin [mailto:[EMAIL PROTECTED]
 Sent: Friday, January 16, 2004 7:54 AM
 To: 'Parag Pattewar'; [EMAIL PROTECTED]
 Subject: RE: Struts-Menu (Support URL Re-writing)


 You have the source to struts and the source to struts-menu,
 grab the code from struts and plug it into struts-menu and
 submit a patch.  You might need a menu-config.xml option to
 indicate that you will be url rewriting.

 Edgar

 -Original Message-
 From: Parag Pattewar [mailto:[EMAIL PROTECTED]
 Sent: Friday, January 16, 2004 7:21 AM
 To: [EMAIL PROTECTED]
 Subject: Struts-Menu (Support URL Re-writing)


 Hi all

 How do I change Struts-Menu implemention, so it can support
 URL ReWriting for session tracking?

 Thanks and Regards
 Parag Pattewar
 Persistent Systems Private Limited
 Bhageerath
 402, Senapati Bapat Road
 Pune 411016
 India

 Tel: +91 (20) 2567 8900 extn. 2640
 Fax: +91 (20) 2567 8901


 -
 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]



RE: Struts-Menu (Support URL Re-writing)

2004-01-17 Thread Matt Raible
Change the location attribute to a action attribute, where the value
of action matches the path of your action mapping.  For example:

Menu  name=CsrAccountInformation  title= action=/accountinfoview

If you are using 2.0, this should work.  If it doesn't, let me know what
displayer you're using and I'll fix it.

Matt

 -Original Message-
 From: Parag Pattewar [mailto:[EMAIL PROTECTED] 
 Sent: Saturday, January 17, 2004 12:05 AM
 To: Matt Raible; 'Struts Users Mailing List'
 Subject: RE: Struts-Menu (Support URL Re-writing)
 
 
 
 Hi
 I am having previous implementation of struts-menu as below
 
 Menu  name=CsrAccountInformation  title= 
 location=accountinfoview.do 
 Item   name=act  title=Con
 location=personaldtd.do?expMenu=AcctInfo/
 Item   name=cas  title=Clo Acct
 location=clsRouter.do?expMenu=AcctInfo/
 /Menu
 
 I have changed it as below, is it the correct way of using 
 action and forward attributes in struts-menu.
 
 Menu  name=CsrAccountInformation  title= 
 location=accountinfoview.do 
 Item   name=act  title=Con
 action=personaldtd.do?expMenu=AcctInfo/
 Item   name=cas  title=Clo Acct
 forward=clsRouter.do?expMenu=AcctInfo/
 /Menu
 
 
 
 -Original Message-
 From: Matt Raible [mailto:[EMAIL PROTECTED]
 Sent: Friday, January 16, 2004 8:44 PM
 To: 'Struts Users Mailing List'; 'Parag Pattewar'
 Subject: RE: Struts-Menu (Support URL Re-writing)
 
 
 Struts Menu makes use of Struts classes to support forward 
 and action attributes.  If you use those, you'll likely get 
 the re-writing you're looking for.  I did this on a previous 
 project and did find that the forward attribute worked, but 
 not the action attribute.  I believe this is a bug in 
 Struts since it should do rewriting when looking up an Action's path.
 
 The one issue with re-writing is that if you're using a menu 
 that matches URLs (i.e. tabbed-menu) - they probably won't 
 get matched up. At a previous project, we were using URLs to 
 highlight the current page we were on and we found that we 
 had to use the action attribute or the page attribute so 
 that the jsessionid wasn't appended.  Of course, we could've 
 stripped this off in our Velocity template, but we wen't with 
 the quick, less-logic, way.
 
 To see this project, go to http://telluride.resortquest.com 
 and drill down a bit.  The menu with highlight is on the 
 right.  BTW, this site uses the Velocity displayer for both 
 the top menu and the side menu.
 
 If you're not familiar with struts-menu, checkout the demo at 
 http://raibledesigns.com/struts-menu.
 
 Matt
 
  -Original Message-
  From: Edgar P Dollin [mailto:[EMAIL PROTECTED]
  Sent: Friday, January 16, 2004 7:54 AM
  To: 'Parag Pattewar'; [EMAIL PROTECTED]
  Subject: RE: Struts-Menu (Support URL Re-writing)
 
 
  You have the source to struts and the source to 
 struts-menu, grab the 
  code from struts and plug it into struts-menu and submit a 
 patch.  You 
  might need a menu-config.xml option to indicate that you 
 will be url 
  rewriting.
 
  Edgar
 
  -Original Message-
  From: Parag Pattewar [mailto:[EMAIL PROTECTED]
  Sent: Friday, January 16, 2004 7:21 AM
  To: [EMAIL PROTECTED]
  Subject: Struts-Menu (Support URL Re-writing)
 
 
  Hi all
 
  How do I change Struts-Menu implemention, so it can support URL 
  ReWriting for session tracking?
 
  Thanks and Regards
  Parag Pattewar
  Persistent Systems Private Limited
  Bhageerath
  402, Senapati Bapat Road
  Pune 411016
  India
 
  Tel: +91 (20) 2567 8900 extn. 2640
  Fax: +91 (20) 2567 8901
 
 
  
 -
  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]
 


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



Re: Struts-Menu (Support URL Re-writing)

2004-01-16 Thread Matt Raible
If you use forwards or actions for attributes, it should do this for 
you.

On Jan 16, 2004, at 5:20 AM, Parag Pattewar wrote:

Hi all

How do I change Struts-Menu implemention, so it can support URL 
ReWriting
for session tracking?

Thanks and Regards
Parag Pattewar
Persistent Systems Private Limited
Bhageerath
402, Senapati Bapat Road
Pune 411016
India
Tel: +91 (20) 2567 8900 extn. 2640
Fax: +91 (20) 2567 8901
-
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]


RE: Struts-Menu (Support URL Re-writing)

2004-01-16 Thread Edgar P Dollin
You have the source to struts and the source to struts-menu, grab the code
from struts and plug it into struts-menu and submit a patch.  You might need
a menu-config.xml option to indicate that you will be url rewriting.

Edgar

-Original Message-
From: Parag Pattewar [mailto:[EMAIL PROTECTED]
Sent: Friday, January 16, 2004 7:21 AM
To: [EMAIL PROTECTED]
Subject: Struts-Menu (Support URL Re-writing)


Hi all

How do I change Struts-Menu implemention, so it can support URL ReWriting
for session tracking?

Thanks and Regards
Parag Pattewar
Persistent Systems Private Limited
Bhageerath
402, Senapati Bapat Road
Pune 411016
India

Tel: +91 (20) 2567 8900 extn. 2640
Fax: +91 (20) 2567 8901


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



RE: Struts-Menu (Support URL Re-writing)

2004-01-16 Thread Matt Raible
Struts Menu makes use of Struts classes to support forward and
action attributes.  If you use those, you'll likely get the re-writing
you're looking for.  I did this on a previous project and did find that
the forward attribute worked, but not the action attribute.  I
believe this is a bug in Struts since it should do rewriting when
looking up an Action's path.

The one issue with re-writing is that if you're using a menu that
matches URLs (i.e. tabbed-menu) - they probably won't get matched up.
At a previous project, we were using URLs to highlight the current page
we were on and we found that we had to use the action attribute or the
page attribute so that the jsessionid wasn't appended.  Of course, we
could've stripped this off in our Velocity template, but we wen't with
the quick, less-logic, way.

To see this project, go to http://telluride.resortquest.com and drill
down a bit.  The menu with highlight is on the right.  BTW, this site
uses the Velocity displayer for both the top menu and the side menu.

If you're not familiar with struts-menu, checkout the demo at
http://raibledesigns.com/struts-menu.

Matt

 -Original Message-
 From: Edgar P Dollin [mailto:[EMAIL PROTECTED] 
 Sent: Friday, January 16, 2004 7:54 AM
 To: 'Parag Pattewar'; [EMAIL PROTECTED]
 Subject: RE: Struts-Menu (Support URL Re-writing)
 
 
 You have the source to struts and the source to struts-menu, 
 grab the code from struts and plug it into struts-menu and 
 submit a patch.  You might need a menu-config.xml option to 
 indicate that you will be url rewriting.
 
 Edgar
 
 -Original Message-
 From: Parag Pattewar [mailto:[EMAIL PROTECTED]
 Sent: Friday, January 16, 2004 7:21 AM
 To: [EMAIL PROTECTED]
 Subject: Struts-Menu (Support URL Re-writing)
 
 
 Hi all
 
 How do I change Struts-Menu implemention, so it can support 
 URL ReWriting for session tracking?
 
 Thanks and Regards
 Parag Pattewar
 Persistent Systems Private Limited
 Bhageerath
 402, Senapati Bapat Road
 Pune 411016
 India
 
 Tel: +91 (20) 2567 8900 extn. 2640
 Fax: +91 (20) 2567 8901
 
 
 -
 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]



RE: Struts-Menu (Support URL Re-writing)

2004-01-16 Thread Edgar P Dollin
Unless I am mistaken the relative url in struts-menu is just the text passed
in from menu-config.xml.  

In the CoolMenuDisplayer it calls, buildMenuString -- getArgs -- getUrl
which unless there is prior transformation the string from the config.

Let me know if I am seeing it wrong or if this is different from displayer
to displayer.

Thanks.

Edgar

-Original Message-
From: Matt Raible [mailto:[EMAIL PROTECTED]
Sent: Friday, January 16, 2004 10:14 AM
To: 'Struts Users Mailing List'; 'Parag Pattewar'
Subject: RE: Struts-Menu (Support URL Re-writing)


Struts Menu makes use of Struts classes to support forward and
action attributes.  If you use those, you'll likely get the re-writing
you're looking for.  I did this on a previous project and did find that
the forward attribute worked, but not the action attribute.  I
believe this is a bug in Struts since it should do rewriting when
looking up an Action's path.

The one issue with re-writing is that if you're using a menu that
matches URLs (i.e. tabbed-menu) - they probably won't get matched up.
At a previous project, we were using URLs to highlight the current page
we were on and we found that we had to use the action attribute or the
page attribute so that the jsessionid wasn't appended.  Of course, we
could've stripped this off in our Velocity template, but we wen't with
the quick, less-logic, way.

To see this project, go to http://telluride.resortquest.com and drill
down a bit.  The menu with highlight is on the right.  BTW, this site
uses the Velocity displayer for both the top menu and the side menu.

If you're not familiar with struts-menu, checkout the demo at
http://raibledesigns.com/struts-menu.

Matt

 -Original Message-
 From: Edgar P Dollin [mailto:[EMAIL PROTECTED] 
 Sent: Friday, January 16, 2004 7:54 AM
 To: 'Parag Pattewar'; [EMAIL PROTECTED]
 Subject: RE: Struts-Menu (Support URL Re-writing)
 
 
 You have the source to struts and the source to struts-menu, 
 grab the code from struts and plug it into struts-menu and 
 submit a patch.  You might need a menu-config.xml option to 
 indicate that you will be url rewriting.
 
 Edgar
 
 -Original Message-
 From: Parag Pattewar [mailto:[EMAIL PROTECTED]
 Sent: Friday, January 16, 2004 7:21 AM
 To: [EMAIL PROTECTED]
 Subject: Struts-Menu (Support URL Re-writing)
 
 
 Hi all
 
 How do I change Struts-Menu implemention, so it can support 
 URL ReWriting for session tracking?
 
 Thanks and Regards
 Parag Pattewar
 Persistent Systems Private Limited
 Bhageerath
 402, Senapati Bapat Road
 Pune 411016
 India
 
 Tel: +91 (20) 2567 8900 extn. 2640
 Fax: +91 (20) 2567 8901
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.558 / Virus Database: 350 - Release Date: 1/2/2004
 

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.558 / Virus Database: 350 - Release Date: 1/2/2004
 

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



Re: Struts-Menu (Support URL Re-writing)

2004-01-16 Thread Matt Raible
In 2.0, you can use a forward or action attribute - and struts-menu 
will look this up in struts-config.xml.  That's all I'm trying to say - 
both of these should have URL re-writing built in.

Matt

On Jan 16, 2004, at 6:11 PM, Edgar P Dollin wrote:

Unless I am mistaken the relative url in struts-menu is just the text 
passed
in from menu-config.xml.

In the CoolMenuDisplayer it calls, buildMenuString -- getArgs -- 
getUrl
which unless there is prior transformation the string from the config.

Let me know if I am seeing it wrong or if this is different from 
displayer
to displayer.

Thanks.

Edgar

-Original Message-
From: Matt Raible [mailto:[EMAIL PROTECTED]
Sent: Friday, January 16, 2004 10:14 AM
To: 'Struts Users Mailing List'; 'Parag Pattewar'
Subject: RE: Struts-Menu (Support URL Re-writing)
Struts Menu makes use of Struts classes to support forward and
action attributes.  If you use those, you'll likely get the 
re-writing
you're looking for.  I did this on a previous project and did find that
the forward attribute worked, but not the action attribute.  I
believe this is a bug in Struts since it should do rewriting when
looking up an Action's path.

The one issue with re-writing is that if you're using a menu that
matches URLs (i.e. tabbed-menu) - they probably won't get matched up.
At a previous project, we were using URLs to highlight the current page
we were on and we found that we had to use the action attribute or 
the
page attribute so that the jsessionid wasn't appended.  Of course, we
could've stripped this off in our Velocity template, but we wen't with
the quick, less-logic, way.

To see this project, go to http://telluride.resortquest.com and drill
down a bit.  The menu with highlight is on the right.  BTW, this site
uses the Velocity displayer for both the top menu and the side menu.
If you're not familiar with struts-menu, checkout the demo at
http://raibledesigns.com/struts-menu.
Matt

-Original Message-
From: Edgar P Dollin [mailto:[EMAIL PROTECTED]
Sent: Friday, January 16, 2004 7:54 AM
To: 'Parag Pattewar'; [EMAIL PROTECTED]
Subject: RE: Struts-Menu (Support URL Re-writing)
You have the source to struts and the source to struts-menu,
grab the code from struts and plug it into struts-menu and
submit a patch.  You might need a menu-config.xml option to
indicate that you will be url rewriting.
Edgar

-Original Message-
From: Parag Pattewar [mailto:[EMAIL PROTECTED]
Sent: Friday, January 16, 2004 7:21 AM
To: [EMAIL PROTECTED]
Subject: Struts-Menu (Support URL Re-writing)
Hi all

How do I change Struts-Menu implemention, so it can support
URL ReWriting for session tracking?
Thanks and Regards
Parag Pattewar
Persistent Systems Private Limited
Bhageerath
402, Senapati Bapat Road
Pune 411016
India
Tel: +91 (20) 2567 8900 extn. 2640
Fax: +91 (20) 2567 8901
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.558 / Virus Database: 350 - Release Date: 1/2/2004
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.558 / Virus Database: 350 - Release Date: 1/2/2004
-
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]


RE: Struts-Menu (Support URL Re-writing)

2004-01-16 Thread Parag Pattewar
Hi

Can you tell me , How do I implement Forward or Action attribute in
struts-config.xml during the implementation of struts-menu.

I am putting the entry of struts-menu in struts-config.xml as below.
 plug-in className=com.fgm.web.menu.MenuPlugIn
set-property property=menuConfig value=/WEB-INF/menu-config.xml
/
/plug-in

How do I put the above implementation in action and Forward attributes.?



-Original Message-
From: Matt Raible [mailto:[EMAIL PROTECTED]
Sent: Saturday, January 17, 2004 8:23 AM
To: Struts Users Mailing List
Subject: Re: Struts-Menu (Support URL Re-writing)


In 2.0, you can use a forward or action attribute - and struts-menu
will look this up in struts-config.xml.  That's all I'm trying to say -
both of these should have URL re-writing built in.

Matt

On Jan 16, 2004, at 6:11 PM, Edgar P Dollin wrote:

 Unless I am mistaken the relative url in struts-menu is just the text
 passed
 in from menu-config.xml.

 In the CoolMenuDisplayer it calls, buildMenuString -- getArgs --
 getUrl
 which unless there is prior transformation the string from the config.

 Let me know if I am seeing it wrong or if this is different from
 displayer
 to displayer.

 Thanks.

 Edgar

 -Original Message-
 From: Matt Raible [mailto:[EMAIL PROTECTED]
 Sent: Friday, January 16, 2004 10:14 AM
 To: 'Struts Users Mailing List'; 'Parag Pattewar'
 Subject: RE: Struts-Menu (Support URL Re-writing)


 Struts Menu makes use of Struts classes to support forward and
 action attributes.  If you use those, you'll likely get the
 re-writing
 you're looking for.  I did this on a previous project and did find that
 the forward attribute worked, but not the action attribute.  I
 believe this is a bug in Struts since it should do rewriting when
 looking up an Action's path.

 The one issue with re-writing is that if you're using a menu that
 matches URLs (i.e. tabbed-menu) - they probably won't get matched up.
 At a previous project, we were using URLs to highlight the current page
 we were on and we found that we had to use the action attribute or
 the
 page attribute so that the jsessionid wasn't appended.  Of course, we
 could've stripped this off in our Velocity template, but we wen't with
 the quick, less-logic, way.

 To see this project, go to http://telluride.resortquest.com and drill
 down a bit.  The menu with highlight is on the right.  BTW, this site
 uses the Velocity displayer for both the top menu and the side menu.

 If you're not familiar with struts-menu, checkout the demo at
 http://raibledesigns.com/struts-menu.

 Matt

 -Original Message-
 From: Edgar P Dollin [mailto:[EMAIL PROTECTED]
 Sent: Friday, January 16, 2004 7:54 AM
 To: 'Parag Pattewar'; [EMAIL PROTECTED]
 Subject: RE: Struts-Menu (Support URL Re-writing)


 You have the source to struts and the source to struts-menu,
 grab the code from struts and plug it into struts-menu and
 submit a patch.  You might need a menu-config.xml option to
 indicate that you will be url rewriting.

 Edgar

 -Original Message-
 From: Parag Pattewar [mailto:[EMAIL PROTECTED]
 Sent: Friday, January 16, 2004 7:21 AM
 To: [EMAIL PROTECTED]
 Subject: Struts-Menu (Support URL Re-writing)


 Hi all

 How do I change Struts-Menu implemention, so it can support
 URL ReWriting for session tracking?

 Thanks and Regards
 Parag Pattewar
 Persistent Systems Private Limited
 Bhageerath
 402, Senapati Bapat Road
 Pune 411016
 India

 Tel: +91 (20) 2567 8900 extn. 2640
 Fax: +91 (20) 2567 8901


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



 ---
 Incoming mail is certified Virus Free.
 Checked by AVG anti-virus system (http://www.grisoft.com).
 Version: 6.0.558 / Virus Database: 350 - Release Date: 1/2/2004


 ---
 Outgoing mail is certified Virus Free.
 Checked by AVG anti-virus system (http://www.grisoft.com).
 Version: 6.0.558 / Virus Database: 350 - Release Date: 1/2/2004


 -
 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]


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



Re: Struts menu

2003-12-02 Thread Francesco Di Candia
I'll try it.
thank u all.
Francesco
  - Original Message - 
  From: Witt, Mike (OH35) 
  To: Struts Users Mailing List 
  Sent: Monday, December 01, 2003 9:24 PM
  Subject: RE: Struts  menu


  I also use struts menu ... very easy to get started with.  Once installed
  and configured, you can use a tag like: menu:displayMenu name=MenuOrder
  / to add an upper level menu.

  -Original Message-
  From: Francesco Di Candia [mailto:[EMAIL PROTECTED]
  Sent: Monday, December 01, 2003 1:52 PM
  To: Struts Users Mailing List
  Subject: Struts  menu


  Hi all, i'm a Struts newbie and i'm trying to move my web-application
  from JSP/Servlets to Struts/Tiles. Someone of you can suggest my the
  best way to implement menu tile using Struts  Tiles togheter? I need
  real experience mixing Struts  Tiles because I found something googling
  but real experience are better.
  Thanks in advance, Francesco

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


Re: Struts menu

2003-12-01 Thread Vic Cekvenich
Just today a new version of Struts Menu was released, that is what I use.

.V

Francesco Di Candia wrote:
Hi all, i'm a Struts newbie and i'm trying to move my web-application from JSP/Servlets to 
Struts/Tiles. Someone of you can suggest my the best way to implement menu tile using Struts 
 Tiles togheter? I need real experience mixing Struts  Tiles because I found 
something googling but real experience are better.
Thanks in advance, Francesco


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


RE: Struts menu

2003-12-01 Thread Witt, Mike (OH35)
I also use struts menu ... very easy to get started with.  Once installed
and configured, you can use a tag like: menu:displayMenu name=MenuOrder
/ to add an upper level menu.

-Original Message-
From: Francesco Di Candia [mailto:[EMAIL PROTECTED]
Sent: Monday, December 01, 2003 1:52 PM
To: Struts Users Mailing List
Subject: Struts  menu


Hi all, i'm a Struts newbie and i'm trying to move my web-application
from JSP/Servlets to Struts/Tiles. Someone of you can suggest my the
best way to implement menu tile using Struts  Tiles togheter? I need
real experience mixing Struts  Tiles because I found something googling
but real experience are better.
Thanks in advance, Francesco

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



RE: struts-menu and internationalization

2003-11-06 Thread Paul McCulloch
I use struts menu, with the CoolMenu displayer, and everything works fine.
Your config looks ok. 

What exactly isn't working?

There is a struts-menu specific mailing list, which would be a more
approriate place to ask for help.

Paul

-Original Message-
From: koen boutsen [mailto:[EMAIL PROTECTED]
Sent: 06 November 2003 10:44
To: [EMAIL PROTECTED]
Subject: struts-menu and internationalization


Has anyone used internationalization in the struts-menu ?

If so, could you explain me how I can do it.

I tried the following : 

menu-config.xml:
Menu name=organisation title=label.logout
Item name=organisationOverview title=label.overview
forward=/organisation/searchFirstLetter /
/Menu

and in listMenu.jsp:
menu:useMenuDisplayer name=listMenu
bundle=org.apache.struts.action.MESSAGE
menu:displayMenu name=organisation/
menu:displayMenu name=salesrep/
menu:displayMenu name=logout/   
/menu:useMenuDisplayer

but this did not work.

any help is very appreciated

Koen Boutsen



FREE ADHD DVD or CD-Rom (your choice) - click here!
http://ad.doubleclick.net/clk;6413623;3807821;f?http://mocda2.com/1/c/563632
/131726/311392/311392
AOL users go here:
http://ad.doubleclick.net/clk;6413623;3807821;f?http://mocda2.com/1/c/563632
/131726/311392/311392
This offer applies to U.S. Residents Only

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


**
Axios Email Confidentiality Footer
Privileged/Confidential Information may be contained in this message. If you are not 
the addressee indicated in this message (or responsible for delivery of the message to 
such person), you may not copy or deliver this message to anyone. In such case, you 
should destroy this message, and notify us immediately. If you or your employer does 
not consent to Internet email messages of this kind, please advise us immediately. 
Opinions, conclusions and other information expressed in this message are not given or 
endorsed by my Company or employer unless otherwise indicated by an authorised 
representative independent of this message.
WARNING:
While Axios Systems Ltd takes steps to prevent computer viruses from being transmitted 
via electronic mail attachments we cannot guarantee that attachments do not contain 
computer virus code.  You are therefore strongly advised to undertake anti virus 
checks prior to accessing the attachment to this electronic mail.  Axios Systems Ltd 
grants no warranties regarding performance use or quality of any attachment and 
undertakes no liability for loss or damage howsoever caused.


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



RE: struts-menu and internationalization

2003-11-06 Thread koen boutsen
When a user logs in, I give him a default language, e.g. English, and create the 
appropriate Locale.  This user sees the menu in the correct language.  When this user 
switches his language, by clicking an image, I create another Locale, e.g. French. All 
the other labels I use, change into the wright language, but the menulabels stay in 
the original language.

Thanks in advance 
Koen
--

- Original Message -

DATE: Thu, 6 Nov 2003 12:46:13 
From: Paul McCulloch [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Cc: 

I use struts menu, with the CoolMenu displayer, and everything works fine.
Your config looks ok. 

What exactly isn't working?

There is a struts-menu specific mailing list, which would be a more
approriate place to ask for help.

Paul

-Original Message-
From: koen boutsen [mailto:[EMAIL PROTECTED]
Sent: 06 November 2003 10:44
To: [EMAIL PROTECTED]
Subject: struts-menu and internationalization


Has anyone used internationalization in the struts-menu ?

If so, could you explain me how I can do it.

I tried the following : 

menu-config.xml:
Menu name=organisation title=label.logout
   Item name=organisationOverview title=label.overview
forward=/organisation/searchFirstLetter /
/Menu

and in listMenu.jsp:
menu:useMenuDisplayer name=listMenu
bundle=org.apache.struts.action.MESSAGE
menu:displayMenu name=organisation/
menu:displayMenu name=salesrep/
menu:displayMenu name=logout/   
/menu:useMenuDisplayer

but this did not work.

any help is very appreciated

Koen Boutsen



FREE ADHD DVD or CD-Rom (your choice) - click here!
http://ad.doubleclick.net/clk;6413623;3807821;f?http://mocda2.com/1/c/563632
/131726/311392/311392
AOL users go here:
http://ad.doubleclick.net/clk;6413623;3807821;f?http://mocda2.com/1/c/563632
/131726/311392/311392
This offer applies to U.S. Residents Only

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


**
Axios Email Confidentiality Footer
Privileged/Confidential Information may be contained in this message. If you are not 
the addressee indicated in this message (or responsible for delivery of the message 
to such person), you may not copy or deliver this message to anyone. In such case, 
you should destroy this message, and notify us immediately. If you or your employer 
does not consent to Internet email messages of this kind, please advise us 
immediately. Opinions, conclusions and other information expressed in this message 
are not given or endorsed by my Company or employer unless otherwise indicated by an 
authorised representative independent of this message.
WARNING:
While Axios Systems Ltd takes steps to prevent computer viruses from being 
transmitted via electronic mail attachments we cannot guarantee that attachments do 
not contain computer virus code.  You are therefore strongly advised to undertake 
anti virus checks prior to accessing the attachment to this electronic mail.  Axios 
Systems Ltd grants no warranties regarding performance use or quality of any 
attachment and undertakes no liability for loss or damage howsoever caused.


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






FREE ADHD DVD or CD-Rom (your choice) - click here!
http://ad.doubleclick.net/clk;6413623;3807821;f?http://mocda2.com/1/c/563632/131726/311392/311392
AOL users go here: 
http://ad.doubleclick.net/clk;6413623;3807821;f?http://mocda2.com/1/c/563632/131726/311392/311392
This offer applies to U.S. Residents Only

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



RE: struts-menu and internationalization

2003-11-06 Thread Paul McCulloch
A quick look at the source code suggests that the locale used is either the
loacle of the request (set by your browser) or some locale object in some
scope. You need to tell the menu:useMenuDisplayer tag how to access your
locale object.

If for instance you put the user's locale in session scope with a key
user.locale then you should use the tag like:


menu:useMenuDisplayer name=listMenu
bundle=org.apache.struts.action.MESSAGE
locale=user.locale


Disclaimer: I don't use this functionality - I've just had a quick look at
the code.

Paul

-Original Message-
From: koen boutsen [mailto:[EMAIL PROTECTED]
Sent: 06 November 2003 13:35
To: Struts Users Mailing List
Subject: RE: struts-menu and internationalization


When a user logs in, I give him a default language, e.g. English, and create
the appropriate Locale.  This user sees the menu in the correct language.
When this user switches his language, by clicking an image, I create another
Locale, e.g. French. All the other labels I use, change into the wright
language, but the menulabels stay in the original language.

Thanks in advance 
Koen
--

- Original Message -

DATE: Thu, 6 Nov 2003 12:46:13 
From: Paul McCulloch [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Cc: 

I use struts menu, with the CoolMenu displayer, and everything works fine.
Your config looks ok. 

What exactly isn't working?

There is a struts-menu specific mailing list, which would be a more
approriate place to ask for help.

Paul

-Original Message-
From: koen boutsen [mailto:[EMAIL PROTECTED]
Sent: 06 November 2003 10:44
To: [EMAIL PROTECTED]
Subject: struts-menu and internationalization


Has anyone used internationalization in the struts-menu ?

If so, could you explain me how I can do it.

I tried the following : 

menu-config.xml:
Menu name=organisation title=label.logout
   Item name=organisationOverview title=label.overview
forward=/organisation/searchFirstLetter /
/Menu

and in listMenu.jsp:
menu:useMenuDisplayer name=listMenu
bundle=org.apache.struts.action.MESSAGE
menu:displayMenu name=organisation/
menu:displayMenu name=salesrep/
menu:displayMenu name=logout/   
/menu:useMenuDisplayer

but this did not work.

any help is very appreciated

Koen Boutsen



FREE ADHD DVD or CD-Rom (your choice) - click here!
http://ad.doubleclick.net/clk;6413623;3807821;f?http://mocda2.com/1/c/56363
2
/131726/311392/311392
AOL users go here:
http://ad.doubleclick.net/clk;6413623;3807821;f?http://mocda2.com/1/c/56363
2
/131726/311392/311392
This offer applies to U.S. Residents Only

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


**
Axios Email Confidentiality Footer
Privileged/Confidential Information may be contained in this message. If
you are not the addressee indicated in this message (or responsible for
delivery of the message to such person), you may not copy or deliver this
message to anyone. In such case, you should destroy this message, and notify
us immediately. If you or your employer does not consent to Internet email
messages of this kind, please advise us immediately. Opinions, conclusions
and other information expressed in this message are not given or endorsed by
my Company or employer unless otherwise indicated by an authorised
representative independent of this message.
WARNING:
While Axios Systems Ltd takes steps to prevent computer viruses from being
transmitted via electronic mail attachments we cannot guarantee that
attachments do not contain computer virus code.  You are therefore strongly
advised to undertake anti virus checks prior to accessing the attachment to
this electronic mail.  Axios Systems Ltd grants no warranties regarding
performance use or quality of any attachment and undertakes no liability for
loss or damage howsoever caused.


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






FREE ADHD DVD or CD-Rom (your choice) - click here!
http://ad.doubleclick.net/clk;6413623;3807821;f?http://mocda2.com/1/c/563632
/131726/311392/311392
AOL users go here:
http://ad.doubleclick.net/clk;6413623;3807821;f?http://mocda2.com/1/c/563632
/131726/311392/311392
This offer applies to U.S. Residents Only

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


**
Axios Email Confidentiality Footer
Privileged/Confidential Information may be contained in this message. If you are not 
the addressee indicated in this message (or responsible for delivery of the message to 
such person

RE: struts-menu

2003-10-23 Thread Edgar P Dollin
Stuts menu can do all of that.  Be prepared to write some customizations
since there are inconsistencies in the capabilities between the menu
displayers.  I have it working fine with tiles and struts with
authentication http://www.abmga.org using a drop down displayer.  

Edgar

 -Original Message-
 From: Adam Hardy [mailto:[EMAIL PROTECTED] 
 Sent: Thursday, October 23, 2003 6:26 AM
 To: Struts Users Mailing List
 Subject: struts-menu
 
 
 
 
 Hi All,
 I am writing the menu part of my app right now and I have 
 basically made 
 us of tiles-def.xml to specify what links I want in each page, which 
 seems a very handy way of doing it.
 
 In my menu Tile I have a couple of links as well that will 
 always appear 
 and vary depending on whether the user is logged in  what 
 role they have.
 
 Then I remembered that there is a struts-menu add-on at sourceforge, 
 which I checked out. I was looking for anything that I might have 
 forgotten that could pop up later and bite me.
 
 Obviously it wasn't exactly possible to find such unknown info, so I 
 thought I'd list my menu requirements here and see if any can tell me 
 that I've forgotten something important.
 
 Basically the site is a small e-commerce outfit selling 
 webservices. My 
 menu is meant to be / do the following:
 
 (1) a run-of-the-mill list of context relative links
 (2) no javascript
 (3) several permanent, static links, e.g. home, about, contact
 (4) several permanent toggling links, e.g. register or login or logout
 (5) several context sensitive links, e.g. to other components 
 of the site
 
 That seems to be it AFAIK.
 
 Any comments would be welcome,
 thanks
 Adam
 
 -- 
 struts 1.1 + tomcat 5.0.12 + java 1.4.2
 Linux 2.4.20 RH9
 
 

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



RE: struts menu

2003-09-26 Thread Matt Raible
It's probably best that you post this to the [EMAIL PROTECTED]
project.



-Original Message-
From: Jan Van Stalle [mailto:[EMAIL PROTECTED]
Sent: Friday, September 26, 2003 7:19 PM
To: [EMAIL PROTECTED]
Subject: struts menu


Hello,

Lately I saw a reference to struts menu on this newsgroup; tried to use it
but it seems complicated to put the bits and pieces together (classes, js
files, ...)

Does anyone have a link to documentation, besides the one which comes with
the war file ??

Thanks,

Jan




-
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]



RE: Struts Menu framework documentation

2003-09-12 Thread Matt Raible
The example application is the best documentation available.  You can also
checkout the demo on my site at http://raibledesigns.com/struts-menu.

HTH,

Matt

-Original Message-
From: Madhu Nair [mailto:[EMAIL PROTECTED]
Sent: Friday, September 12, 2003 2:40 AM
To: Struts Users Mailing List
Subject: Struts Menu framework documentation



Hi,

Can someone point me to some documentation on using the Struts menu
framework?


Regards,
Madhu


-
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]



RE: Struts-menu

2003-06-23 Thread Raible, Matt
The easiest thing to do is to use container-managed authentication - i.e.
Tomcat's JDBCRealm.  Since you'll have to hard-code your roles in web.xml -
why not code them in menu-config.xml as well.

Of course, you could allow all roles by using * in web.xml.  This is the way
I've done it and it might take a bit to setup, but who has permissions to
see what on a menu rarely changes (at least not on my projects).

HTH,

Matt

-Original Message-
From: Mykola Ostapchuk [mailto:[EMAIL PROTECTED]
Sent: Monday, June 23, 2003 10:07 AM
To: Struts Users Mailing List
Subject: Struts-menu


Hello,

I couldn't get any response from Struts-menu mail list, so I'm wandering if
somebody here could help me.
I'm new to struts-menu. I want to create a role-based expandable menu. I
have an existing system with Roles DB table.
How can I specify menu permissions for particular Role and save it to
menu-config.xml?
Does anybody has any examples?


-
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]



Re: Struts-menu

2003-06-23 Thread Mykola Ostapchuk
How can I put menu into session? Which class to modify?
Recreate menu on each page isn't clever - it's always the same.


- Original Message - 
From: Raible, Matt [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Sent: Monday, June 23, 2003 12:11 PM
Subject: RE: Struts-menu


 The easiest thing to do is to use container-managed authentication - i.e.
 Tomcat's JDBCRealm.  Since you'll have to hard-code your roles in
web.xml -
 why not code them in menu-config.xml as well.

 Of course, you could allow all roles by using * in web.xml.  This is the
way
 I've done it and it might take a bit to setup, but who has permissions to
 see what on a menu rarely changes (at least not on my projects).

 HTH,

 Matt

 -Original Message-
 From: Mykola Ostapchuk [mailto:[EMAIL PROTECTED]
 Sent: Monday, June 23, 2003 10:07 AM
 To: Struts Users Mailing List
 Subject: Struts-menu


 Hello,

 I couldn't get any response from Struts-menu mail list, so I'm wandering
if
 somebody here could help me.
 I'm new to struts-menu. I want to create a role-based expandable menu. I
 have an existing system with Roles DB table.
 How can I specify menu permissions for particular Role and save it to
 menu-config.xml?
 Does anybody has any examples?


 -
 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]



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



RE: Struts-menu

2003-06-23 Thread El Harouchi, Jaafar [IT]
The menu repository is stored in the application context.
Look at the plugin (i'm on struts 1.0 so load it through a startup servlet).
What you do on every page is use a tag library to invoke the appropriate
displayer which renders the menu.
What you do store in the session, or wherever is appropriate, is the
PermissionsAdapter.
I don't use the role based permissioning, but load a PermissionsAdapter for
each user, which contains the  ids they have access to from the DB.

Look at the Permissions example at: 
http://www.raibledesigns.com/struts-menu/index.jsp

The example code is available through:
http://sourceforge.net/projects/struts-menu/

hth
-jaafar

-Original Message-
From: Mykola Ostapchuk [mailto:[EMAIL PROTECTED]
Sent: Monday, June 23, 2003 8:19 PM
To: Struts Users Mailing List
Subject: Re: Struts-menu


How can I put menu into session? Which class to modify?
Recreate menu on each page isn't clever - it's always the same.


- Original Message - 
From: Raible, Matt [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Sent: Monday, June 23, 2003 12:11 PM
Subject: RE: Struts-menu


 The easiest thing to do is to use container-managed authentication - i.e.
 Tomcat's JDBCRealm.  Since you'll have to hard-code your roles in
web.xml -
 why not code them in menu-config.xml as well.

 Of course, you could allow all roles by using * in web.xml.  This is the
way
 I've done it and it might take a bit to setup, but who has permissions to
 see what on a menu rarely changes (at least not on my projects).

 HTH,

 Matt

 -Original Message-
 From: Mykola Ostapchuk [mailto:[EMAIL PROTECTED]
 Sent: Monday, June 23, 2003 10:07 AM
 To: Struts Users Mailing List
 Subject: Struts-menu


 Hello,

 I couldn't get any response from Struts-menu mail list, so I'm wandering
if
 somebody here could help me.
 I'm new to struts-menu. I want to create a role-based expandable menu. I
 have an existing system with Roles DB table.
 How can I specify menu permissions for particular Role and save it to
 menu-config.xml?
 Does anybody has any examples?


 -
 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]



-
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]



Re: [struts-menu] how to use URL rewriting ?

2003-06-19 Thread Ben Anderson
Try html:rewrite
http://jakarta.apache.org/struts/userGuide/dev_html.html
From: Nicolas De Loof [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Subject: [struts-menu] how to use URL rewriting ?
Date: Thu, 19 Jun 2003 15:53:56 +0200
Hi all,

our application uses URL rewriting to track session (for some obscure 
reasons...)
We use struts-menu taglib, and it doesn't urlrewrite links in menu items.

From what I've seen in struts-menu sources, it is not possible because 
MenuDisplayer doesn't have any HttpResponse
param. Do you know any struts-menu extension or patch that uses 
response.encodeURL() ?

Nico.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
_
MSN 8 with e-mail virus protection service: 2 months FREE*  
http://join.msn.com/?page=features/virus

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


Re: [struts-menu] how to use URL rewriting ?

2003-06-19 Thread Nicolas De Loof
The problem we have is that URL are set in menu-config.xml, and struts-menu use it to 
set links in DHTML menu.

Thank you for your help.

Nico.


 Try html:rewrite
 http://jakarta.apache.org/struts/userGuide/dev_html.html
 
 From: Nicolas De Loof [EMAIL PROTECTED]
 Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
 To: Struts Users Mailing List [EMAIL PROTECTED]
 Subject: [struts-menu] how to use URL rewriting ?
 Date: Thu, 19 Jun 2003 15:53:56 +0200
 
 Hi all,
 
 our application uses URL rewriting to track session (for some obscure 
 reasons...)
 We use struts-menu taglib, and it doesn't urlrewrite links in menu items.
 
 From what I've seen in struts-menu sources, it is not possible because 
 MenuDisplayer doesn't have any HttpResponse
 param. Do you know any struts-menu extension or patch that uses 
 response.encodeURL() ?
 
 Nico.
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 _
 MSN 8 with e-mail virus protection service: 2 months FREE*  
 http://join.msn.com/?page=features/virus
 
 
 -
 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]



Re: [struts-menu] how to use URL rewriting ?

2003-06-19 Thread Malik Recoing
I wrote a MenuDispalyer that can be configured in a properties file.
It will not solve your problem but it show how you can write your own
MenuDisplayer to add replacement variable you need.
It will require you to retrieve the session id from the pageContext and then
pass it as a parameter for message resource replacement.

If you are interested by my code look at the patch section of the
sourceforge account of Struts-Menu where I posted it as
RecursiveMenuDisplayer. Then look at
RecusrsiveMenuDisplayer.getDisplayString(String key, String content,
MenuComponent menu)
to see how the variable are prepared.

Malik.

Thursday, June 19, 2003 4:10 PM , Nicolas De Loof
[EMAIL PROTECTED] a crit :
 The problem we have is that URL are set in menu-config.xml, and
 struts-menu use it to set links in DHTML menu.

 Thank you for your help.

 Nico.


  Try html:rewrite
  http://jakarta.apache.org/struts/userGuide/dev_html.html
 
   From: Nicolas De Loof [EMAIL PROTECTED]
   Reply-To: Struts Users Mailing List
   [EMAIL PROTECTED] To: Struts Users Mailing List
   [EMAIL PROTECTED] Subject: [struts-menu] how to
   use URL rewriting ? Date: Thu, 19 Jun 2003 15:53:56 +0200
  
   Hi all,
  
   our application uses URL rewriting to track session (for some
   obscure reasons...)
   We use struts-menu taglib, and it doesn't urlrewrite links in
   menu items.
  
   From what I've seen in struts-menu sources, it is not possible
   because MenuDisplayer doesn't have any HttpResponse
   param. Do you know any struts-menu extension or patch that uses
   response.encodeURL() ?
  
   Nico.
  
  
   -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail:
   [EMAIL PROTECTED]
  
 
  _
  MSN 8 with e-mail virus protection service: 2 months FREE*
  http://join.msn.com/?page=features/virus
 
 
  -
  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]


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



Re: [struts-menu] how to use URL rewriting ?

2003-06-19 Thread Nicolas De Loof
Thanks a lot.

Nico.

 I wrote a MenuDispalyer that can be configured in a properties file.
 It will not solve your problem but it show how you can write your own
 MenuDisplayer to add replacement variable you need.
 It will require you to retrieve the session id from the pageContext and then
 pass it as a parameter for message resource replacement.

 If you are interested by my code look at the patch section of the
 sourceforge account of Struts-Menu where I posted it as
 RecursiveMenuDisplayer. Then look at
 RecusrsiveMenuDisplayer.getDisplayString(String key, String content,
 MenuComponent menu)
 to see how the variable are prepared.

 Malik.

 Thursday, June 19, 2003 4:10 PM , Nicolas De Loof
 [EMAIL PROTECTED] a crit :
  The problem we have is that URL are set in menu-config.xml, and
  struts-menu use it to set links in DHTML menu.
 
  Thank you for your help.
 
  Nico.
 
 
   Try html:rewrite
   http://jakarta.apache.org/struts/userGuide/dev_html.html
  
From: Nicolas De Loof [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List
[EMAIL PROTECTED] To: Struts Users Mailing List
[EMAIL PROTECTED] Subject: [struts-menu] how to
use URL rewriting ? Date: Thu, 19 Jun 2003 15:53:56 +0200
   
Hi all,
   
our application uses URL rewriting to track session (for some
obscure reasons...)
We use struts-menu taglib, and it doesn't urlrewrite links in
menu items.
   
From what I've seen in struts-menu sources, it is not possible
because MenuDisplayer doesn't have any HttpResponse
param. Do you know any struts-menu extension or patch that uses
response.encodeURL() ?
   
Nico.
   
   
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail:
[EMAIL PROTECTED]
   
  
   _
   MSN 8 with e-mail virus protection service: 2 months FREE*
   http://join.msn.com/?page=features/virus
  
  
   -
   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]


 -
 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]



RE: Struts Menu question

2003-06-18 Thread Raible, Matt
The latest and greatest version of struts-menu has a roles attribute that
will hide menus if you're not in the list of roles.  

BTW - you'll probably get a quicker response for struts-menu on the
struts-menu mailing list. ;-)

Matt

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 17, 2003 9:21 AM
To: Struts Users Mailing List
Subject: Re: Struts Menu question


Yes, ofcourse
You can do this in your actions or in jsp (using struts logic tags, or use 
JSTL).

Cheers,

Harm de Laat
Informatiefabriek
The Netherlands




Filip Polsakiewicz [EMAIL PROTECTED] 
06/17/2003 10:01 AM
Please respond to
Struts Users Mailing List [EMAIL PROTECTED]


To
Struts Users Mailinglist [EMAIL PROTECTED]
cc

Subject
Struts Menu question






Hi,
i'm pretty new to Struts Menu and have one simple question before i start:

is it possible to display menuitems depending on some conditions. e.g. 
only
displaying an admin-menu if the user is logged on as Administrator?

thanks in advance

Filip Polsakiewicz


-
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]

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



RE: Struts Menu question

2003-06-17 Thread El Harouchi, Jaafar [IT]
Filip,
You can definitely do that.
Your menu definitions are in the xml configuration file, but the logic for
determining which ones to display and how to display them is handled by the
MenuDisplayers.  The MenuDisplayers can have a PermissionsAdapter which
encapsulates entitlement logic.

Look at the Permissions example at: 
http://www.raibledesigns.com/struts-menu/index.jsp

The example code is available through:
http://sourceforge.net/projects/struts-menu/

I recommend users to start sending Struts Menu questions to: 
struts-menu-user (subscribe via SourceForge)

HTH,
jaafar



-Original Message-
From: Filip Polsakiewicz [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 17, 2003 4:02 AM
To: Struts Users Mailinglist
Subject: Struts Menu question


Hi,
i'm pretty new to Struts Menu and have one simple question before i start:

is it possible to display menuitems depending on some conditions. e.g. only
displaying an admin-menu if the user is logged on as Administrator?

thanks in advance

Filip Polsakiewicz


-
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]



RE: Struts Menu question

2003-06-17 Thread Filip Polsakiewicz
Cool. Thanks alot

Filip

 -Original Message-
 From: El Harouchi, Jaafar [IT] [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, June 17, 2003 2:01 PM
 To: 'Struts Users Mailing List'
 Subject: RE: Struts Menu question


 Filip,
 You can definitely do that.
 Your menu definitions are in the xml configuration file, but the logic for
 determining which ones to display and how to display them is
 handled by the
 MenuDisplayers.  The MenuDisplayers can have a PermissionsAdapter which
 encapsulates entitlement logic.

 Look at the Permissions example at:
   http://www.raibledesigns.com/struts-menu/index.jsp

 The example code is available through:
   http://sourceforge.net/projects/struts-menu/

 I recommend users to start sending Struts Menu questions to:
   struts-menu-user (subscribe via SourceForge)

 HTH,
 jaafar



 -Original Message-
 From: Filip Polsakiewicz [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, June 17, 2003 4:02 AM
 To: Struts Users Mailinglist
 Subject: Struts Menu question


 Hi,
 i'm pretty new to Struts Menu and have one simple question before i start:

 is it possible to display menuitems depending on some conditions.
 e.g. only
 displaying an admin-menu if the user is logged on as Administrator?

 thanks in advance

 Filip Polsakiewicz


 -
 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]



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



Re: Struts Menu question

2003-06-17 Thread harm
Yes, ofcourse
You can do this in your actions or in jsp (using struts logic tags, or use 
JSTL).

Cheers,

Harm de Laat
Informatiefabriek
The Netherlands




Filip Polsakiewicz [EMAIL PROTECTED] 
06/17/2003 10:01 AM
Please respond to
Struts Users Mailing List [EMAIL PROTECTED]


To
Struts Users Mailinglist [EMAIL PROTECTED]
cc

Subject
Struts Menu question






Hi,
i'm pretty new to Struts Menu and have one simple question before i start:

is it possible to display menuitems depending on some conditions. e.g. 
only
displaying an admin-menu if the user is logged on as Administrator?

thanks in advance

Filip Polsakiewicz


-
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]



RE: struts menu 1.2 question

2003-06-16 Thread El Harouchi, Jaafar [IT]
We have up to three levels down, but use our own displayers/javascript.
How many levels down are you going?
-jaafar

-Original Message-
From: Ashish Kulkarni [mailto:[EMAIL PROTECTED]
Sent: Monday, June 16, 2003 11:47 AM
To: [EMAIL PROTECTED]
Subject: struts menu 1.2 question


Hi,
has anyone used struts menu to build drop down menu to
any level, 
I was trying to use coolmenu3 and it fails when i go
to levels down, 
any  suggestions, about it

Ashish

=
A$HI$H

__
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com

-
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]



RE: struts menu 1.2 question

2003-06-16 Thread Raible, Matt
There is a demo at http://raibledesigns.com/struts-menu and you can also
download the latest CVS snapshot from here at
http://raibledesigns.com/struts-menu/struts-menu.war

HTH,

Matt

-Original Message-
From: Ashish Kulkarni [mailto:[EMAIL PROTECTED]
Sent: Monday, June 16, 2003 9:47 AM
To: [EMAIL PROTECTED]
Subject: struts menu 1.2 question


Hi,
has anyone used struts menu to build drop down menu to
any level, 
I was trying to use coolmenu3 and it fails when i go
to levels down, 
any  suggestions, about it

Ashish

=
A$HI$H

__
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com

-
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]



RE: struts menu 1.2 question

2003-06-16 Thread Ashish Kulkarni
Hi,
i want to go multiple leyels down, and may be any
level down, also i want the menu to be displayed on
left side if it reaches end of screen
do u have some code sample for writing these
displayers and java script
--- El Harouchi, Jaafar [IT]
[EMAIL PROTECTED] wrote:
 We have up to three levels down, but use our own
 displayers/javascript.
 How many levels down are you going?
 -jaafar
 
 -Original Message-
 From: Ashish Kulkarni
 [mailto:[EMAIL PROTECTED]
 Sent: Monday, June 16, 2003 11:47 AM
 To: [EMAIL PROTECTED]
 Subject: struts menu 1.2 question
 
 
 Hi,
 has anyone used struts menu to build drop down menu
 to
 any level, 
 I was trying to use coolmenu3 and it fails when i go
 to levels down, 
 any  suggestions, about it
 
 Ashish
 
 =
 A$HI$H
 
 __
 Do you Yahoo!?
 SBC Yahoo! DSL - Now only $29.95 per month!
 http://sbc.yahoo.com
 

-
 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]
 


=
A$HI$H

__
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com

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



RE: struts menu 1.2 question

2003-06-16 Thread El Harouchi, Jaafar [IT]
Ashish,
Most of the displayers bundled in with struts-menu go as many levels
down as defined.
The source code is available through:
http://sourceforge.net/projects/struts-menu/
They are demoed at :
http://www.raibledesigns.com/struts-menu/index.jsp

The idea of having the menu go on the other side once the bottom of the
page is interesting but might take some serious effort to implement.
The javascript bundled with struts-menu is from:
http://www.dhtmlcentral.com/projects/coolmenus/ 

This should be enough to get you started.

If you have more questions you can subscribing to the struts-menu-user
list via the sourceforge link above.

HTH,
Jaafar

-Original Message-
From: Ashish Kulkarni [mailto:[EMAIL PROTECTED]
Sent: Monday, June 16, 2003 1:31 PM
To: Struts Users Mailing List
Subject: RE: struts menu 1.2 question


Hi,
i want to go multiple leyels down, and may be any
level down, also i want the menu to be displayed on
left side if it reaches end of screen
do u have some code sample for writing these
displayers and java script
--- El Harouchi, Jaafar [IT]
[EMAIL PROTECTED] wrote:
 We have up to three levels down, but use our own
 displayers/javascript.
 How many levels down are you going?
 -jaafar
 
 -Original Message-
 From: Ashish Kulkarni
 [mailto:[EMAIL PROTECTED]
 Sent: Monday, June 16, 2003 11:47 AM
 To: [EMAIL PROTECTED]
 Subject: struts menu 1.2 question
 
 
 Hi,
 has anyone used struts menu to build drop down menu
 to
 any level, 
 I was trying to use coolmenu3 and it fails when i go
 to levels down, 
 any  suggestions, about it
 
 Ashish
 
 =
 A$HI$H
 
 __
 Do you Yahoo!?
 SBC Yahoo! DSL - Now only $29.95 per month!
 http://sbc.yahoo.com
 

-
 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]
 


=
A$HI$H

__
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com

-
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]



RE: struts menu 1.2 question

2003-06-16 Thread Ashish Kulkarni
Thanx for all the info 
 i will look into it

Ashish
--- El Harouchi, Jaafar [IT]
[EMAIL PROTECTED] wrote:
 Ashish,
 Most of the displayers bundled in with struts-menu
 go as many levels
 down as defined.
 The source code is available through:
   http://sourceforge.net/projects/struts-menu/
 They are demoed at :
   http://www.raibledesigns.com/struts-menu/index.jsp
 
 The idea of having the menu go on the other side
 once the bottom of the
 page is interesting but might take some serious
 effort to implement.
 The javascript bundled with struts-menu is from:
   http://www.dhtmlcentral.com/projects/coolmenus/ 
 
 This should be enough to get you started.
 
 If you have more questions you can subscribing to
 the struts-menu-user
 list via the sourceforge link above.
 
 HTH,
 Jaafar
 
 -Original Message-
 From: Ashish Kulkarni
 [mailto:[EMAIL PROTECTED]
 Sent: Monday, June 16, 2003 1:31 PM
 To: Struts Users Mailing List
 Subject: RE: struts menu 1.2 question
 
 
 Hi,
 i want to go multiple leyels down, and may be any
 level down, also i want the menu to be displayed on
 left side if it reaches end of screen
 do u have some code sample for writing these
 displayers and java script
 --- El Harouchi, Jaafar [IT]
 [EMAIL PROTECTED] wrote:
  We have up to three levels down, but use our own
  displayers/javascript.
  How many levels down are you going?
  -jaafar
  
  -Original Message-
  From: Ashish Kulkarni
  [mailto:[EMAIL PROTECTED]
  Sent: Monday, June 16, 2003 11:47 AM
  To: [EMAIL PROTECTED]
  Subject: struts menu 1.2 question
  
  
  Hi,
  has anyone used struts menu to build drop down
 menu
  to
  any level, 
  I was trying to use coolmenu3 and it fails when i
 go
  to levels down, 
  any  suggestions, about it
  
  Ashish
  
  =
  A$HI$H
  
  __
  Do you Yahoo!?
  SBC Yahoo! DSL - Now only $29.95 per month!
  http://sbc.yahoo.com
  
 

-
  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]
  
 
 
 =
 A$HI$H
 
 __
 Do you Yahoo!?
 SBC Yahoo! DSL - Now only $29.95 per month!
 http://sbc.yahoo.com
 

-
 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]
 


__
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com

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



RE: struts menu tutorial??

2003-06-13 Thread Raible, Matt
How about a demo site (http://raibledesigns.com/struts-menu) and a project
site (http://sf.net/projects/struts-menu)?

HTH,

Matt

-Original Message-
From: Ashish Kulkarni [mailto:[EMAIL PROTECTED]
Sent: Friday, June 13, 2003 10:00 AM
To: [EMAIL PROTECTED]
Subject: struts menu tutorial??


Hi,
does any one have a struts menu tutorial or any web
site or book where i can get it, please let me the
location or book or if anyone has  written one

Ashish

=
A$HI$H

__
Do you Yahoo!?
Yahoo! Calendar - Free online calendar with sync to Outlook(TM).
http://calendar.yahoo.com

-
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]



RE: struts-menu used with or without Tiles?

2003-03-19 Thread Jack Zakarian
Hi Mick,

I'm using StrutsMenu with Tiles. It works fine.

Jack

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 19, 2003 11:22 AM
To: [EMAIL PROTECTED]
Subject: struts-menu used with or without Tiles?

Is struts-menu to be used with or without Tiles?


==
Thank You

Mick Knutson

Sr. Designer - Project Trust
aUBS AG, Financial - Zürich
Office: +41 (0)1/234.42.75
Internal: 48194
Mobile: 079.726.14.26

Visit our website at http://www.ubswarburg.com

This message contains confidential information and is intended only 
for the individual named.  If you are not the named addressee you 
should not disseminate, distribute or copy this e-mail.  Please 
notify the sender immediately by e-mail if you have received this 
e-mail by mistake and delete this e-mail from your system.

E-mail transmission cannot be guaranteed to be secure or error-free 
as information could be intercepted, corrupted, lost, destroyed, 
arrive late or incomplete, or contain viruses.  The sender therefore 
does not accept liability for any errors or omissions in the contents 
of this message which arise as a result of e-mail transmission.  If 
verification is required please request a hard-copy version.  This 
message is provided for informational purposes and should not be 
construed as a solicitation or offer to buy or sell any securities or 
related financial instruments.


-
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]



RE: struts-menu used with or without Tiles?

2003-03-19 Thread Heligon Sandra
I also use Tiles with Struts menu in the tiles-def.xml
I define the following entry:

definition name=site.menu.bar path=/layouts/menu.jsp
/definition

and the menu.jsp is the following:

%@ taglib uri=/WEB-INF/tld/struts-menu.tld prefix=menu%

script language=JavaScript1.2 src=./scripts/coolmenus3.js
/script
script src=./scripts/coolmenu-config.js 
/script

menu:useMenuDisplayer name=CoolMenu
bundle=org.apache.struts.action.MESSAGE
menu:displayMenu name=MenuHome/
menu:displayMenu name=MenuHelp/
/menu:useMenuDisplayer

Sandra




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: Jack Zakarian [mailto:[EMAIL PROTECTED]
Sent: 19 March 2003 17:45
To: 'Struts Users Mailing List'
Subject: RE: struts-menu used with or without Tiles?


Hi Mick,

I'm using StrutsMenu with Tiles. It works fine.

Jack

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 19, 2003 11:22 AM
To: [EMAIL PROTECTED]
Subject: struts-menu used with or without Tiles?

Is struts-menu to be used with or without Tiles?


==
Thank You

Mick Knutson

Sr. Designer - Project Trust
aUBS AG, Financial - Zürich
Office: +41 (0)1/234.42.75
Internal: 48194
Mobile: 079.726.14.26

Visit our website at http://www.ubswarburg.com

This message contains confidential information and is intended only 
for the individual named.  If you are not the named addressee you 
should not disseminate, distribute or copy this e-mail.  Please 
notify the sender immediately by e-mail if you have received this 
e-mail by mistake and delete this e-mail from your system.

E-mail transmission cannot be guaranteed to be secure or error-free 
as information could be intercepted, corrupted, lost, destroyed, 
arrive late or incomplete, or contain viruses.  The sender therefore 
does not accept liability for any errors or omissions in the contents 
of this message which arise as a result of e-mail transmission.  If 
verification is required please request a hard-copy version.  This 
message is provided for informational purposes and should not be 
construed as a solicitation or offer to buy or sell any securities or 
related financial instruments.


-
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]


RE: Struts-Menu onClick forcing a submit

2003-03-17 Thread Edgar Dollin
It is puzzling why you would be using the 'menu' instead of on page links or
buttons to submit the form.

There is no way to do it using struts-menu selections w/o javascript as they
do not render submit buttons.

If your menu is within the form /form block try

onclick=document.submit();

Also, you might want to use page instead of location although I don't think
that is your issue.  Page is for same site references, location is for off
site references.

Edgar

 -Original Message-
 From: Jack Zakarian [mailto:[EMAIL PROTECTED] 
 Sent: Monday, March 17, 2003 7:03 AM
 To: '[EMAIL PROTECTED]'
 Subject: Struts-Menu onClick  forcing a submit
 
 
 Hi,
 
  
 
 I am using Coolmenu4 and setting location to the URL to 
 execute e.g. location=ServiceInvoice/save.do.
 
 I found that this does not force a  submit so my action form 
 is not populated. To force a submit I tried the 
 
 onClick e.g. onClick=submitSave('ServiceInvoice/save.do').
 
   
 
 This does not work. The digester that loads the 
 menu-config.xml doesn't like the parameter with single quotes. 
 
 I tried double quotes and escaped double and single quotes 
 but no luck. e.g. onClick=submitSave(\ServiceInvoice\save.do\)  
 
  
 
 How can I pass a parameter using onClick?.  If it is possible 
 to force a submit using the location, page attribute or other approach
 
 I would rather do it that way without using javascript.
 
  
 
 Any help would be appreciated.
 
  
 
 Thanks,
 
  
 
 Jack
 
  
 
 

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



RE: Struts-Menu onClick forcing a submit

2003-03-17 Thread Jack Zakarian
Hi Edgar,

It's a user requirement to use a horizontal dropdown menu to initiate
actions. For example the menu would look like:

[Home]   [Action]  [Query]   [Add][Save]  [Delete]
   Cancel   FieldQueryNew  Delete
   ClearList All  Add Detail   Delete Selected
   ResetNew Query
There are different menus based on the screen being displayed.

The action class has a number of methods for the above menu.   Some of
the menu actions will take you to another action-to-screen.

Long term the menu options will be selected from a database table or XML
file based on the userid and password.

If I use the onclick=document.submit(); I will still need to set the
forms action to the new url.

Thanks for the reply and suggestion.

Jack
-Original Message-
From: Edgar Dollin [mailto:[EMAIL PROTECTED] 
Sent: Monday, March 17, 2003 10:49 AM
To: 'Struts Users Mailing List'
Subject: RE: Struts-Menu onClick  forcing a submit

It is puzzling why you would be using the 'menu' instead of on page
links or
buttons to submit the form.

There is no way to do it using struts-menu selections w/o javascript as
they
do not render submit buttons.

If your menu is within the form /form block try

onclick=document.submit();

Also, you might want to use page instead of location although I don't
think
that is your issue.  Page is for same site references, location is for
off
site references.

Edgar

 -Original Message-
 From: Jack Zakarian [mailto:[EMAIL PROTECTED] 
 Sent: Monday, March 17, 2003 7:03 AM
 To: '[EMAIL PROTECTED]'
 Subject: Struts-Menu onClick  forcing a submit
 
 
 Hi,
 
  
 
 I am using Coolmenu4 and setting location to the URL to 
 execute e.g. location=ServiceInvoice/save.do.
 
 I found that this does not force a  submit so my action form 
 is not populated. To force a submit I tried the 
 
 onClick e.g. onClick=submitSave('ServiceInvoice/save.do').
 
   
 
 This does not work. The digester that loads the 
 menu-config.xml doesn't like the parameter with single quotes. 
 
 I tried double quotes and escaped double and single quotes 
 but no luck. e.g. onClick=submitSave(\ServiceInvoice\save.do\)  
 
  
 
 How can I pass a parameter using onClick?.  If it is possible 
 to force a submit using the location, page attribute or other approach
 
 I would rather do it that way without using javascript.
 
  
 
 Any help would be appreciated.
 
  
 
 Thanks,
 
  
 
 Jack
 
  
 
 

-
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]



RE: Struts-Menu onClick forcing a submit

2003-03-17 Thread Edgar Dollin
I would have a hidden field which would help you decompose the action
selected, since there can be only one submit target.  You can use the
LookupDispatchAction as a model or you can simply fill the value of the
hidden field with your action code, i.e.:

onclick=actionField.value='save';document.submit();

Then in your action look for the value of 'actionField' (it would be in your
form or in the request parameters).

Edgar

 -Original Message-
 From: Jack Zakarian [mailto:[EMAIL PROTECTED] 
 Sent: Monday, March 17, 2003 11:10 AM
 To: 'Struts Users Mailing List'
 Subject: RE: Struts-Menu onClick  forcing a submit
 
 
 Hi Edgar,
 
 It's a user requirement to use a horizontal dropdown menu to 
 initiate actions. For example the menu would look like:
 
 [Home]   [Action]  [Query]   [Add][Save]  [Delete]
Cancel   FieldQueryNew  Delete
ClearList All  Add Detail   Delete Selected
ResetNew Query
 There are different menus based on the screen being displayed.
 
 The action class has a number of methods for the above menu.   Some of
 the menu actions will take you to another action-to-screen.
 
 Long term the menu options will be selected from a database 
 table or XML file based on the userid and password.
 
 If I use the onclick=document.submit(); I will still need 
 to set the forms action to the new url.
 
 Thanks for the reply and suggestion.
 
 Jack
 -Original Message-
 From: Edgar Dollin [mailto:[EMAIL PROTECTED] 
 Sent: Monday, March 17, 2003 10:49 AM
 To: 'Struts Users Mailing List'
 Subject: RE: Struts-Menu onClick  forcing a submit
 
 It is puzzling why you would be using the 'menu' instead of 
 on page links or buttons to submit the form.
 
 There is no way to do it using struts-menu selections w/o 
 javascript as they do not render submit buttons.
 
 If your menu is within the form /form block try
 
   onclick=document.submit();
 
 Also, you might want to use page instead of location although 
 I don't think that is your issue.  Page is for same site 
 references, location is for off site references.
 
 Edgar
 
  -Original Message-
  From: Jack Zakarian [mailto:[EMAIL PROTECTED]
  Sent: Monday, March 17, 2003 7:03 AM
  To: '[EMAIL PROTECTED]'
  Subject: Struts-Menu onClick  forcing a submit
  
  
  Hi,
  
   
  
  I am using Coolmenu4 and setting location to the URL to
  execute e.g. location=ServiceInvoice/save.do.
  
  I found that this does not force a  submit so my action form
  is not populated. To force a submit I tried the 
  
  onClick e.g. onClick=submitSave('ServiceInvoice/save.do').
  

  
  This does not work. The digester that loads the
  menu-config.xml doesn't like the parameter with single quotes. 
  
  I tried double quotes and escaped double and single quotes
  but no luck. e.g. onClick=submitSave(\ServiceInvoice\save.do\)  
  
   
  
  How can I pass a parameter using onClick?.  If it is possible
  to force a submit using the location, page attribute or 
 other approach
  
  I would rather do it that way without using javascript.
  
   
  
  Any help would be appreciated.
  
   
  
  Thanks,
  
   
  
  Jack
  
   
  
  
 
 -
 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]



RE: Struts-menu with Tiles

2003-03-13 Thread Heligon Sandra
   
Is it possible to do internationalization with struts-menu ?

  
 --- 
 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 
 
 Original Message-
 From: Heligon Sandra  
 Sent: 13 March 2003 09:47
 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


RE: Struts-menu with Tiles

2003-03-13 Thread Edgar Dollin
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]



RE: Struts-menu with Tiles

2003-03-13 Thread Edgar Dollin
There is internationalization built into struts-menu. 

Edgar

 -Original Message-
 From: Heligon Sandra [mailto:[EMAIL PROTECTED] 
 Sent: Thursday, March 13, 2003 5:13 AM
 To: '[EMAIL PROTECTED]'; '[EMAIL PROTECTED]'
 Subject: RE: Struts-menu with Tiles
 
 

   Is it possible to do internationalization with struts-menu ?
 
   
  ---
  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 
  
  Original Message-
  From:   Heligon Sandra  
  Sent:   13 March 2003 09:47
  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
 

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



Re: Struts-menu with Tiles

2003-03-13 Thread Jose Gonzalez Gomez
   Edgar,

   Is there support in struts-menu for dynamic menus? I evaluated it 
for one of the applications I'm developing, but I got the impression 
that you can only render menus that are specified in a configuration 
file, and finally I used a javascript menu directly as I needed to 
render a dynamic menu (taken from database).

   Regards
   Jose
Edgar Dollin wrote:

There is internationalization built into struts-menu. 

Edgar

 

-Original Message-
From: Heligon Sandra [mailto:[EMAIL PROTECTED] 
Sent: Thursday, March 13, 2003 5:13 AM
To: '[EMAIL PROTECTED]'; '[EMAIL PROTECTED]'
Subject: RE: Struts-menu with Tiles

  
	Is it possible to do internationalization with struts-menu ?

   

---
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 

Original Message-
From: 	Heligon Sandra  
Sent:	13 March 2003 09:47
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
 

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


 



RE: Struts-menu with Tiles

2003-03-13 Thread Matt Raible
These types of questions should probably be asked on the
struts-menu-user list.  You can subscribe here:
http://lists.sourceforge.net/lists/listinfo/struts-menu-user
 
Yes, struts-menu integrates with Struts's RecourceBundle for i18n.  It
uses the title attribute as a key, and if the key is not found in
ApplicationResources.properties, then it just uses the title's value.
 
HTH,
 
Matt

-Original Message-
From: Heligon Sandra [mailto:[EMAIL PROTECTED] 
Sent: Thursday, March 13, 2003 3:13 AM
To: '[EMAIL PROTECTED]'; '[EMAIL PROTECTED]'
Subject: RE: Struts-menu with Tiles



   
Is it possible to do internationalization with struts-menu ? 


--- 
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 

Original Message- 
From:   Heligon Sandra  
Sent:   13 March 2003 09:47 
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 



RE: Struts-menu with Tiles

2003-03-13 Thread Matt Raible
I (at one time) used Tiles to build my menu, but found struts-menu to be
much easier to configure.  Out of the box, no, it does not support this.
However, you could contribute a new TilesDisplayer - it is open source
after all ;-)

-Original Message-
From: Heligon Sandra [mailto:[EMAIL PROTECTED] 
Sent: Thursday, March 13, 2003 1: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 



RE: Struts-menu with Tiles

2003-03-13 Thread Edgar Dollin
Not directly.

There is a security mechanism which enables or disables individual items and
menu groups.

Edgar

 -Original Message-
 From: Jose Gonzalez Gomez [mailto:[EMAIL PROTECTED] 
 Sent: Thursday, March 13, 2003 9:00 AM
 To: 'Struts Users Mailing List'
 Subject: Re: Struts-menu with Tiles
 
 
 
 Edgar,
 
 Is there support in struts-menu for dynamic menus? I evaluated it 
 for one of the applications I'm developing, but I got the impression 
 that you can only render menus that are specified in a configuration 
 file, and finally I used a javascript menu directly as I needed to 
 render a dynamic menu (taken from database).
 
 Regards
 Jose
 
 Edgar Dollin wrote:
 
 There is internationalization built into struts-menu.
 
 Edgar
 
   
 
 -Original Message-
 From: Heligon Sandra [mailto:[EMAIL PROTECTED]
 Sent: Thursday, March 13, 2003 5:13 AM
 To: '[EMAIL PROTECTED]'; '[EMAIL PROTECTED]'
 Subject: RE: Struts-menu with Tiles
 
 

 Is it possible to do internationalization with struts-menu ?
 
 
 
  
 ---
 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
 
 Original Message-
 From:  Heligon Sandra  
 Sent:  13 March 2003 09:47
 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
   
 
 
 -
 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]



RE: Struts-menu with Tiles

2003-03-13 Thread Heligon Sandra
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]


RE: Struts-menu with Tiles

2003-03-13 Thread Pascal THIVENT
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]



RE: Struts-menu with Tiles

2003-03-13 Thread Heligon Sandra
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]


RE: Struts-menu with Tiles

2003-03-13 Thread Pascal THIVENT
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

RE: Struts-menu with Tiles

2003-03-13 Thread Edgar Dollin
The only way to really understand struts-menu as it is now is to read the
source.  Of course it is just a couple of tags and a dozen classes so it is
really pretty simple.

The 'MenuBase' class has most of the attributes for each menu item and is
helpful in understanding the menu-config.xml file.

Edgar


 -Original Message-
 From: Pascal THIVENT [mailto:[EMAIL PROTECTED] 
 Sent: Thursday, March 13, 2003 11:41 AM
 To: 'Struts Users Mailing List'
 Subject: RE: Struts-menu with Tiles
 
 
 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

Re: Struts-menu with Tiles

2003-03-13 Thread Will Etson
It is possible, just not well documented. Essentially you use the Resource Key to 
access the Menu Object model. I remember there was some scoping issues. I have 
attached an example, if your interested.


 Jose Gonzalez Gomez [EMAIL PROTECTED] 03/13/03 06:00AM 

Edgar,

Is there support in struts-menu for dynamic menus? I evaluated it 
for one of the applications I'm developing, but I got the impression 
that you can only render menus that are specified in a configuration 
file, and finally I used a javascript menu directly as I needed to 
render a dynamic menu (taken from database).

Regards
Jose

Edgar Dollin wrote:

There is internationalization built into struts-menu. 

Edgar

  

-Original Message-
From: Heligon Sandra [mailto:[EMAIL PROTECTED] 
Sent: Thursday, March 13, 2003 5:13 AM
To: '[EMAIL PROTECTED]'; '[EMAIL PROTECTED]' 
Subject: RE: Struts-menu with Tiles


   
  Is it possible to do internationalization with struts-menu ?



 
---
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 

Original Message-
From:Heligon Sandra  
Sent:13 March 2003 09:47
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
  


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



  


/*
 * MenuLoaderListener.java
 *
 * Created on February 5, 2003, 6:25 PM
 */

package net.etson.picture.plugins;

import com.fgm.web.menu.MenuComponent;
import com.fgm.web.menu.MenuRepository;
import java.net.URLEncoder;
import java.rmi.RemoteException;
import java.util.Collection;
import java.util.Iterator;
import javax.ejb.CreateException;
import javax.naming.NamingException;
import javax.servlet.ServletContextListener;
import javax.servlet.ServletContextEvent;
import javax.servlet.ServletException;
import net.etson.picture.common.EjbUtils;
import net.etson.picture.interfaces.CategoryEntityData;
import net.etson.picture.interfaces.UserSession;
import org.apache.struts.action.ActionServlet;
import org.apache.struts.action.PlugIn;
import org.apache.struts.config.ModuleConfig;

/** Loads the picture categories into the Menu Resource.
 * @author wetson
 * @version 1.0
 */

public class PicturePlugin implements PlugIn {
public static final String MENU_NAME = AlbumsMenu;
/** Helper function to create the Category Menu
 * @return MenuComponent containing the Category Menu
 */
private MenuComponent createMenu() {
MenuComponent result = new MenuComponent();
result.setName(MENU_NAME);
result.setTitle(Albums);
result.setDescription(Please select a category);
//Create subMenus
try{
UserSession lSession = EjbUtils.getUserSession();
Collection categories = lSession.listCategories();
Iterator i = categories.iterator();
int index = 0;
while(i.hasNext()){
CategoryEntityData category = (CategoryEntityData)i.next();

//Prepare thumbnail menu item
MenuComponent thumbnailMenu = new MenuComponent(); 
thumbnailMenu.setName(Thumbnail + index);
thumbnailMenu.setTitle(Thumbnail);
thumbnailMenu.setDescription(Thumbnail);
thumbnailMenu.setLocation(list-pictures.do?category= + 
java.net.URLEncoder.encode(category.getName()));

//Prepare slideshow menu
MenuComponent slideshowMenu = new MenuComponent();
slideshowMenu.setName(Slideshow + index);
slideshowMenu.setTitle(Slideshow);
slideshowMenu.setDescription(Slideshow);
slideshowMenu.setLocation(start-slideshow.do?category= + 
java.net.URLEncoder.encode(category.getName()));

//Prepare category menu item
MenuComponent categoryMenu = new MenuComponent();
categoryMenu.setName(Category + index

RE: struts-menu

2003-03-10 Thread Raible, Matt
Edgar,

I'm a committer on struts-menu, so hopefully I can help you out.

I believe using the location attribute vs. page attribute will strip out
your context and use the exact value you specify in location rather than
pre-pending the context.

As for remembering the position - which layout are you using?  I can
possibly add the remembering functionality, but it will probably involve
cookies or something.

Matt

 -Original Message-
 From: Edgar Dollin [mailto:[EMAIL PROTECTED]
 Sent: Monday, March 10, 2003 6:20 AM
 To: 'Struts Users Mailing List'
 Subject: struts-menu
 
 
 Does anyone know how to suppress the leading '/' in strutsmenu.
  
 Does anyone know how to get the menu to remember it's position if the
 target
 page, i.e. tiles, has the same menu.
  
 Thanks in advance
  
 Edgar
 


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



Re: struts-menu

2003-03-10 Thread Stephen Smithstone
what is this struts-menu and where can i find some examples / downloads ? 
please 

On Monday 10 March 2003 3:22 pm, Raible, Matt wrote:
 Edgar,

 I'm a committer on struts-menu, so hopefully I can help you out.

 I believe using the location attribute vs. page attribute will strip
 out your context and use the exact value you specify in location rather
 than pre-pending the context.

 As for remembering the position - which layout are you using?  I can
 possibly add the remembering functionality, but it will probably involve
 cookies or something.

 Matt

  -Original Message-
  From: Edgar Dollin [mailto:[EMAIL PROTECTED]
  Sent: Monday, March 10, 2003 6:20 AM
  To: 'Struts Users Mailing List'
  Subject: struts-menu
 
 
  Does anyone know how to suppress the leading '/' in strutsmenu.
 
  Does anyone know how to get the menu to remember it's position if the
  target
  page, i.e. tiles, has the same menu.
 
  Thanks in advance
 
  Edgar

 -
 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]



RE: struts-menu

2003-03-10 Thread Raible, Matt
http://sf.net/projects/struts-menu

demo at:

http://raibledesigns.com/struts-menu


 -Original Message-
 From: Stephen Smithstone [mailto:[EMAIL PROTECTED]
 Sent: Monday, March 10, 2003 8:38 AM
 To: Struts Users Mailing List
 Subject: Re: struts-menu
 
 
 what is this struts-menu and where can i find some examples / 
 downloads ? 
 please 
 
 On Monday 10 March 2003 3:22 pm, Raible, Matt wrote:
  Edgar,
 
  I'm a committer on struts-menu, so hopefully I can help you out.
 
  I believe using the location attribute vs. page 
 attribute will strip
  out your context and use the exact value you specify in 
 location rather
  than pre-pending the context.
 
  As for remembering the position - which layout are you using?  I can
  possibly add the remembering functionality, but it will 
 probably involve
  cookies or something.
 
  Matt
 
   -Original Message-
   From: Edgar Dollin [mailto:[EMAIL PROTECTED]
   Sent: Monday, March 10, 2003 6:20 AM
   To: 'Struts Users Mailing List'
   Subject: struts-menu
  
  
   Does anyone know how to suppress the leading '/' in strutsmenu.
  
   Does anyone know how to get the menu to remember it's 
 position if the
   target
   page, i.e. tiles, has the same menu.
  
   Thanks in advance
  
   Edgar
 
  
 -
  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]
 


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



RE: struts-menu

2003-03-10 Thread Edgar Dollin
Thanks Matt:

I didn't find the location bit until after your message, so I submitted a
patch to test the page for https, http, mailto,  ftp so please ignore.

I submitted a patch for DropDownMenuDisplayer.java which outputs a trailer
message after a menu block.  This allowed me to write the javascript to
'toggle' the menu position based on a cookie set in the toggle function.  

It was a mind bender to write javascript in a properties file.  I would have
submitted the javascript but it was based on an external script for reading
and writing the cookies.  If you want it, I'll rework the js in the
properties file to stand alone.

Thanks again

Edgar

 -Original Message-
 From: Raible, Matt [mailto:[EMAIL PROTECTED] 
 Sent: Monday, March 10, 2003 10:22 AM
 To: 'Struts Users Mailing List'
 Subject: RE: struts-menu
 
 
 Edgar,
 
 I'm a committer on struts-menu, so hopefully I can help you out.
 
 I believe using the location attribute vs. page attribute 
 will strip out your context and use the exact value you 
 specify in location rather than pre-pending the context.
 
 As for remembering the position - which layout are you using? 
  I can possibly add the remembering functionality, but it 
 will probably involve cookies or something.
 
 Matt
 
  -Original Message-
  From: Edgar Dollin [mailto:[EMAIL PROTECTED]
  Sent: Monday, March 10, 2003 6:20 AM
  To: 'Struts Users Mailing List'
  Subject: struts-menu
  
  
  Does anyone know how to suppress the leading '/' in strutsmenu.
   
  Does anyone know how to get the menu to remember it's 
 position if the 
  target page, i.e. tiles, has the same menu.
   
  Thanks in advance
   
  Edgar
  
 
 

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



RE: struts-menu

2003-03-10 Thread Edgar Dollin
Struts menu works nicely with struts, i.e. you add a plugin to read your
configuration files.  It uses xml and property files for menu configuration.
It can use javascript or not and works with CoolMenus.  There are a couple
of jsp tags which actually insert the menu so your jsp files stay really
clean.  The things I like best about it is that the menu positions are
relative (at least the simple and drop down displayers), i.e. you don't have
to put pixel positions in your code and the menu config just has information
actually relevant to the menu, i.e. url, description, and a tooltip.

http://sourceforge.net/projects/struts-menu

Edgar

 -Original Message-
 From: Stephen Smithstone [mailto:[EMAIL PROTECTED] 
 Sent: Monday, March 10, 2003 10:38 AM
 To: 'Struts Users Mailing List'
 Subject: Re: struts-menu
 
 
 what is this struts-menu and where can i find some examples / 
 downloads ? 
 please 
 
 On Monday 10 March 2003 3:22 pm, Raible, Matt wrote:
  Edgar,
 
  I'm a committer on struts-menu, so hopefully I can help you out.
 
  I believe using the location attribute vs. page attribute will 
  strip out your context and use the exact value you specify in 
  location rather than pre-pending the context.
 
  As for remembering the position - which layout are you 
 using?  I can 
  possibly add the remembering functionality, but it will probably 
  involve cookies or something.
 
  Matt
 
   -Original Message-
   From: Edgar Dollin [mailto:[EMAIL PROTECTED]
   Sent: Monday, March 10, 2003 6:20 AM
   To: 'Struts Users Mailing List'
   Subject: struts-menu
  
  
   Does anyone know how to suppress the leading '/' in strutsmenu.
  
   Does anyone know how to get the menu to remember it's position if 
   the target page, i.e. tiles, has the same menu.
  
   Thanks in advance
  
   Edgar
 
  
 -
  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]



RE: [struts-menu] display trouble

2003-02-25 Thread Ray Madigan
You need the menu-config.xml file in your WEB-INF directory


-Original Message-
From: alexj [mailto:[EMAIL PROTECTED]
Sent: Tuesday, February 25, 2003 7:32 AM
To: Struts Users Mailing List
Subject: [struts-menu] display trouble


Hi,

After testing the example app who work fine, I've try to include
struts-menu on my project.

After reading the readme I follow that :

- Copy the file lib/struts-menu.tld from the struts-menu distribution into
the

WEB-INF directory of your web application.

- Copy the file lib/struts-menu.jar from the struts-menu distribution into
the

WEB-INF/lib directory of your web application.

- Modify the application WEB-INF/web.xml file to include a tag library
decleration

for the struts-menu taglibrary. For example:

taglib

taglib-uri/WEB-INF/struts-menu.tld/taglib-uri

taglib-location/WEB-INF/struts-menu.tld/taglib-location

/taglib

- In each JSP page that will use the Struts custom tags, add the
corresponding taglib

directive for struts-menu.tld. For example:

%@ taglib uri=/WEB-INF/struts-menu.tld prefix=menu %

I create a simple jsp test page based on the coolmenu 3

%@ page contentType=text/html; charset=UTF-8 %

%@ taglib uri=/WEB-INF/struts-menu.tld prefix=menu%

html

head

titleCoolMenus3 Example/title

link rel=stylesheet type=text/css media=screen

href=styles/global.css /

/head

body

script language=JavaScript1.2 src=./scripts/coolmenus3.js

/script

script src=./scripts/coolmenu-config.js

/script

menu:useMenuDisplayer name=CoolMenu
bundle=org.apache.struts.action.MESSAGE

menu:displayMenu name=ToDoListMenuFile/

menu:displayMenu name=ToDoListMenuEdit/

menu:displayMenu name=CaseDetailMenuCase/

/menu:useMenuDisplayer



/body

/html

And when I test I got the following error :

org.apache.jasper.JasperException: The menu repository could not be found

Any idea ??

Thanks in advance.



--
Alexandre Jaquet
-



-
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]



Re: struts-menu ClassLoaders in jboss

2003-02-13 Thread Will Etson
I ran into the same problem. It turns out its a class loader issue in Struts Menu. I 
have posted a patch at the Struts Menu  sourceforge site. 

 Martin J. La Jeunesse [EMAIL PROTECTED] 02/12/03 06:25PM 
Have been spending the day trying to get struts-menu working under 
jboss, without much success.

Upon deploying my app:
2003-02-12 17:31:00,547 ERROR [org.apache.commons.digester.Digester] 
Begin event threw exception
java.lang.ClassNotFoundException: No ClassLoaders found for: 
com.fgm.web.menu.displayer.MenuDisplayerMapping
at org.jboss.mx.loading.LoadMgr.beginLoadTask(LoadMgr.java:138)
at 
org.jboss.mx.loading.UnifiedClassLoader3.loadClass(UnifiedClassLoader3.java:140)
at java.lang.ClassLoader.loadClass(ClassLoader.java:262)
at 
org.apache.commons.digester.ObjectCreateRule.begin(ObjectCreateRule.java:252)
at org.apache.commons.digester.Digester.startElement(Digester.java:1237)
at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1490)
at org.apache.crimson.parser.Parser2.content(Parser2.java:1779)
at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1507)
at org.apache.crimson.parser.Parser2.content(Parser2.java:1779)
at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1507)
at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:500)
at org.apache.crimson.parser.Parser2.parse(Parser2.java:305)
at org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:442)
at org.apache.commons.digester.Digester.parse(Digester.java:1514)
at com.fgm.web.menu.MenuRepository.load(Unknown Source)
at com.fgm.web.menu.MenuPlugIn.init(Unknown Source)
at 
org.apache.struts.action.ActionServlet.initModulePlugIns(ActionServlet.java:1105)
at org.apache.struts.action.ActionServlet.init(ActionServlet.java:471)
at javax.servlet.GenericServlet.init(GenericServlet.java:256)
snip

The sample struts-menu app spits-up a little differently:
2003-02-12 17:13:54,028 ERROR [org.apache.struts.action.ActionServlet]
java.io.FileNotFoundException: JAR entry 
org/apache/struts/resources/web-app_2_2.dtd not found in 
/usr/local/jboss-3.0.4_tomcat-4.1.12/tomcat-4.1.x/work/MainEngine/localhost/struts-menu/WEB-INF/lib/struts.jar
at 
org.apache.commons.digester.Digester.createSAXException(Digester.java:2312)
at 
org.apache.commons.digester.Digester.createSAXException(Digester.java:2332)
at 
org.apache.commons.digester.Digester.resolveEntity(Digester.java:1367)
at 
org.apache.crimson.parser.ExternalEntity.getInputSource(ExternalEntity.java:89)
at org.apache.crimson.parser.Parser2.pushReader(Parser2.java:3133)
at 
org.apache.crimson.parser.Parser2.externalParameterEntity(Parser2.java:2868)
at org.apache.crimson.parser.Parser2.maybeDoctypeDecl(Parser2.java:1167)
at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:489)
at org.apache.crimson.parser.Parser2.parse(Parser2.java:305)
at org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:442)
at org.apache.commons.digester.Digester.parse(Digester.java:1514)
at 
org.apache.struts.action.ActionServlet.initServlet(ActionServlet.java:1381)
at org.apache.struts.action.ActionServlet.init(ActionServlet.java:464)
at javax.servlet.GenericServlet.init(GenericServlet.java:256)


If this is a jboss issue, I'll post over there. Any hints are apprciated.
thanks,
Marty



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




Re: Struts menu not loading Help required

2003-02-05 Thread Vic Cekvenich
You are possibly of track.

You just configure struts menu via XML and you are set, it emits JavaScript.
See the examples like baseBeans.com that uses struts menu (source in 
basicPortal.com), and the example that comes with struts menu war file.

.V

Souravmay Das wrote:
Hi ,
   I am having a stable struts version in my machine but wanted to go for struts-menu in order to 
have it up and running in my machine , I tried to change the init() functionality of ActionServlet
with following codes:

String menuConfig = this.getServletConfig().getInitParameter(menuConfig);
if (menuConfig != null) {
  MenuRepository repository = new MenuRepository();
  repository.setLoadParam(menuConfig);
  repository.setServlet(this);

  try {
  repository.load();
  this.getServletContext().
  setAttribute(MenuRepository.MENU_REPOSITORY_KEY, repository);
  } catch (LoadableResourceException lre) 


also gave the required init parameters{menuConfig} in the web.xml file.

When i start the server , init function fails with following errors.
java.lang.AbstractMethodError
at org.apache.commons.digester.Digester.getXMLReader(Digester.java:607)
at org.apache.commons.digester.Digester.parse(Digester.java:1302)
at com.fgm.web.menu.MenuRepository.load(Unknown Source)
at tavant.webutil.struts.action.ActionServlet.init(ActionServlet.java:56
)
at javax.servlet.GenericServlet.init(GenericServlet.java:258)

Any idea how to load the repository , I donot mind hard coding it .but I donot want to use 
 unstable builds as it may have effects on other applications.

Regards,
Souravmay Das





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




RE: Struts menu not loading Help required

2003-02-05 Thread Raible, Matt
Make sure you have the latest version from
http://sf.net/projects/struts-menu and then add the following to
struts-config.xml:

!-- == Menu plugin  --
plug-in className=com.fgm.web.menu.MenuPlugIn
set-property 
property=menuConfig 
value=/WEB-INF/menu-config.xml/
/plug-in

HTH,

Matt

 -Original Message-
 From: Vic Cekvenich [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, February 05, 2003 5:17 PM
 To: [EMAIL PROTECTED]
 Subject: Re: Struts menu not loading Help required
 
 
 You are possibly of track.
 
 You just configure struts menu via XML and you are set, it 
 emits JavaScript.
 See the examples like baseBeans.com that uses struts menu (source in 
 basicPortal.com), and the example that comes with struts menu 
 war file.
 
 .V
 
 Souravmay Das wrote:
  Hi ,
 I am having a stable struts version in my machine but 
 wanted to go for struts-menu in order to 
  have it up and running in my machine , I tried to change 
 the init() functionality of ActionServlet
  with following codes:
  
  String menuConfig = 
 this.getServletConfig().getInitParameter(menuConfig);
  if (menuConfig != null) {
MenuRepository repository = new MenuRepository();
repository.setLoadParam(menuConfig);
repository.setServlet(this);
  
try {
repository.load();
this.getServletContext().

 setAttribute(MenuRepository.MENU_REPOSITORY_KEY, repository);
} catch (LoadableResourceException lre) 
  
  
  also gave the required init parameters{menuConfig} in the 
 web.xml file.
  
  When i start the server , init function fails with 
 following errors.
  java.lang.AbstractMethodError
  at 
 org.apache.commons.digester.Digester.getXMLReader(Digester.java:607)
  at 
 org.apache.commons.digester.Digester.parse(Digester.java:1302)
  at com.fgm.web.menu.MenuRepository.load(Unknown Source)
  at 
 tavant.webutil.struts.action.ActionServlet.init(ActionServlet.java:56
  )
  at 
 javax.servlet.GenericServlet.init(GenericServlet.java:258)
  
  Any idea how to load the repository , I donot mind hard 
 coding it .but I donot want to use 
   unstable builds as it may have effects on other applications.
  
  Regards,
  Souravmay Das
  
  
 
 
 
 -
 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]




Re: Struts Menu and VAJ 4.0/WTE

2002-05-15 Thread Scott Sayles

I'm probably using a nightly build that is more recent then the version
of Struts that you are using.  You can check out an earlier version of
MenuPlugin (revision 1.1 I believe) and build with that.  The most
recent version should reflect the latest Struts 1.1 head.  If not,
please let me know.

You can either use the earlier revision of MenuPlugIn or implement your
own loading mechanism.  It's actually very simplistic in what it does. 
The only thing you need to do is load a MenuRepository and provide it as
some scoped attribute to the UseMenuDisplayerTag.  By default, it looks
for the repository as some scoped attribute keyed by
MenuRepository.MENU_REPOSITORY_KEY.  You can override this by specifying
a different key.  For instance, if you were to load a MenuRepository as
a session scoped attribute keyed by my.app.MenuRepository (like in a
login), you can specify this to the tag by doing:

menu:useMenuDispalyer name=CoolMenu
repository=my.foo.MenuRepository

The tag will do a pageContext.findAttribute(repository).  I haven't
actually tried using a seperate repository, but I provided for the
ability.

Let me know if you have any other questions or problems.

Scott


On Wed, 2002-05-15 at 14:03, [EMAIL PROTECTED] wrote:
 
 Has anyone had any luck in using Struts Menu 1.1B2 in VAJ 4.0/WTE? The
 plug-in does not seem to be doing it's job and I'm not getting any errors
 in the console. The ActionServlet simply fails to load. I did use a
 struts-menu.jar from the site.zip from basebeans and that one worked (it's
 dated 03/26/02 which doesn't match any of the releases in sourceforge)...I
 wonder if the author can help me on this...thanks
 **
 Please Note:
 The information in this E-mail message, and any files transmitted
 with it, is confidential and may be legally privileged.  It is
 intended only for the use of the individual(s) named above.  If you
 are the intended recipient, be aware that your use of any confidential
 or personal information may be restricted by state and federal
 privacy laws.  If you, the reader of this message, are not the
 intended recipient, you are hereby notified that you should not
 further disseminate, distribute, or forward this E-mail message.
 If you have received this E-mail in error, please notify the sender
 and delete the material from any computer.  Thank you.
 **
 
 
 
 --
 To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: mailto:[EMAIL PROTECTED]
 



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




Re: Struts-menu/dropdown

2002-04-15 Thread Scott Sayles



On Fri, 2002-04-12 at 13:30, [EMAIL PROTECTED] wrote:
 
 Yes, I have the sample working. It just doesn't provide any links
 underneath each menu item. Actually, when you select an item from the
Yes, I should probably define more links in the example.

 dropdown menu, it pops up a new browser instead of navigating to another
 page on the same browser. So when I tried putting links in some of the
 items and changing the target to _self that's when I discovered the
 problem.
 
Hmm... I believe the target for the link will default to _self if you do
not specify one.

The dropdown menu is extremely minimal.  It does not work with many
browsers other than IE and Mozilla (and maybe Netscape 6).  If anything,
it was mostly intended as an example.  I plan to integrate a better
expanding menu library when I get the time and after I find one. 
Perhaps someone can recommend a good one that is free?

If you want to have the DropDown menu display expanded to some saved
position, you should be able to generate the appropriate javascript to
do so.  I forget if it is the tables or divs that are being hidden. 
Anyway, all that is happening is that when you click on one of the menu
controls, a style setting for display is set to true or false.  I'm not
looking at the example now so I may not be entirely accurate, but that's
essentially how it works.  You should be able to save some serverside
attribute that holds the name of the element to keep expanded.  Then you
just generate the javscript that sets the display attribute of that
element to true.  Of course, you will have to worry about going
through the menu recursively to find out what other sections of the menu
may need to be expanded as well.  But this should be feasible.

Does this help?

Scott Sayles

 I'll take a look at your example and see if that'll work for me. Thanks.
 
 Raffy
 
 
 
 
 
 Struts Newsgroup (@Basebeans.com) struts on 04/12/2002 10:25:01 AM
 
 Please respond to Struts Users Mailing List
   [EMAIL PROTECTED]
 
 To:   [EMAIL PROTECTED]
 cc:
 Subject:  Re: Struts-menu/dropdown
 
 
 Subject: Re: Struts-menu/dropdown
 From: Vic Cekvenich [EMAIL PROTECTED]
  ===
 You can download a working sample from BaseBeans.com/downloads. The site
 uses the Struts drop down menus.
 
 Can you get the sample drop down working that comes with the menu?
 
 Vic
 
 [EMAIL PROTECTED] wrote:
 
  TGIF
 
  Has anyone successfully used the DropDown in struts-menu? My problem
 with
  it is that the javascript generated by struts-menu does not preserve the
  state of the dropdown menu when I navigate to another page.
 
  For example
 
  1.  I have the menu
   File (expandable)
   View
 
  2.  I expand File to expose the subitems.
 
   File
new
open
close
   View
 
  3.  I click on new and this invokes an action which navigates to a new
  screen.
 
 
  The problem:
 
   The menu resets to
 
File
View
 
   Instead of retaining it at
 
File
 new
 open
 close
View
 
 
  I appreciate any suggestions,
 
  Raffy
  **
  Please Note:
  The information in this E-mail message, and any files transmitted
  with it, is confidential and may be legally privileged.  It is
  intended only for the use of the individual(s) named above.  If you
  are the intended recipient, be aware that your use of any confidential
  or personal information may be restricted by state and federal
  privacy laws.  If you, the reader of this message, are not the
  intended recipient, you are hereby notified that you should not
  further disseminate, distribute, or forward this E-mail message.
  If you have received this E-mail in error, please notify the sender
  and delete the material from any computer.  Thank you.
  **
 
 
 
 
  --
  To unsubscribe, e-mail:   
 mailto:[EMAIL PROTECTED]
  For additional commands, e-mail: 
 mailto:[EMAIL PROTECTED]
 
 
 
 --
 To unsubscribe, e-mail:   
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: 
 mailto:[EMAIL PROTECTED]
 
 
 
 
 
 
 **
 Please Note:
 The information in this E-mail message, and any files transmitted
 with it, is confidential and may be legally privileged.  It is
 intended only for the use of the individual(s) named above.  If you
 are the intended recipient, be aware that your use of any confidential
 or personal information may be restricted by state and federal
 privacy laws.  If you, the reader of this message, are not the
 intended recipient, you are hereby notified that you should not
 further disseminate, distribute, or forward this E-mail message.
 If you have received this E-mail in error, please notify the sender
 and delete the material from any computer.  Thank you

Re: Struts-menu/dropdown

2002-04-12 Thread @Basebeans.com

Subject: Re: Struts-menu/dropdown
From: Vic Cekvenich [EMAIL PROTECTED]
 ===
You can download a working sample from BaseBeans.com/downloads. The site 
uses the Struts drop down menus.

Can you get the sample drop down working that comes with the menu?

Vic

[EMAIL PROTECTED] wrote:

 TGIF
 
 Has anyone successfully used the DropDown in struts-menu? My problem with
 it is that the javascript generated by struts-menu does not preserve the
 state of the dropdown menu when I navigate to another page.
 
 For example
 
 1.  I have the menu
  File (expandable)
  View
 
 2.  I expand File to expose the subitems.
 
  File
   new
   open
   close
  View
 
 3.  I click on new and this invokes an action which navigates to a new
 screen.
 
 
 The problem:
 
  The menu resets to
 
   File
   View
 
  Instead of retaining it at
 
   File
new
open
close
   View
 
 
 I appreciate any suggestions,
 
 Raffy
 **
 Please Note:
 The information in this E-mail message, and any files transmitted
 with it, is confidential and may be legally privileged.  It is
 intended only for the use of the individual(s) named above.  If you
 are the intended recipient, be aware that your use of any confidential
 or personal information may be restricted by state and federal
 privacy laws.  If you, the reader of this message, are not the
 intended recipient, you are hereby notified that you should not
 further disseminate, distribute, or forward this E-mail message.
 If you have received this E-mail in error, please notify the sender
 and delete the material from any computer.  Thank you.
 **
 
 
 
 
 --
 To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: mailto:[EMAIL PROTECTED]
 


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




Re: Struts-menu/dropdown

2002-04-12 Thread Raffy_Lata


Yes, I have the sample working. It just doesn't provide any links
underneath each menu item. Actually, when you select an item from the
dropdown menu, it pops up a new browser instead of navigating to another
page on the same browser. So when I tried putting links in some of the
items and changing the target to _self that's when I discovered the
problem.

I'll take a look at your example and see if that'll work for me. Thanks.

Raffy





Struts Newsgroup (@Basebeans.com) struts on 04/12/2002 10:25:01 AM

Please respond to Struts Users Mailing List
  [EMAIL PROTECTED]

To:   [EMAIL PROTECTED]
cc:
Subject:  Re: Struts-menu/dropdown


Subject: Re: Struts-menu/dropdown
From: Vic Cekvenich [EMAIL PROTECTED]
 ===
You can download a working sample from BaseBeans.com/downloads. The site
uses the Struts drop down menus.

Can you get the sample drop down working that comes with the menu?

Vic

[EMAIL PROTECTED] wrote:

 TGIF

 Has anyone successfully used the DropDown in struts-menu? My problem
with
 it is that the javascript generated by struts-menu does not preserve the
 state of the dropdown menu when I navigate to another page.

 For example

 1.  I have the menu
  File (expandable)
  View

 2.  I expand File to expose the subitems.

  File
   new
   open
   close
  View

 3.  I click on new and this invokes an action which navigates to a new
 screen.


 The problem:

  The menu resets to

   File
   View

  Instead of retaining it at

   File
new
open
close
   View


 I appreciate any suggestions,

 Raffy
 **
 Please Note:
 The information in this E-mail message, and any files transmitted
 with it, is confidential and may be legally privileged.  It is
 intended only for the use of the individual(s) named above.  If you
 are the intended recipient, be aware that your use of any confidential
 or personal information may be restricted by state and federal
 privacy laws.  If you, the reader of this message, are not the
 intended recipient, you are hereby notified that you should not
 further disseminate, distribute, or forward this E-mail message.
 If you have received this E-mail in error, please notify the sender
 and delete the material from any computer.  Thank you.
 **




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



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






**
Please Note:
The information in this E-mail message, and any files transmitted
with it, is confidential and may be legally privileged.  It is
intended only for the use of the individual(s) named above.  If you
are the intended recipient, be aware that your use of any confidential
or personal information may be restricted by state and federal
privacy laws.  If you, the reader of this message, are not the
intended recipient, you are hereby notified that you should not
further disseminate, distribute, or forward this E-mail message.
If you have received this E-mail in error, please notify the sender
and delete the material from any computer.  Thank you.
**



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




Re: Struts menu

2002-04-10 Thread Scott Sayles

On Mon, 2002-04-08 at 08:12, Jon.Ridgway wrote: 
 Hi All,
 
 I was wondering if there are any plans add the following to the Struts menu:
 
 -Support for roles
I don't currently have plans to support roles.  However, I am working
out an implementation for generically supporting permission checking. 
This could easily be tied into checking roles as well.  I'll have to
think about it some more. 

 -Support for locales (might already be their can't see how to use however)
Localization is already supported.  However, it does not automatically
use the main MessageResources used in Struts apps (keyed by
Action.MESSAGES_KEY).  At this point, you need to pass the attribute key
of the MessageResources you want to use.  For example: 

menu:useMenuDisplayer 
 name=CoolMenus bundle=%=Action.MESSAGES_KEY% 

Check the example menu application. 

 -Support for struts-config forwards.
 
Sounds like a good idea.  I'll put it on the ToDo list. 



You can check out the latest version of StrutsMenu at: 

https://sourceforge.net/projects/struts-menu/

The latest release is 1.1beta.  The most significant changes are the
implementation of a Struts PlugIn and support for displaying CoolMenus3
dynamic menus. 

There will probably be some significant changes comming soon.  I may end
up skipping to a 2.0 release, but we'll see. 

I'm only working on this in my spare time, so please excuse the lack of
content on the sourceforge site. 

Scott Sayles 


 Jon Ridgway
 www.upco.co.uk
 
 
 -Original Message-
 From: Vaddiyar, Raghuramudu [mailto:[EMAIL PROTECTED]] 
 Sent: 08 April 2002 11:49
 To: 'Struts Users Mailing List'
 Subject: RE: conditional iterate (3)
 
 Better avoid array elements with same compname ...
 
 in otherwords create the array elements with unique compname ..avoid
 elements
 with same compname...
 
 -Original Message-
 From: Peter Cnops [mailto:[EMAIL PROTECTED]]
 Sent: Monday, April 08, 2002 12:00 PM
 To: [EMAIL PROTECTED]
 Subject: conditional iterate (3)
 
 
 Hi,
 
 I made a typo in my request (closing the bean tag), but thas is not the main
 problem.
 
 What I want to do is:
 1. iterate through some orderlines
 2. if 'compname' of this orderline is not equal to 'compname' of the
 previous orderline, write the compname, else do not.
 
 How do I realise this? Do I have to declare a variable?
 
 logic:iterate id=element name=orderlinebean type=com.test.Orderline
 logic:notEqual name=element property=compname value=--if the compname
 is the same as the previous line, don't write, else write the compname
   tr
  td width=23%nbsp;/td
  td width=18%bean:write name=element property=compname//td
  td width=59%bean:write name=element property=number//td
   /tr
 /logic:notEqual
 /logic:iterate
 
 
 Peter Cnops
 Project Management - MediaTower
 Digital Photography - PrePress - Digital Printing - Internet Services
 Veldkant 29, B-2550 Kontich
 Tel. 03 450 81 00 - Fax 03 450 81 09
 http://www.mediatower.be
 
 
 
 --
 To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 
 
 
 The content of this e-mail is intended only for the confidential use of the
 person addressed. If you have received this message in error, please notify
 us immediately by electronic mail, by telephone or by fax at the above num-
 bers.
 
 E-mail communications are not secure and therefore we do not accept any res-
 ponsibility for the confidentiality or altered contents of this message.
 
 Please be aware that SIS Group and its subsidiary companies cannot accept
 any orders or other legally binding correspondence with a participant as
 part of an E-mail. The views expressed above are not necessarily those held
 by SIS Group and its subsidiary companies and not binding for them.
 
 
 
 
 --
 To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 
 --
 To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: mailto:[EMAIL PROTECTED]
 


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




Re: Struts menu

2002-04-10 Thread David Morris

Scott,

What is the feasibility of pulling roles from something like Tomcat? 
On the surface, it would be better to check the tomcat_users and 
web.xml files and filter out pages that the user is unauthorized to. 
Does your menu do this or would it be useful to you?

David Morris

 [EMAIL PROTECTED] 04/10/02 11:51AM 
On Mon, 2002-04-08 at 08:12, Jon.Ridgway wrote: 
 Hi All,
 
 I was wondering if there are any plans add the following to the
Struts menu:
 
 -Support for roles
I don't currently have plans to support roles.  However, I am working
out an implementation for generically supporting permission checking. 
This could easily be tied into checking roles as well.  I'll have to
think about it some more. 

 -Support for locales (might already be their can't see how to use
however)
Localization is already supported.  However, it does not automatically
use the main MessageResources used in Struts apps (keyed by
Action.MESSAGES_KEY).  At this point, you need to pass the attribute
key
of the MessageResources you want to use.  For example: 

menu:useMenuDisplayer 
 name=CoolMenus bundle=%=Action.MESSAGES_KEY% 

Check the example menu application. 

 -Support for struts-config forwards.
 
Sounds like a good idea.  I'll put it on the ToDo list...


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




RE: Struts Menu Component

2002-04-02 Thread Bill Page

what is the struts menu component?

 -Original Message-
 From: Jon.Ridgway [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, April 02, 2002 8:01 AM
 To: '[EMAIL PROTECTED]'
 Subject: Struts Menu Component
 
 
 Hi All,
  
 Does any one know if there is an easy way to use a forward 
 with the Struts
 Menu component? I can only see the link attribute that takes 
 a url. If not
 can we consider adding a forward attribute?
  
 Jon.
 

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




RE: Struts Menu Component

2002-04-02 Thread Jon.Ridgway

Hi Bill,

Its an xml configurable struts 1.1 (and 1.0) plugin that can render menus.
Its included in the 1.1 beta (I think...).

Jon.

-Original Message-
From: Bill Page [mailto:[EMAIL PROTECTED]] 
Sent: 02 April 2002 15:06
To: Struts Users Mailing List
Subject: RE: Struts Menu Component

what is the struts menu component?

 -Original Message-
 From: Jon.Ridgway [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, April 02, 2002 8:01 AM
 To: '[EMAIL PROTECTED]'
 Subject: Struts Menu Component
 
 
 Hi All,
  
 Does any one know if there is an easy way to use a forward 
 with the Struts
 Menu component? I can only see the link attribute that takes 
 a url. If not
 can we consider adding a forward attribute?
  
 Jon.
 

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

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




RE: Struts Menu Component

2002-04-02 Thread Bill Page

thanks.  I looked through the 1.1 release notes but didn't see anything like
that.  I'll take another look
bp

 -Original Message-
 From: Jon.Ridgway [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, April 02, 2002 9:23 AM
 To: 'Struts Users Mailing List'
 Subject: RE: Struts Menu Component
 
 
 Hi Bill,
 
 Its an xml configurable struts 1.1 (and 1.0) plugin that can 
 render menus.
 Its included in the 1.1 beta (I think...).
 
 Jon.
 
 -Original Message-
 From: Bill Page [mailto:[EMAIL PROTECTED]] 
 Sent: 02 April 2002 15:06
 To: Struts Users Mailing List
 Subject: RE: Struts Menu Component
 
 what is the struts menu component?
 
  -Original Message-
  From: Jon.Ridgway [mailto:[EMAIL PROTECTED]]
  Sent: Tuesday, April 02, 2002 8:01 AM
  To: '[EMAIL PROTECTED]'
  Subject: Struts Menu Component
  
  
  Hi All,
   
  Does any one know if there is an easy way to use a forward 
  with the Struts
  Menu component? I can only see the link attribute that takes 
  a url. If not
  can we consider adding a forward attribute?
   
  Jon.
  
 
 --
 To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 
 --
 To unsubscribe, e-mail:   
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: 
 mailto:[EMAIL PROTECTED]
 

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




Subject: RE: Struts Menu Component

2002-04-02 Thread markj

 Subject: RE: Struts Menu Component
 From: Bill Page [EMAIL PROTECTED]
 Date: Tue, 2 Apr 2002 09:05:47 -0500
 To: Struts Users Mailing List [EMAIL PROTECTED]
 
 what is the struts menu component? 
 
Deploy struts-tiles.war (comes with struts 1.1-b1) and read the 
tutorial. 

HTH,
Mark


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




RE: struts-menu DTD/documentation?

2001-04-04 Thread Scott Sayles


 I'm trying to integrate your contribution, but it would be a lot
 easier with some documentation

See the README.  I don't have any other documentation for this yet.
However, feel free to send me your questions.

 even the dtd for the struts-menu.xml would help!

At this time, I don't have a DTD defined and don't know that I'll get to it
any time soon.  Perhaps you'd like to start one?


 P.S. This is a very cool addition to the struts project!

I appreciate that, however, I should clarify that this is *not* part of the
struts project.  Although, I am hoping that if it is found usefull enough it
will be added. ;)  At the least, I hope others will find it usefull (and say
so on the list!).

Just be aware that this menuing component is in it's early stages.  I'm open
to any ideas or suggestions.


Scott Sayles