|
|
|
nadragon
|
Oops, sorry. I forgot to change the subject..
I am working on atleap which was created on top of appfuse.
And I tried to use Oracle instead of the default database. When I ran db-load in order to insert those sample data, I got the following error messages. C:\Source\atleap\build.xml:1565: org.dbunit.database.AmbiguousTableNameException: APP_USER It is wierd, because atleap doesn't use APP_USER table. Is there a way that I can insert the data manually? The tricky thing is that the sample data includes some binary values, such as the following,
<![CDATA[PHA+SGVyZSB5b3UgY2FuIGJhY2t1cC9yZXN0b3JlJm5ic3A7YWxsIGRhdGEgb2YgdGhlIHN5c3Rl
bSAodGV4dHMsIHJlc291cmNlcywgdXNlcnMsIHJvbGVzIGFuZCBzbyBvbikgc3RvcmVkIGluIHRo ZSBkYXRhYmFzZS4gWW91IGNhbiBiYWNrdXAgZGF0YWJhc2Ugc25hcHNob3QgaW50byBhcmNoaXZl IG1hbnVhbGx5IGJ5IHB1c2hpbmcgJnF1b3Q7QmFja3VwJnF1b3Q7IGJ1dHRvbi4gT24gdGhlIG90 aGVyIGhhbmQgeW91IGNhbiByZXN0b3JlIHRoZSBkYXRhIGZyb20gYXJjaGl2ZSBpbnRvIGRhdGFi YXNlIGJ5IHR3byB3YXlzOjwvcD4NCjx1bD4NCiAgICA8bGk+cmVzdG9yZSBkYXRhIGZyb20gaW5p dGlhbCBhcmNoaXZlIHByb3ZpZGVkIGJ5IHRoZSBzdXBwbGllciBvZiB0aGUgc3lzdGVtOyA8L2xp Pg0KICAgIDxsaT5yZXN0b3JlIGRhdGEgZnJvbSBhcmNoaXZlIHRhZ2dlZCB3aXRoIHNvbWUgZGF0 ZS4gPC9saT4NCjwvdWw+DQo8cD5CYWNrdXBzIGFyZSBzdG9yZWQgaW4gZGJiYWNrdXAgZGlyZWN0 b3J5LiBBcHBsaWNhdGlvbiBzaG91bGQgaGF2ZSBhY2Nlc3MgdG8gdGhpcyBkaXJlY3RvcnkgdG8g YmFja3VwL3Jlc3RvcmUgZGF0YWJhc2UuPC9wPg0KPHA+QnkgZGVmYXVsdCB0aGUgc3lzdGVtIGlz IGNvbmZpZ3VyZWQgdG8gYXV0b21hdGljYWxseSBiYWNrdXAgZGFpbHkuIFVzZSB0aGlzJm5ic3A7 ZmFjaWxpdHkgb25seSBpbiBjYXNlIHlvdSBjYW5ub3QgdXNlIGJhY2t1cCB0b29sIG9mIHlvdXIg REJNUy48L3A+DQo8cD5DQVVUSU9OISBSZXN0b3JpbmcgZGF0YSBmcm9tIGFyY2hpdmUgeW91IHdp bGwgbG9zZSBjdXJyZW50IHN0YXRlIG9mIHRoZSBzeXN0ZW0uIFdlIHJlY29tbWVuZCB0byB5b3Ug YmFja3VwIGRhdGEgYmVmb3JlIHJlc3RvcmUgb25lLjwvcD4=]]> Is there anyone who successfully inserted the sample data into Oracle database? Thank you in advance! |
|||||||||||||||||||
|
Matt Raible-3
|
You probably need to add a "schema" attribute to the dbunit task in
the db-load target. Matt On 8/8/06, misun chung <[hidden email]> wrote: > > Oops, sorry. I forgot to change the subject.. > > > > I am working on atleap which was created on top of appfuse. > And I tried to use Oracle instead of the default database. > > When I ran db-load in order to insert those sample data, I got the following > error messages. > > C:\Source\atleap\build.xml:1565: > org.dbunit.database.AmbiguousTableNameException: APP_USER > > It is wierd, because atleap doesn't use APP_USER table. > Is there a way that I can insert the data manually? > The tricky thing is that the sample data includes some binary values, such > as the following, > > <![CDATA[PHA+SGVyZSB5b3UgY2FuIGJhY2t1cC9yZXN0b3JlJm5ic3A7YWxsIGRhdGEgb2YgdGhlIHN5c3Rl > bSAodGV4dHMsIHJlc291cmNlcywgdXNlcnMsIHJvbGVzIGFuZCBzbyBvbikgc3RvcmVkIGluIHRo > ZSBkYXRhYmFzZS4gWW91IGNhbiBiYWNrdXAgZGF0YWJhc2Ugc25hcHNob3QgaW50byBhcmNoaXZl > IG1hbnVhbGx5IGJ5IHB1c2hpbmcgJnF1b3Q7QmFja3VwJnF1b3Q7IGJ1dHRvbi4gT24gdGhlIG90 > aGVyIGhhbmQgeW91IGNhbiByZXN0b3JlIHRoZSBkYXRhIGZyb20gYXJjaGl2ZSBpbnRvIGRhdGFi > YXNlIGJ5IHR3byB3YXlzOjwvcD4NCjx1bD4NCiAgICA8bGk+cmVzdG9yZSBkYXRhIGZyb20gaW5p > dGlhbCBhcmNoaXZlIHByb3ZpZGVkIGJ5IHRoZSBzdXBwbGllciBvZiB0aGUgc3lzdGVtOyA8L2xp > Pg0KICAgIDxsaT5yZXN0b3JlIGRhdGEgZnJvbSBhcmNoaXZlIHRhZ2dlZCB3aXRoIHNvbWUgZGF0 > ZS4gPC9saT4NCjwvdWw+DQo8cD5CYWNrdXBzIGFyZSBzdG9yZWQgaW4gZGJiYWNrdXAgZGlyZWN0 > b3J5LiBBcHBsaWNhdGlvbiBzaG91bGQgaGF2ZSBhY2Nlc3MgdG8gdGhpcyBkaXJlY3RvcnkgdG8g > YmFja3VwL3Jlc3RvcmUgZGF0YWJhc2UuPC9wPg0KPHA+QnkgZGVmYXVsdCB0aGUgc3lzdGVtIGlz > IGNvbmZpZ3VyZWQgdG8gYXV0b21hdGljYWxseSBiYWNrdXAgZGFpbHkuIFVzZSB0aGlzJm5ic3A7 > ZmFjaWxpdHkgb25seSBpbiBjYXNlIHlvdSBjYW5ub3QgdXNlIGJhY2t1cCB0b29sIG9mIHlvdXIg > REJNUy48L3A+DQo8cD5DQVVUSU9OISBSZXN0b3JpbmcgZGF0YSBmcm9tIGFyY2hpdmUgeW91IHdp > bGwgbG9zZSBjdXJyZW50IHN0YXRlIG9mIHRoZSBzeXN0ZW0uIFdlIHJlY29tbWVuZCB0byB5b3Ug > YmFja3VwIGRhdGEgYmVmb3JlIHJlc3RvcmUgb25lLjwvcD4=]]> > > > > > > Is there anyone who successfully inserted the sample data into Oracle > database? > > Thank you in advance! --------------------------------------------------------------------- To unsubscribe, e-mail: [hidden email] For additional commands, e-mail: [hidden email] |
||||
|
nadragon
|
Matt,
I added the schema value, but at this time, the error is the following.
C:\Source\atleap\build.xml:1583: org.dbunit.dataset.NoSuchTableException : al_testimonials_testimonialIt complains that there is no such table, but it is..
I created the tables manually, because I don't have oracle-create.sql.
And one more question is that when I deployed the atleap on Tomcat 5.0 and started the tomcat, it tries to create the tables. How can I remove the step?
Thanks again.
On 8/8/06, Matt Raible <[hidden email]> wrote:
You probably need to add a "schema" attribute to the dbunit task in |
|||||||||||||||||||
|
Matt Raible-3
|
You might be better off asking these questions on the atleap mailing list. ;-)
Matt On 8/8/06, misun chung <[hidden email]> wrote: > > Matt, > > I added the schema value, but at this time, the error is the following. > > > C:\Source\atleap\build.xml:1583: > org.dbunit.dataset.NoSuchTableException: > al_testimonials_testimonial > It complains that there is no such table, but it is.. > I created the tables manually, because I don't have oracle-create.sql. > > > And one more question is that when I deployed the atleap on Tomcat 5.0 and > started the tomcat, it tries to create the tables. How can I remove the > step? > > Thanks again. > > > > On 8/8/06, Matt Raible <[hidden email]> wrote: > > > You probably need to add a "schema" attribute to the dbunit task in > the db-load target. > > Matt > > On 8/8/06, misun chung <[hidden email]> wrote: > > > > Oops, sorry. I forgot to change the subject.. > > > > > > > > I am working on atleap which was created on top of appfuse. > > And I tried to use Oracle instead of the default database. > > > > When I ran db-load in order to insert those sample data, I got the > following > > error messages. > > > > C:\Source\atleap\build.xml:1565: > > org.dbunit.database.AmbiguousTableNameException: APP_USER > > > > It is wierd, because atleap doesn't use APP_USER table. > > Is there a way that I can insert the data manually? > > The tricky thing is that the sample data includes some binary values, such > > as the following, > > > > > <![CDATA[PHA+SGVyZSB5b3UgY2FuIGJhY2t1cC9yZXN0b3JlJm5ic3A7YWxsIGRhdGEgb2YgdGhlIHN5c3Rl > > > bSAodGV4dHMsIHJlc291cmNlcywgdXNlcnMsIHJvbGVzIGFuZCBzbyBvbikgc3RvcmVkIGluIHRo > > > ZSBkYXRhYmFzZS4gWW91IGNhbiBiYWNrdXAgZGF0YWJhc2Ugc25hcHNob3QgaW50byBhcmNoaXZl > > > IG1hbnVhbGx5IGJ5IHB1c2hpbmcgJnF1b3Q7QmFja3VwJnF1b3Q7IGJ1dHRvbi4gT24gdGhlIG90 > > > aGVyIGhhbmQgeW91IGNhbiByZXN0b3JlIHRoZSBkYXRhIGZyb20gYXJjaGl2ZSBpbnRvIGRhdGFi > > > YXNlIGJ5IHR3byB3YXlzOjwvcD4NCjx1bD4NCiAgICA8bGk+cmVzdG9yZSBkYXRhIGZyb20gaW5p > > > dGlhbCBhcmNoaXZlIHByb3ZpZGVkIGJ5IHRoZSBzdXBwbGllciBvZiB0aGUgc3lzdGVtOyA8L2xp > > > Pg0KICAgIDxsaT5yZXN0b3JlIGRhdGEgZnJvbSBhcmNoaXZlIHRhZ2dlZCB3aXRoIHNvbWUgZGF0 > > > ZS4gPC9saT4NCjwvdWw+DQo8cD5CYWNrdXBzIGFyZSBzdG9yZWQgaW4gZGJiYWNrdXAgZGlyZWN0 > > > b3J5LiBBcHBsaWNhdGlvbiBzaG91bGQgaGF2ZSBhY2Nlc3MgdG8gdGhpcyBkaXJlY3RvcnkgdG8g > > > YmFja3VwL3Jlc3RvcmUgZGF0YWJhc2UuPC9wPg0KPHA+QnkgZGVmYXVsdCB0aGUgc3lzdGVtIGlz > > > IGNvbmZpZ3VyZWQgdG8gYXV0b21hdGljYWxseSBiYWNrdXAgZGFpbHkuIFVzZSB0aGlzJm5ic3A7 > > > ZmFjaWxpdHkgb25seSBpbiBjYXNlIHlvdSBjYW5ub3QgdXNlIGJhY2t1cCB0b29sIG9mIHlvdXIg > > > REJNUy48L3A+DQo8cD5DQVVUSU9OISBSZXN0b3JpbmcgZGF0YSBmcm9tIGFyY2hpdmUgeW91IHdp > > > bGwgbG9zZSBjdXJyZW50IHN0YXRlIG9mIHRoZSBzeXN0ZW0uIFdlIHJlY29tbWVuZCB0byB5b3Ug > > YmFja3VwIGRhdGEgYmVmb3JlIHJlc3RvcmUgb25lLjwvcD4=]]> > > > > > > > > > > > > Is there anyone who successfully inserted the sample data into Oracle > > database? > > > > Thank you in advance! > > --------------------------------------------------------------------- > To unsubscribe, e-mail: > [hidden email] > For additional commands, e-mail: [hidden email] > > > --------------------------------------------------------------------- To unsubscribe, e-mail: [hidden email] For additional commands, e-mail: [hidden email] |
|||||||||||||||||||
|
Pankaj-2
|
In reply to this post
by Matt Raible-3
Hi,
I am using appfuse 1.9.3 with struts/spring. I have created a new menu in the top menu and added some items in it. But I want to limit access for a particular item to only admins. So, I added roles="admin" in the code as following: <Menu name="CicosopMenu" title="menu.cicosop" description="S.O.P Menu" width="100" forward="xyz" roles="admin,user"> <Item name="SopDocuments" title="menu.editCicosopDoc" forward="editableCicosopDoc" roles="admin"/> </Menu> The problem I am having now is that it works fine the first time I login in as admin and shows the link. It also works fine if I logout and sign with a non-admin user (i.e. it doesn't show the link). But now if I login again it doesn't show the link anymore. If I restart the tomcat server, it follows the same steps. Could anyone help me with this problem or suggest some other way to limit the access in top menu. Thanks, Pankaj __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com --------------------------------------------------------------------- To unsubscribe, e-mail: [hidden email] For additional commands, e-mail: [hidden email] |
|||||||||||||||||||
|
Matt Raible-3
|
Can you try replacing your Struts Menu JAR with the following:
http://static.appfuse.org/downloads/struts-menu-2.4.2.jar Thanks, Matt On 8/8/06, pankaj singla <[hidden email]> wrote: > Hi, > > I am using appfuse 1.9.3 with struts/spring. I have > created a new menu in the top menu and added some > items in it. But I want to limit access for a > particular item to only admins. So, I added > roles="admin" in the code as following: > > <Menu name="CicosopMenu" title="menu.cicosop" > description="S.O.P Menu" width="100" forward="xyz" > roles="admin,user"> > <Item name="SopDocuments" title="menu.editCicosopDoc" > forward="editableCicosopDoc" roles="admin"/> > </Menu> > > The problem I am having now is that it works fine the > first time I login in as admin and shows the link. It > also works fine if I logout and sign with a non-admin > user (i.e. it doesn't show the link). But now if I > login again it doesn't show the link anymore. If I > restart the tomcat server, it follows the same steps. > > Could anyone help me with this problem or suggest > some other way to limit the access in top menu. > > Thanks, > > Pankaj > > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam protection around > http://mail.yahoo.com > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [hidden email] > For additional commands, e-mail: [hidden email] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [hidden email] For additional commands, e-mail: [hidden email] |
|||||||||||||||||||
|
Pankaj-2
|
I replaced struts-menu-2.4.1.jar with
struts-menu-2.4.2.jar by copying this jar in the lib directory and updating lib.properties. But it still is behaving the same way i.e. I cannot see the link once I login in as 'user' and then login as 'admin'. Any other suggestions.... Thanks, Pankaj --- Matt Raible <[hidden email]> wrote: > Can you try replacing your Struts Menu JAR with the > following: > > http://static.appfuse.org/downloads/struts-menu-2.4.2.jar > > Thanks, > > Matt > > On 8/8/06, pankaj singla <[hidden email]> > wrote: > > Hi, > > > > I am using appfuse 1.9.3 with struts/spring. I > have > > created a new menu in the top menu and added some > > items in it. But I want to limit access for a > > particular item to only admins. So, I added > > roles="admin" in the code as following: > > > > <Menu name="CicosopMenu" title="menu.cicosop" > > description="S.O.P Menu" width="100" forward="xyz" > > roles="admin,user"> > > <Item name="SopDocuments" > title="menu.editCicosopDoc" > > forward="editableCicosopDoc" roles="admin"/> > > </Menu> > > > > The problem I am having now is that it works fine > the > > first time I login in as admin and shows the link. > It > > also works fine if I logout and sign with a > non-admin > > user (i.e. it doesn't show the link). But now if I > > login again it doesn't show the link anymore. If I > > restart the tomcat server, it follows the same > steps. > > > > Could anyone help me with this problem or > suggest > > some other way to limit the access in top menu. > > > > Thanks, > > > > Pankaj > > > > __________________________________________________ > > Do You Yahoo!? > > Tired of spam? Yahoo! Mail has the best spam > protection around > > http://mail.yahoo.com > > > > > > > To unsubscribe, e-mail: > [hidden email] > > For additional commands, e-mail: > [hidden email] > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: > [hidden email] > For additional commands, e-mail: > [hidden email] > > __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com --------------------------------------------------------------------- To unsubscribe, e-mail: [hidden email] For additional commands, e-mail: [hidden email] |
|||||||||||||||||||
|
Matt Raible-3
|
Sounds like a bug in Struts Menu. I thought I fixed this, but
apparently not. Can you send me your menu-config.xml and steps to reproduce? Thanks, Matt On 8/8/06, pankaj singla <[hidden email]> wrote: > I replaced struts-menu-2.4.1.jar with > struts-menu-2.4.2.jar by copying this jar in the lib > directory and updating lib.properties. But it still is > behaving the same way i.e. I cannot see the link once > I login in as 'user' and then login as 'admin'. > Any other suggestions.... > > Thanks, > Pankaj > > > > --- Matt Raible <[hidden email]> wrote: > > > Can you try replacing your Struts Menu JAR with the > > following: > > > > > http://static.appfuse.org/downloads/struts-menu-2.4.2.jar > > > > Thanks, > > > > Matt > > > > On 8/8/06, pankaj singla <[hidden email]> > > wrote: > > > Hi, > > > > > > I am using appfuse 1.9.3 with struts/spring. I > > have > > > created a new menu in the top menu and added some > > > items in it. But I want to limit access for a > > > particular item to only admins. So, I added > > > roles="admin" in the code as following: > > > > > > <Menu name="CicosopMenu" title="menu.cicosop" > > > description="S.O.P Menu" width="100" forward="xyz" > > > roles="admin,user"> > > > <Item name="SopDocuments" > > title="menu.editCicosopDoc" > > > forward="editableCicosopDoc" roles="admin"/> > > > </Menu> > > > > > > The problem I am having now is that it works fine > > the > > > first time I login in as admin and shows the link. > > It > > > also works fine if I logout and sign with a > > non-admin > > > user (i.e. it doesn't show the link). But now if I > > > login again it doesn't show the link anymore. If I > > > restart the tomcat server, it follows the same > > steps. > > > > > > Could anyone help me with this problem or > > suggest > > > some other way to limit the access in top menu. > > > > > > Thanks, > > > > > > Pankaj > > > > > > __________________________________________________ > > > Do You Yahoo!? > > > Tired of spam? Yahoo! Mail has the best spam > > protection around > > > http://mail.yahoo.com > > > > > > > > > --------------------------------------------------------------------- > > > To unsubscribe, e-mail: > > [hidden email] > > > For additional commands, e-mail: > > [hidden email] > > > > > > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: > > [hidden email] > > For additional commands, e-mail: > > [hidden email] > > > > > > > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam protection around > http://mail.yahoo.com > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [hidden email] > For additional commands, e-mail: [hidden email] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [hidden email] For additional commands, e-mail: [hidden email] |
|||||||||||||||||||
|
Pankaj-2
|
Hi Matt,
I am attaching my menu-config.xml. All I did is add a new menu called "CicosopMenu" and in one of the item tags "EditSopDocuments" added roles="admin". Now it works fine if I login as admin and shows all the links; logout and log back in as 'user' (hides the link with tag EditSopDocuments). But when I login as admin again, the link with tag EditSopDocuments is not shown. If I restart my server, then the same process follows. Thanks for your help and time. Pankaj --- Matt Raible <[hidden email]> wrote: > Sounds like a bug in Struts Menu. I thought I fixed > this, but > apparently not. Can you send me your > menu-config.xml and steps to > reproduce? > > Thanks, > > Matt > > On 8/8/06, pankaj singla <[hidden email]> > wrote: > > I replaced struts-menu-2.4.1.jar with > > struts-menu-2.4.2.jar by copying this jar in the > lib > > directory and updating lib.properties. But it > still is > > behaving the same way i.e. I cannot see the link > once > > I login in as 'user' and then login as 'admin'. > > Any other suggestions.... > > > > Thanks, > > Pankaj > > > > > > > > --- Matt Raible <[hidden email]> wrote: > > > > > Can you try replacing your Struts Menu JAR with > the > > > following: > > > > > > > > > > > > > > > Thanks, > > > > > > Matt > > > > > > On 8/8/06, pankaj singla <[hidden email]> > > > wrote: > > > > Hi, > > > > > > > > I am using appfuse 1.9.3 with > struts/spring. I > > > have > > > > created a new menu in the top menu and added > some > > > > items in it. But I want to limit access for a > > > > particular item to only admins. So, I added > > > > roles="admin" in the code as following: > > > > > > > > <Menu name="CicosopMenu" title="menu.cicosop" > > > > description="S.O.P Menu" width="100" > forward="xyz" > > > > roles="admin,user"> > > > > <Item name="SopDocuments" > > > title="menu.editCicosopDoc" > > > > forward="editableCicosopDoc" roles="admin"/> > > > > </Menu> > > > > > > > > The problem I am having now is that it works > fine > > > the > > > > first time I login in as admin and shows the > link. > > > It > > > > also works fine if I logout and sign with a > > > non-admin > > > > user (i.e. it doesn't show the link). But now > if I > > > > login again it doesn't show the link anymore. > If I > > > > restart the tomcat server, it follows the same > > > steps. > > > > > > > > Could anyone help me with this problem or > > > suggest > > > > some other way to limit the access in top > menu. > > > > > > > > Thanks, > > > > > > > > Pankaj > > > > > > > > > __________________________________________________ > > > > Do You Yahoo!? > > > > Tired of spam? Yahoo! Mail has the best spam > > > protection around > > > > http://mail.yahoo.com > > > > > > > > > > > > > > > > > > To unsubscribe, e-mail: > > > [hidden email] > > > > For additional commands, e-mail: > > > [hidden email] > > > > > > > > > > > > > > > > > > > > To unsubscribe, e-mail: > > > [hidden email] > > > For additional commands, e-mail: > > > [hidden email] > > > > > > > > > > > > __________________________________________________ > > Do You Yahoo!? > > Tired of spam? Yahoo! Mail has the best spam > protection around > > http://mail.yahoo.com > > > > > > > To unsubscribe, e-mail: > [hidden email] > > For additional commands, e-mail: > [hidden email] > > > > > > > To unsubscribe, e-mail: > [hidden email] > For additional commands, e-mail: > [hidden email] > > __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com <?xml version="1.0" encoding="UTF-8"?> <MenuConfig> <Displayers> <Displayer name="Velocity" type="net.sf.navigator.displayer.VelocityMenuDisplayer"/> </Displayers> <Menus> <Menu name="MainMenu" title="mainMenu.title" page="/mainMenu.html"/> <Menu name="UserMenu" title="menu.user" description="User Menu" forward="editProfile" roles="admin,user"/> <Menu name="FileUpload" title="menu.selectFile" description="File Upload" width="100" forward="selectFile" roles="admin,user"/> <Menu name="CicosopMenu" title="menu.cicosop" description="S.O.P Menu" width="100" forward="viewableCicosopDoc" roles="admin,user"> <Item name="EditSopDocuments" title="menu.editCicosopDoc" forward="editableCicosopDoc" roles="admin"/> <Item name="ViewSopDocuments" title="menu.viewCicosopDoc" forward="viewableCicosopDoc"/> <Item name="SearchSop" title="menu.searchSopDoc" page="/searchSopDoc.html"/> </Menu> <Menu name="AdminMenu" title="menu.admin" description="Admin Menu" roles="admin" width="120" forward="viewUsers"> <Item name="ViewUsers" title="menu.admin.users" forward="viewUsers"/> <Item name="ActiveUsers" title="mainMenu.activeUsers" action="activeUsers"/> <Item name="ReloadContext" title="menu.admin.reload" action="reload"/> <Item name="FlushCache" title="menu.flushCache" action="flush"/> <Item name="Clickstream" title="menu.clickstream" page="/clickstreams.jsp"/> </Menu> <Menu name="Logout" title="user.logout" page="/logout.jsp" roles="admin,user"/> </Menus> </MenuConfig> --------------------------------------------------------------------- To unsubscribe, e-mail: [hidden email] For additional commands, e-mail: [hidden email] |
|||||||||||||||||||
|
Matt Raible-3
|
This is definitely a bug - unfortunately, I can't seem to solve it.
http://issues.appfuse.org/browse/SM-58 Matt On 8/8/06, pankaj singla <[hidden email]> wrote: > Hi Matt, > > I am attaching my menu-config.xml. > All I did is add a new menu called "CicosopMenu" > and in one of the item tags "EditSopDocuments" added > roles="admin". > Now it works fine if I login as admin and shows > all the links; logout and log back in as 'user' (hides > the link with tag EditSopDocuments). But when I login > as admin again, the link with tag EditSopDocuments is > not shown. If I restart my server, then the same > process follows. > > Thanks for your help and time. > > Pankaj > > --- Matt Raible <[hidden email]> wrote: > > > Sounds like a bug in Struts Menu. I thought I fixed > > this, but > > apparently not. Can you send me your > > menu-config.xml and steps to > > reproduce? > > > > Thanks, > > > > Matt > > > > On 8/8/06, pankaj singla <[hidden email]> > > wrote: > > > I replaced struts-menu-2.4.1.jar with > > > struts-menu-2.4.2.jar by copying this jar in the > > lib > > > directory and updating lib.properties. But it > > still is > > > behaving the same way i.e. I cannot see the link > > once > > > I login in as 'user' and then login as 'admin'. > > > Any other suggestions.... > > > > > > Thanks, > > > Pankaj > > > > > > > > > > > > --- Matt Raible <[hidden email]> wrote: > > > > > > > Can you try replacing your Struts Menu JAR with > > the > > > > following: > > > > > > > > > > > > > > http://static.appfuse.org/downloads/struts-menu-2.4.2.jar > > > > > > > > Thanks, > > > > > > > > Matt > > > > > > > > On 8/8/06, pankaj singla <[hidden email]> > > > > wrote: > > > > > Hi, > > > > > > > > > > I am using appfuse 1.9.3 with > > struts/spring. I > > > > have > > > > > created a new menu in the top menu and added > > some > > > > > items in it. But I want to limit access for a > > > > > particular item to only admins. So, I added > > > > > roles="admin" in the code as following: > > > > > > > > > > <Menu name="CicosopMenu" title="menu.cicosop" > > > > > description="S.O.P Menu" width="100" > > forward="xyz" > > > > > roles="admin,user"> > > > > > <Item name="SopDocuments" > > > > title="menu.editCicosopDoc" > > > > > forward="editableCicosopDoc" roles="admin"/> > > > > > </Menu> > > > > > > > > > > The problem I am having now is that it works > > fine > > > > the > > > > > first time I login in as admin and shows the > > link. > > > > It > > > > > also works fine if I logout and sign with a > > > > non-admin > > > > > user (i.e. it doesn't show the link). But now > > if I > > > > > login again it doesn't show the link anymore. > > If I > > > > > restart the tomcat server, it follows the same > > > > steps. > > > > > > > > > > Could anyone help me with this problem or > > > > suggest > > > > > some other way to limit the access in top > > menu. > > > > > > > > > > Thanks, > > > > > > > > > > Pankaj > > > > > > > > > > > > __________________________________________________ > > > > > Do You Yahoo!? > > > > > Tired of spam? Yahoo! Mail has the best spam > > > > protection around > > > > > http://mail.yahoo.com > > > > > > > > > > > > > > > > > > > > --------------------------------------------------------------------- > > > > > To unsubscribe, e-mail: > > > > [hidden email] > > > > > For additional commands, e-mail: > > > > [hidden email] > > > > > > > > > > > > > > > > > > > > > > > > --------------------------------------------------------------------- > > > > To unsubscribe, e-mail: > > > > [hidden email] > > > > For additional commands, e-mail: > > > > [hidden email] > > > > > > > > > > > > > > > > > __________________________________________________ > > > Do You Yahoo!? > > > Tired of spam? Yahoo! Mail has the best spam > > protection around > > > http://mail.yahoo.com > > > > > > > > > --------------------------------------------------------------------- > > > To unsubscribe, e-mail: > > [hidden email] > > > For additional commands, e-mail: > > [hidden email] > > > > > > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: > > [hidden email] > > For additional commands, e-mail: > > [hidden email] > > > > > > > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam protection around > http://mail.yahoo.com > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [hidden email] > For additional commands, e-mail: [hidden email] > > > --------------------------------------------------------------------- To unsubscribe, e-mail: [hidden email] For additional commands, e-mail: [hidden email] |
|||||||||||||||||||
| Free Embeddable Forum Powered by Nabble | Help |