RE: Struts-Menu (Support URL Re-writing)
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 and . > > 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 as > > well as from 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 > > > > > > > action="/personalDataLoad?expandedMenu=CsrAccountInformation"/> > > > > action="/closeAccountPageRouter?expandedMenu=CsrAccountInformation"/> > > > > > > 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: > > > > > 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 > > > > > > > > location="accountinfoview.do" > > > > > > location="personaldtd.do?expMenu=AcctInfo"/> > > > > > location="clsRouter.do?expMenu=AcctInfo"/> > > > > > > > > > I have changed it as below, is it the correct way of using > > action and > > > forward attributes in struts-menu. > > > > > > > > location="accountinfoview.do" > > > > > > action="personaldtd.do?expMenu=AcctInfo"/> > > > > > forward="clsRouter.do?expMenu=AcctInfo"/> > > > > > > > > > > > > > > > -Original Message- > > > From: Matt Raible [mailto:[EMAIL PROTECTED] >
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 and . 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 > as well as from 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 > > > action="/personalDataLoad?expandedMenu=CsrAccountInformation"/> > action="/closeAccountPageRouter?expandedMenu=CsrAccountInformation"/> > > > 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: > > 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 > > > > > location="accountinfoview.do" > > > > location="personaldtd.do?expMenu=AcctInfo"/> > > > location="clsRouter.do?expMenu=AcctInfo"/> > > > > > > I have changed it as below, is it the correct way of using > action and > > forward attributes in struts-menu. > > > > > location="accountinfoview.do" > > > > action="personaldtd.do?expMenu=AcctInfo"/> > > > forward="clsRouter.do?expMenu=AcctInfo"/> > > > > > > > > > > -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,
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 > as well as from 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 > > > action="/personalDataLoad?expandedMenu=CsrAccountInformation"/> > action="/closeAccountPageRouter?expandedMenu=CsrAccountInformation"/> > > > 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: > > 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 > > > > > location="accountinfoview.do" > > > > location="personaldtd.do?expMenu=AcctInfo"/> > > > location="clsRouter.do?expMenu=AcctInfo"/> > > > > > > I have changed it as below, is it the correct way of using > action and > > forward attributes in struts-menu. > > > > > location="accountinfoview.do" > > > > action="personaldtd.do?expMenu=AcctInfo"/> > > > forward="clsRouter.do?expMenu=AcctInfo"/> > > > > > > > > > > -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. > > > > Ma
RE: Struts-Menu (Support URL Re-writing)
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: > > 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 > > > > > location="accountinfoview.do" > > > > location="personaldtd.do?expMenu=AcctInfo"/> > > > location="clsRouter.do?expMenu=AcctInfo"/> > > > > > > I have changed it as below, is it the correct way of using > action and > > forward attributes in struts-menu. > > > > > location="accountinfoview.do" > > > > action="personaldtd.do?expMenu=AcctInfo"/> > > > forward="clsRouter.do?expMenu=AcctInfo"/> > > > > > > > > > > -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 > >
RE: Struts-Menu (Support URL Re-writing)
Hi If I change below location attribute to action attribute for as well as from 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 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: 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 > > location="accountinfoview.do" > > location="personaldtd.do?expMenu=AcctInfo"/> > location="clsRouter.do?expMenu=AcctInfo"/> > > > I have changed it as below, is it the correct way of using > action and forward attributes in struts-menu. > > location="accountinfoview.do" > > action="personaldtd.do?expMenu=AcctInfo"/> > forward="clsRouter.do?expMenu=AcctInfo"/> > > > > > -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)
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: > > 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 > > > > > location="accountinfoview.do" > > > > location="personaldtd.do?expMenu=AcctInfo"/> > > > location="clsRouter.do?expMenu=AcctInfo"/> > > > > > > I have changed it as below, is it the correct way of using > action and > > forward attributes in struts-menu. > > > > > location="accountinfoview.do" > > > > action="personaldtd.do?expMenu=AcctInfo"/> > > > forward="clsRouter.do?expMenu=AcctInfo"/> > > > > > > > > > > -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 >
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: 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 > > location="accountinfoview.do" > > location="personaldtd.do?expMenu=AcctInfo"/> > location="clsRouter.do?expMenu=AcctInfo"/> > > > I have changed it as below, is it the correct way of using > action and forward attributes in struts-menu. > > location="accountinfoview.do" > > action="personaldtd.do?expMenu=AcctInfo"/> > forward="clsRouter.do?expMenu=AcctInfo"/> > > > > > -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)
Change the "location" attribute to a "action" attribute, where the value of "action" matches the "path" of your action mapping. For example: 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 > > location="accountinfoview.do" > > location="personaldtd.do?expMenu=AcctInfo"/> > location="clsRouter.do?expMenu=AcctInfo"/> > > > I have changed it as below, is it the correct way of using > action and forward attributes in struts-menu. > > location="accountinfoview.do" > > action="personaldtd.do?expMenu=AcctInfo"/> > forward="clsRouter.do?expMenu=AcctInfo"/> > > > > > -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)
Hi I am having previous implementation of struts-menu as below I have changed it as below, is it the correct way of using action and forward attributes in struts-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)
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. 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 (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]
RE: Struts-Menu (Support URL Re-writing)
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)
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)
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)
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]
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: URL Re-writing?
On Wed, 4 Jul 2001, David White wrote: > I am new to struts/jsp/etc. > > I understand that the struts framework can automatically handle session > management via URL re-writing if the user's browser does not permit > cookies to be used. > > The funny thing is that sometimes, my browser shows a jsessionid value > in the address box and other times it does not. I would expect that I > would ONLY see this value if my browser had cookie support disabled and > that all other times, I would see nothing as cookie support is enabled > and URL re-writing is not required. > > What I actually see is that sometimes I do not see the value displayed > and other times I will see it. Even when cookies are enabled, I may > still see this value. > > I am puzzled. Any help is appreciated. > The first time that you make a request that is part of a session, the servlet container has no clue about whether or not the client supports cookies. Therefore, it sends the session ID *both* ways (as a cookie and as an encoded URL). Then, when the next request comes in, the container can look at whether the cookie is present and say either: - "Aha, this client supports cookies. Therefore I don't need to encode URLs any more -- we'll just use cookies." - "Aha', this client doesn't support cookies. Therefore, I will continue to use URL rewriting." The key issue is that the container has no idea which scenario will occur until the *second* request. Therefore, the only rational strategy is to send the session identifier both ways the first time, and see which one comes back. > Thanks, > > David > Seattle > Craig McClanahan
Re: URL Re-writing?
David White typed the following on 11:10 AM 7/4/2001 -0700 >What I actually see is that sometimes I do not see the value displayed >and other times I will see it. Even when cookies are enabled, I may >still see this value. On the first request to a web application, your browser will not have a cookie to send to the server. The server has no way of knowing whether your browser is accepting cookies, so URL's are rewritten in addition to sending the cookie. On subsequent requests the server gets the cookie so knows it doesn't need to rewrite the URLs. Kief
URL Re-writing?
I am new to struts/jsp/etc. I understand that the struts framework can automatically handle session management via URL re-writing if the user's browser does not permit cookies to be used. The funny thing is that sometimes, my browser shows a jsessionid value in the address box and other times it does not. I would expect that I would ONLY see this value if my browser had cookie support disabled and that all other times, I would see nothing as cookie support is enabled and URL re-writing is not required. What I actually see is that sometimes I do not see the value displayed and other times I will see it. Even when cookies are enabled, I may still see this value. I am puzzled. Any help is appreciated. Thanks, David Seattle