Re: How to change the namespace of the url in the location attribute?
Matt Raible <matt-T7vlz3gD7BdF/EzeuO4KJwC/[email protected]> Fri, 25 Feb 2011 15:45:47 -0700
| Newsgroups | gmane.comp.java.struts-menu.user |
|---|---|
| Message-ID | <[email protected]> |
--===============2067102016765614118== Content-Type: multipart/alternative; boundary=001636c5a2587e387f049d231800 --001636c5a2587e387f049d231800 Content-Type: text/plain; charset=UTF-8 As far as I know, Struts Menu does not support what you're looking for. However, it does support JSTL expressions in location values, so you could try setting a variable and then reading it that way. On Mon, Feb 21, 2011 at 2:25 PM, Tiago Farias <[email protected]> wrote: > 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! > > > ------------------------------------------------------------------------------ > 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 > _______________________________________________ > struts-menu-user mailing list > struts-menu-user-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org > https://lists.sourceforge.net/lists/listinfo/struts-menu-user > > --001636c5a2587e387f049d231800 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable As far as I know, Struts Menu does not support what you're looking for.= However, it does support JSTL expressions in location values, so you could= try setting a variable and then reading it that way.<br><br><div class=3D"= gmail_quote"> On Mon, Feb 21, 2011 at 2:25 PM, Tiago Farias <span dir=3D"ltr"><<a href= =3D"mailto:[email protected]">[email protected]</a>></span> wrote:<br>= <blockquote class=3D"gmail_quote" style=3D"margin: 0pt 0pt 0pt 0.8ex; borde= r-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"> 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> <br>-----------------------------------------------------------------------= -------<br> Index, Search & Analyze Logs and other IT data in Real-Time with Splunk= <br> Collect, index and harness all the fast moving IT data generated by your<br= > applications, servers and devices whether physical, virtual or in the cloud= .<br> Deliver compliance at lower cost and gain new business insights.<br> Free Software Download: <a href=3D"http://p.sf.net/sfu/splunk-dev2dev" targ= et=3D"_blank">http://p.sf.net/sfu/splunk-dev2dev</a><br>___________________= ____________________________<br> struts-menu-user mailing list<br> <a href=3D"mailto:struts-menu-user-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org">struts-menu-user@= lists.sourceforge.net</a><br> <a href=3D"https://lists.sourceforge.net/lists/listinfo/struts-menu-user" t= arget=3D"_blank">https://lists.sourceforge.net/lists/listinfo/struts-menu-u= ser</a><br> <br></blockquote></div><br> --001636c5a2587e387f049d231800-- --===============2067102016765614118== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ------------------------------------------------------------------------------ Free Software Download: 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. http://p.sf.net/sfu/splunk-dev2dev --===============2067102016765614118== 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 --===============2067102016765614118==--