How to change the namespace of the url in the location attribute?
Tiago Farias <[email protected]> Mon, 21 Feb 2011 18:25:01 -0300
| Newsgroups | gmane.comp.java.struts-menu.user |
|---|---|
| Message-ID | <[email protected]> |
--===============3090728775787658443== Content-Type: multipart/alternative; boundary=001636c5a8a819f80b049cd17f12 --001636c5a8a819f80b049cd17f12 Content-Type: text/plain; charset=ISO-8859-1 Hello! I have a menu with two items. The first one, say A, links to the action /fisco/Search. The second one links to the action /admin/console. These namespaces are important to protect the pages of the admin role. Admin users can access the /fisco namespace but a fisco user can't access the /admin namespace. The problem is that initially the namespace is set to /fisco (always).Then when I login with the admin and try to access the item B, struts tries to find the action 'console' inside the /fisco namespace. So it says there's no 'console' action mapped to this namespace /fisco. But that's because he is not changing the namespace that was set in the beggining! So he's always looking for actions inside /fisco. I'd like to know if there's a way to set the location attribute inside the Item tag in the menu-config.xml in a way I can set the namespace manually. Or any other suggestion would be very appreciated as well. =] Regards! --001636c5a8a819f80b049cd17f12 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hello!<br><br>I have a menu with two items. The first one, say A, links to = the action /fisco/Search. The second one links to the action /admin/console= . These namespaces are important to protect the pages of the admin role. Ad= min users can access the /fisco namespace but a fisco user can't access= the /admin namespace. The problem is that initially the namespace is set t= o /fisco (always).Then when I login with the admin and try to access the it= em B, struts tries to find the action 'console' inside the /fisco n= amespace. So it says there's no 'console' action mapped to this= namespace /fisco. But that's because he is not changing the namespace = that was set in the beggining! So he's always looking for actions insid= e /fisco. <br> I'd like to know if there's a way to set the location attribute ins= ide the Item tag in the menu-config.xml in a way I can set the namespace ma= nually. Or any other suggestion would be very appreciated as well. =3D]<br> <br>Regards! <br> --001636c5a8a819f80b049cd17f12-- --===============3090728775787658443== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ------------------------------------------------------------------------------ Index, Search & Analyze Logs and other IT data in Real-Time with Splunk Collect, index and harness all the fast moving IT data generated by your applications, servers and devices whether physical, virtual or in the cloud. Deliver compliance at lower cost and gain new business insights. Free Software Download: http://p.sf.net/sfu/splunk-dev2dev --===============3090728775787658443== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ struts-menu-user mailing list struts-menu-user-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org https://lists.sourceforge.net/lists/listinfo/struts-menu-user --===============3090728775787658443==--