Re: Struts 2 dynamic menu issue
Jayaram Gokulan <karamvan-/[email protected]> Thu, 2 Apr 2009 07:00:15 -0700 (PDT)
| Newsgroups | gmane.comp.java.struts-menu.user |
|---|---|
| Message-ID | <[email protected]> |
--===============6080449004413252712== Content-Type: multipart/alternative; boundary="0-775444858-1238680815=:1374" --0-775444858-1238680815=:1374 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Thanks a ton for your reply Matt. I do not get the error now, but it is red= irecting to some other page, while i work on that. =A0 Can you please guide me on how i can fetch my menu items from database inst= ead of menu-config.xml =A0 thanks, Gokul --- On Wed, 4/1/09, Matt Raible <matt-T7vlz3gD7BdF/EzeuO4KJwC/[email protected]> wrote: From: Matt Raible <matt-T7vlz3gD7BdF/EzeuO4KJwC/[email protected]> Subject: Re: [struts-menu] Struts 2 dynamic menu issue To: "General mailing list for Struts Menu" <[email protected]= rge.net> Date: Wednesday, April 1, 2009, 11:47 PM Instead of registering it in your Spring applicationContext, I'd try using = the MenuContextListener in your web.xml: =A0=A0 =A0<listener> =A0=A0 =A0 =A0 =A0<listener-class>net.sf.navigator.menu.MenuContextListener= </listener-class> =A0=A0 =A0</listener> If that doesn't work, look for errors on startup - you might be missing som= e required JARs. Matt On Wed, Apr 1, 2009 at 10:39 PM, Jayaram Gokulan <karamvan-/[email protected]> wrote= : Hi, I use Struts2, Spring and hibernate in my project wanted to integrate Strut= s menu, the dynamic roles from oracle db. I followed the link =A0 http://demo.raibledesigns.com/struts-menu/dynamicMenu.jsp =A0I copy pasted the code snippet into an action =A0 importjava.util.Map;=20 importjavax.servlet.jsp.jstl.sql.Result;=20 importnet.sf.navigator.menu.MenuComponent;=20 importnet.sf.navigator.menu.MenuRepository;=20 publicclass MenuBuilderAction extends BaseAction {=20 /**=20 *=20 */=20 private static final long serialVersionUID =3D 1L;=20 MenuRepository=20 repository =3D new MenuRepository();=20 // Get the repository from the application scope - and copy the=20 // DisplayerMappings from it.=20 MenuRepository defaultRepository =3D (MenuRepository) getSession()=20 .getAttribute(MenuRepository.MENU_REPOSITORY_KEY);=20 //repository.setDisplayers(defaultRepository.getDisplayers());=20 Result=20 result =3D (Result) getSession().getAttribute("menus");=20 Map[]=20 rows =3D result.getRows();{=20 for (int i =3D 0; i < rows.length; i++) {=20 MenuComponent mc =3D new MenuComponent();=20 Map row =3D rows[i];=20 String name =3D (String) row.get("name");=20 mc.setName(name);=20 String parent =3D (String) row.get( "parent_name");=20 System.out.println(name + ", parent is: " + parent);=20 if (parent !=3D null) {=20 MenuComponent parentMenu =3D repository.getMenu(parent);=20 if (parentMenu =3D=3D null) {=20 System.out.println("parentMenu '" + parent=20 + "' doesn't exist!");=20 // create a temporary parentMenu=20 parentMenu =3D new MenuComponent();=20 parentMenu.setName(parent);=20 repository.addMenu(parentMenu);=20 }=20 mc.setParent(parentMenu);=20 }=20 String title =3D (String) row.get( "title");=20 mc.setTitle(title);=20 String location =3D (String) row.get( "location");=20 mc.setLocation(location);=20 repository.addMenu(mc);=20 }=20 getSession().setAttribute( "repository", repository);=20 }=20 } =A0 My menu-config.xml =A0 <?xml version=3D"1.0" encoding=3D"UTF-8"?>=20 <MenuConfig>=20 <Displayers>=20 <Displayer name=3D"Velocity" type=3D"net.sf.navigator.displayer.VelocityMen= uDisplayer"/>=20 </Displayers>=20 <Menus>=20 <Menu name=3D"MainMenu" title=3D"mainMenu.title" page=3D"/mainMenu.html" ro= les=3D"ROLE_ADMIN,ROLE_USER"/>=20 </Menu>=20 </Menus>=20 </MenuConfig>=20 =A0=20 ApplicationConfig.xml=20 <bean id=3D"menu" class=3D"net.sf.navigator.menu.MenuLoader">=20 <property name=3D"menuConfig">=20 <value>/WEB-INF/menu-config.xml</value>=20 </property>=20 </bean>=20 =A0 When i run my jsp i get =A0 javax.servlet.jsp.JspException: The menu repository could not be found.=20 =A0 Kindly help thanks, Gokul =A0 ---------------------------------------------------------------------------= --- _______________________________________________ struts-menu-user mailing list struts-menu-user-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org https://lists.sourceforge.net/lists/listinfo/struts-menu-user -----Inline Attachment Follows----- ---------------------------------------------------------------------------= --- -----Inline Attachment Follows----- _______________________________________________ struts-menu-user mailing list struts-menu-user-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org https://lists.sourceforge.net/lists/listinfo/struts-menu-user =0A=0A=0A --0-775444858-1238680815=:1374 Content-Type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable <table cellspacing=3D"0" cellpadding=3D"0" border=3D"0" ><tr><td valign=3D"= top" style=3D"font: inherit;"><DIV>Thanks a ton for your reply Matt. I do n= ot get the error now, but it is redirecting to some other page, while i wor= k on that.</DIV> <DIV> </DIV> <DIV>Can you please guide me on how i can fetch my menu items from database= instead of menu-config.xml</DIV> <DIV> </DIV> <DIV>thanks,</DIV> <DIV>Gokul<BR><BR>--- On <B>Wed, 4/1/09, Matt Raible <I><matt@raibledesi= gns.com></I></B> wrote:<BR></DIV> <BLOCKQUOTE style=3D"PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: rgb(= 16,16,255) 2px solid"><BR>From: Matt Raible <matt-T7vlz3gD7BdF/EzeuO4KJwC/[email protected]><= BR>Subject: Re: [struts-menu] Struts 2 dynamic menu issue<BR>To: "General m= ailing list for Struts Menu" <struts-menu-user-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org>= <BR>Date: Wednesday, April 1, 2009, 11:47 PM<BR><BR> <DIV id=3Dyiv1199443305>Instead of registering it in your Spring applicatio= nContext, I'd try using the MenuContextListener in your web.xml: <DIV><BR></DIV> <DIV> <DIV> <listener></DIV> <DIV> <listener-class>net.sf.navigato= r.menu.MenuContextListener</listener-class></DIV> <DIV> </listener></DIV> <DIV><BR></DIV> <DIV>If that doesn't work, look for errors on startup - you might be missin= g some required JARs.</DIV> <DIV><BR></DIV> <DIV>Matt</DIV><BR> <DIV class=3Dgmail_quote>On Wed, Apr 1, 2009 at 10:39 PM, Jayaram Gokulan <= SPAN dir=3Dltr><<A href=3D"http://us.mc348.mail.yahoo.com/mc/compose?to= =3Dkaramvan-/[email protected]" target=3D_blank rel=3Dnofollow ymailto=3D"mailto:kar= amvan-/[email protected]">karamvan-/[email protected]</A>></SPAN> wrote:<BR> <BLOCKQUOTE class=3Dgmail_quote style=3D"PADDING-LEFT: 1ex; MARGIN: 0px 0px= 0px 0.8ex; BORDER-LEFT: #ccc 1px solid"> <TABLE cellSpacing=3D0 cellPadding=3D0 border=3D0> <TBODY> <TR> <TD vAlign=3Dtop> <DIV>Hi,</DIV> <DIV>I use Struts2, Spring and hibernate in my project wanted to integrate = Struts menu, the dynamic roles from oracle db. I followed the link</DIV> <DIV> </DIV> <DIV><A href=3D"http://demo.raibledesigns.com/struts-menu/dynamicMenu.jsp" = target=3D_blank rel=3Dnofollow>http://demo.raibledesigns.com/struts-menu/dy= namicMenu.jsp</A></DIV> <DIV> I copy pasted the code snippet into an action</DIV> <DIV> </DIV><B><FONT color=3D#7f0055 size=3D2><FONT color=3D#7f0055 si= ze=3D2> <P align=3Dleft>import</DIV></FONT></FONT></B><FONT size=3D2>java.util.Map;= =20 <P align=3Dleft></DIV></FONT><B><FONT color=3D#7f0055 size=3D2><FONT color= =3D#7f0055 size=3D2> <P align=3Dleft>import</DIV></FONT></FONT></B><FONT size=3D2>javax.servlet.= jsp.jstl.sql.Result;=20 <P align=3Dleft></DIV></FONT><B><FONT color=3D#7f0055 size=3D2><FONT color= =3D#7f0055 size=3D2> <P align=3Dleft>import</DIV></FONT></FONT></B><FONT size=3D2>net.sf.navigat= or.menu.MenuComponent;</FONT><B><FONT color=3D#7f0055 size=3D2><FONT color= =3D#7f0055 size=3D2>=20 <P align=3Dleft>import</DIV></FONT></FONT></B><FONT size=3D2>net.sf.navigat= or.menu.MenuRepository;=20 <P align=3Dleft></DIV></FONT><B><FONT color=3D#7f0055 size=3D2><FONT color= =3D#7f0055 size=3D2> <P align=3Dleft>public</DIV></FONT></FONT></B><FONT size=3D2></FONT><B><FON= T color=3D#7f0055 size=3D2><FONT color=3D#7f0055 size=3D2>class</FONT></FON= T></B><FONT size=3D2> MenuBuilderAction </FONT><B><FONT color=3D#7f0055 siz= e=3D2><FONT color=3D#7f0055 size=3D2>extends</FONT></FONT></B><FONT size=3D= 2> BaseAction {=20 <P align=3Dleft></DIV> <P align=3Dleft></DIV> <DIV></DIV></FONT><FONT color=3D#3f5fbf size=3D2><FONT color=3D#3f5fbf size= =3D2>/**</FONT></FONT><FONT size=3D2>=20 <P align=3Dleft></DIV></FONT><FONT color=3D#3f5fbf size=3D2><FONT color=3D#= 3f5fbf size=3D2>*</FONT></FONT><FONT size=3D2>=20 <P align=3Dleft></DIV></FONT><FONT color=3D#3f5fbf size=3D2><FONT color=3D#= 3f5fbf size=3D2>*/</FONT></FONT><FONT size=3D2>=20 <P align=3Dleft></DIV></FONT><B><FONT color=3D#7f0055 size=3D2><FONT color= =3D#7f0055 size=3D2>private</FONT></FONT></B><FONT size=3D2> </FONT><B><FON= T color=3D#7f0055 size=3D2><FONT color=3D#7f0055 size=3D2>static</FONT></FO= NT></B><FONT size=3D2> </FONT><B><FONT color=3D#7f0055 size=3D2><FONT color= =3D#7f0055 size=3D2>final</FONT></FONT></B><FONT size=3D2> </FONT><B><FONT = color=3D#7f0055 size=3D2><FONT color=3D#7f0055 size=3D2>long</FONT></FONT><= /B><FONT size=3D2> </FONT><I><FONT color=3D#0000c0 size=3D2><FONT color=3D#= 0000c0 size=3D2>serialVersionUID</FONT></FONT></I><FONT size=3D2> =3D 1L;= =20 <P align=3Dleft></DIV> <P align=3Dleft>MenuRepository </DIV> <DIV></DIV></FONT><FONT color=3D#0000c0 size=3D2><FONT color=3D#0000c0 size= =3D2>repository</FONT></FONT><FONT size=3D2> =3D </FONT><B><FONT color=3D#7= f0055 size=3D2><FONT color=3D#7f0055 size=3D2>new</FONT></FONT></B><FONT si= ze=3D2> MenuRepository();=20 <P align=3Dleft></DIV> <P align=3Dleft></DIV> <DIV></DIV></FONT><FONT color=3D#3f7f5f size=3D2><FONT color=3D#3f7f5f size= =3D2>// Get the repository from the application scope - and copy the</FONT>= </FONT><FONT size=3D2>=20 <P align=3Dleft></DIV></FONT><FONT color=3D#3f7f5f size=3D2><FONT color=3D#= 3f7f5f size=3D2>// DisplayerMappings from it.</FONT></FONT><FONT size=3D2>= =20 <P align=3Dleft>MenuRepository </DIV></FONT><FONT color=3D#0000c0 size=3D2>= <FONT color=3D#0000c0 size=3D2>defaultRepository</FONT></FONT><FONT size=3D= 2> =3D (MenuRepository) getSession()=20 <P align=3Dleft>.getAttribute(MenuRepository.</DIV></FONT><I><FONT color=3D= #0000c0 size=3D2><FONT color=3D#0000c0 size=3D2>MENU_REPOSITORY_KEY</FONT><= /FONT></I><FONT size=3D2>);=20 <P align=3Dleft></DIV> <P align=3Dleft></DIV> <DIV></DIV></FONT><FONT color=3D#3f7f5f size=3D2><FONT color=3D#3f7f5f size= =3D2>//repository.setDisplayers(defaultRepository.getDisplayers());</FONT><= /FONT><FONT size=3D2>=20 <P align=3Dleft></DIV> <P align=3Dleft>Result </DIV> <DIV></DIV></FONT><FONT color=3D#0000c0 size=3D2><FONT color=3D#0000c0 size= =3D2>result</FONT></FONT><FONT size=3D2> =3D (Result) getSession().getAttri= bute(</FONT><FONT color=3D#2a00ff size=3D2><FONT color=3D#2a00ff size=3D2>"= menus"</FONT></FONT><FONT size=3D2>);=20 <P align=3Dleft></DIV> <P align=3Dleft>Map[] </DIV> <DIV></DIV></FONT><FONT color=3D#0000c0 size=3D2><FONT color=3D#0000c0 size= =3D2>rows</FONT></FONT><FONT size=3D2> =3D </FONT><FONT color=3D#0000c0 siz= e=3D2><FONT color=3D#0000c0 size=3D2>result</FONT></FONT><FONT size=3D2>.ge= tRows();{=20 <P align=3Dleft></DIV> <P align=3Dleft></DIV> <DIV></DIV></FONT><B><FONT color=3D#7f0055 size=3D2><FONT color=3D#7f0055 s= ize=3D2>for</FONT></FONT></B><FONT size=3D2> (</FONT><B><FONT color=3D#7f00= 55 size=3D2><FONT color=3D#7f0055 size=3D2>int</FONT></FONT></B><FONT size= =3D2> i =3D 0; i < </FONT><FONT color=3D#0000c0 size=3D2><FONT color=3D#= 0000c0 size=3D2>rows</FONT></FONT><FONT size=3D2>.</FONT><FONT color=3D#000= 0c0 size=3D2><FONT color=3D#0000c0 size=3D2>length</FONT></FONT><FONT size= =3D2>; i++) {=20 <P align=3Dleft>MenuComponent mc =3D </DIV></FONT><B><FONT color=3D#7f0055 = size=3D2><FONT color=3D#7f0055 size=3D2>new</FONT></FONT></B><FONT size=3D2= > MenuComponent();=20 <P align=3Dleft>Map row =3D </DIV></FONT><FONT color=3D#0000c0 size=3D2><FO= NT color=3D#0000c0 size=3D2>rows</FONT></FONT><FONT size=3D2>[i];=20 <P align=3Dleft>String name =3D (String) row.get(</DIV></FONT><FONT color= =3D#2a00ff size=3D2><FONT color=3D#2a00ff size=3D2>"name"</FONT></FONT><FON= T size=3D2>);=20 <P align=3Dleft>mc.setName(name); </DIV> <P align=3Dleft>String parent =3D (String) row.get(</DIV> <DIV></DIV></FONT><FONT color=3D#2a00ff size=3D2><FONT color=3D#2a00ff size= =3D2>"parent_name"</FONT></FONT><FONT size=3D2>);=20 <P align=3Dleft>System.</DIV></FONT><I><FONT color=3D#0000c0 size=3D2><FONT= color=3D#0000c0 size=3D2>out</FONT></FONT></I><FONT size=3D2>.println(name= + </FONT><FONT color=3D#2a00ff size=3D2><FONT color=3D#2a00ff size=3D2>", = parent is: "</FONT></FONT><FONT size=3D2> + parent);=20 <P align=3Dleft></DIV></FONT><B><FONT color=3D#7f0055 size=3D2><FONT color= =3D#7f0055 size=3D2>if</FONT></FONT></B><FONT size=3D2> (parent !=3D </FONT= ><B><FONT color=3D#7f0055 size=3D2><FONT color=3D#7f0055 size=3D2>null</FON= T></FONT></B><FONT size=3D2>) {=20 <P align=3Dleft>MenuComponent parentMenu =3D </DIV></FONT><FONT color=3D#00= 00c0 size=3D2><FONT color=3D#0000c0 size=3D2>repository</FONT></FONT><FONT = size=3D2>.getMenu(parent);=20 <P align=3Dleft></DIV></FONT><B><FONT color=3D#7f0055 size=3D2><FONT color= =3D#7f0055 size=3D2>if</FONT></FONT></B><FONT size=3D2> (parentMenu =3D=3D = </FONT><B><FONT color=3D#7f0055 size=3D2><FONT color=3D#7f0055 size=3D2>nul= l</FONT></FONT></B><FONT size=3D2>) {=20 <P align=3Dleft>System.</DIV></FONT><I><FONT color=3D#0000c0 size=3D2><FONT= color=3D#0000c0 size=3D2>out</FONT></FONT></I><FONT size=3D2>.println(</FO= NT><FONT color=3D#2a00ff size=3D2><FONT color=3D#2a00ff size=3D2>"parentMen= u '"</FONT></FONT><FONT size=3D2> + parent=20 <P align=3Dleft>+ </DIV></FONT><FONT color=3D#2a00ff size=3D2><FONT color= =3D#2a00ff size=3D2>"' doesn't exist!"</FONT></FONT><FONT size=3D2>);=20 <P align=3Dleft></DIV></FONT><FONT color=3D#3f7f5f size=3D2><FONT color=3D#= 3f7f5f size=3D2>// create a temporary parentMenu</FONT></FONT><FONT size=3D= 2>=20 <P align=3Dleft>parentMenu =3D </DIV></FONT><B><FONT color=3D#7f0055 size= =3D2><FONT color=3D#7f0055 size=3D2>new</FONT></FONT></B><FONT size=3D2> Me= nuComponent();=20 <P align=3Dleft>parentMenu.setName(parent); </DIV> <P align=3Dleft></DIV> <DIV></DIV></FONT><FONT color=3D#0000c0 size=3D2><FONT color=3D#0000c0 size= =3D2>repository</FONT></FONT><FONT size=3D2>.addMenu(parentMenu);=20 <P align=3Dleft>} </DIV> <P align=3Dleft></DIV> <P align=3Dleft>mc.setParent(parentMenu); </DIV> <P align=3Dleft>} </DIV> <P align=3Dleft>String title =3D (String) row.get(</DIV> <DIV></DIV> <DIV></DIV> <DIV></DIV> <DIV></DIV></FONT><FONT color=3D#2a00ff size=3D2><FONT color=3D#2a00ff size= =3D2>"title"</FONT></FONT><FONT size=3D2>);=20 <P align=3Dleft>mc.setTitle(title); </DIV> <P align=3Dleft>String location =3D (String) row.get(</DIV> <DIV></DIV></FONT><FONT color=3D#2a00ff size=3D2><FONT color=3D#2a00ff size= =3D2>"location"</FONT></FONT><FONT size=3D2>);=20 <P align=3Dleft>mc.setLocation(location); </DIV> <P align=3Dleft></DIV> <DIV></DIV></FONT><FONT color=3D#0000c0 size=3D2><FONT color=3D#0000c0 size= =3D2>repository</FONT></FONT><FONT size=3D2>.addMenu(mc);=20 <P align=3Dleft>} </DIV> <P align=3Dleft>getSession().setAttribute(</DIV> <DIV></DIV></FONT><FONT color=3D#2a00ff size=3D2><FONT color=3D#2a00ff size= =3D2>"repository"</FONT></FONT><FONT size=3D2>, </FONT><FONT color=3D#0000c= 0 size=3D2><FONT color=3D#0000c0 size=3D2>repository</FONT></FONT><FONT siz= e=3D2>);=20 <P align=3Dleft>} </DIV> <P align=3Dleft>}</DIV> <DIV></DIV></FONT> <DIV> </DIV> <DIV><STRONG>My menu-config.xml</STRONG></DIV> <DIV> </DIV><FONT color=3D#008080 size=3D2><FONT color=3D#008080 size= =3D2> <P align=3Dleft><?</DIV></FONT></FONT><FONT color=3D#3f7f7f size=3D2><FO= NT color=3D#3f7f7f size=3D2>xml </FONT></FONT><FONT color=3D#7f007f size=3D= 2><FONT color=3D#7f007f size=3D2>version</FONT></FONT><FONT size=3D2>=3D</F= ONT><FONT color=3D#2a00ff size=3D2><FONT color=3D#2a00ff size=3D2>"1.0" </F= ONT></FONT><FONT color=3D#7f007f size=3D2><FONT color=3D#7f007f size=3D2>en= coding</FONT></FONT><FONT size=3D2>=3D</FONT><FONT color=3D#2a00ff size=3D2= ><FONT color=3D#2a00ff size=3D2>"UTF-8"</FONT></FONT><FONT color=3D#008080 = size=3D2><FONT color=3D#008080 size=3D2>?>=20 <P align=3Dleft><</DIV></FONT></FONT><FONT color=3D#3f7f7f size=3D2><FON= T color=3D#3f7f7f size=3D2>MenuConfig</FONT></FONT><FONT color=3D#008080 si= ze=3D2><FONT color=3D#008080 size=3D2>></FONT></FONT><FONT size=3D2>=20 <P align=3Dleft></DIV></FONT><FONT color=3D#008080 size=3D2><FONT color=3D#= 008080 size=3D2><</FONT></FONT><FONT color=3D#3f7f7f size=3D2><FONT colo= r=3D#3f7f7f size=3D2>Displayers</FONT></FONT><FONT color=3D#008080 size=3D2= ><FONT color=3D#008080 size=3D2>></FONT></FONT><FONT size=3D2>=20 <P align=3Dleft></DIV></FONT><FONT color=3D#008080 size=3D2><FONT color=3D#= 008080 size=3D2><</FONT></FONT><FONT color=3D#3f7f7f size=3D2><FONT colo= r=3D#3f7f7f size=3D2>Displayer </FONT></FONT><FONT color=3D#7f007f size=3D2= ><FONT color=3D#7f007f size=3D2>name</FONT></FONT><FONT size=3D2>=3D</FONT>= <FONT color=3D#2a00ff size=3D2><FONT color=3D#2a00ff size=3D2>"Velocity" </= FONT></FONT><FONT color=3D#7f007f size=3D2><FONT color=3D#7f007f size=3D2>t= ype</FONT></FONT><FONT size=3D2>=3D</FONT><FONT color=3D#2a00ff size=3D2><F= ONT color=3D#2a00ff size=3D2>"net.sf.navigator.displayer.VelocityMenuDispla= yer"</FONT></FONT><FONT color=3D#008080 size=3D2><FONT color=3D#008080 size= =3D2>/></FONT></FONT><FONT size=3D2>=20 <P align=3Dleft></DIV></FONT><FONT color=3D#008080 size=3D2><FONT color=3D#= 008080 size=3D2></</FONT></FONT><FONT color=3D#3f7f7f size=3D2><FONT col= or=3D#3f7f7f size=3D2>Displayers</FONT></FONT><FONT color=3D#008080 size=3D= 2><FONT color=3D#008080 size=3D2>></FONT></FONT><FONT size=3D2>=20 <P align=3Dleft></DIV></FONT><FONT color=3D#008080 size=3D2><FONT color=3D#= 008080 size=3D2><</FONT></FONT><FONT color=3D#3f7f7f size=3D2><FONT colo= r=3D#3f7f7f size=3D2>Menus</FONT></FONT><FONT color=3D#008080 size=3D2><FON= T color=3D#008080 size=3D2>></FONT></FONT><FONT size=3D2>=20 <P align=3Dleft></DIV></FONT><FONT color=3D#008080 size=3D2><FONT color=3D#= 008080 size=3D2><</FONT></FONT><FONT color=3D#3f7f7f size=3D2><FONT colo= r=3D#3f7f7f size=3D2>Menu </FONT></FONT><FONT color=3D#7f007f size=3D2><FON= T color=3D#7f007f size=3D2>name</FONT></FONT><FONT size=3D2>=3D</FONT><FONT= color=3D#2a00ff size=3D2><FONT color=3D#2a00ff size=3D2>"MainMenu" </FONT>= </FONT><FONT color=3D#7f007f size=3D2><FONT color=3D#7f007f size=3D2>title<= /FONT></FONT><FONT size=3D2>=3D</FONT><FONT color=3D#2a00ff size=3D2><FONT = color=3D#2a00ff size=3D2>"mainMenu.title" </FONT></FONT><FONT color=3D#7f00= 7f size=3D2><FONT color=3D#7f007f size=3D2>page</FONT></FONT><FONT size=3D2= >=3D</FONT><FONT color=3D#2a00ff size=3D2><FONT color=3D#2a00ff size=3D2>"/= mainMenu.html" </FONT></FONT><FONT color=3D#7f007f size=3D2><FONT color=3D#= 7f007f size=3D2>roles</FONT></FONT><FONT size=3D2>=3D</FONT><FONT color=3D#= 2a00ff size=3D2><FONT color=3D#2a00ff size=3D2>"ROLE_ADMIN,ROLE_USER"</FONT= ></FONT><FONT color=3D#008080 size=3D2><FONT color=3D#008080 size=3D2>/>= </FONT></FONT><FONT size=3D2>=20 <P align=3Dleft></DIV> <P align=3Dleft></DIV> <DIV></DIV></FONT><FONT color=3D#008080 size=3D2><FONT color=3D#008080 size= =3D2></</FONT></FONT><FONT color=3D#3f7f7f size=3D2><FONT color=3D#3f7f7= f size=3D2>Menu</FONT></FONT><FONT color=3D#008080 size=3D2><FONT color=3D#= 008080 size=3D2>></FONT></FONT><FONT size=3D2>=20 <P align=3Dleft></DIV></FONT><FONT color=3D#008080 size=3D2><FONT color=3D#= 008080 size=3D2></</FONT></FONT><FONT color=3D#3f7f7f size=3D2><FONT col= or=3D#3f7f7f size=3D2>Menus</FONT></FONT><FONT color=3D#008080 size=3D2><FO= NT color=3D#008080 size=3D2>>=20 <P align=3Dleft></</DIV></FONT></FONT><FONT color=3D#3f7f7f size=3D2><FO= NT color=3D#3f7f7f size=3D2>MenuConfig</FONT></FONT><FONT color=3D#008080 s= ize=3D2><FONT color=3D#008080 size=3D2>></FONT></FONT>=20 <P align=3Dleft><FONT color=3D#008080 size=3D2><FONT color=3D#008080 size= =3D2></FONT></FONT> </DIV> <P align=3Dleft><FONT color=3D#008080 size=3D2><FONT color=3D#008080 size= =3D2><STRONG>ApplicationConfig.xml</STRONG></FONT></FONT><FONT color=3D#008= 080 size=3D2><FONT color=3D#008080 size=3D2><FONT color=3D#008080 size=3D2>= <FONT color=3D#008080 size=3D2> </FONT></FONT></FONT></FONT></DIV><FONT col= or=3D#008080 size=3D2><FONT color=3D#008080 size=3D2><FONT color=3D#008080 = size=3D2><FONT color=3D#008080 size=3D2> <P align=3Dleft><</DIV></FONT></FONT><FONT color=3D#3f7f7f size=3D2><FON= T color=3D#3f7f7f size=3D2>bean </FONT></FONT><FONT color=3D#7f007f size=3D= 2><FONT color=3D#7f007f size=3D2>id</FONT></FONT><FONT color=3D#000000 size= =3D2>=3D</FONT><FONT color=3D#2a00ff size=3D2><FONT color=3D#2a00ff size=3D= 2>"menu" </FONT></FONT><FONT color=3D#7f007f size=3D2><FONT color=3D#7f007f= size=3D2>class</FONT></FONT><FONT color=3D#000000 size=3D2>=3D</FONT><FONT= color=3D#2a00ff size=3D2><FONT color=3D#2a00ff size=3D2>"net.sf.navigator.= menu.MenuLoader"</FONT></FONT><FONT color=3D#008080 size=3D2><FONT color=3D= #008080 size=3D2>></FONT></FONT><FONT size=3D2>=20 <P align=3Dleft></DIV></FONT><FONT color=3D#008080 size=3D2><FONT color=3D#= 008080 size=3D2><</FONT></FONT><FONT color=3D#3f7f7f size=3D2><FONT colo= r=3D#3f7f7f size=3D2>property </FONT></FONT><FONT color=3D#7f007f size=3D2>= <FONT color=3D#7f007f size=3D2>name</FONT></FONT><FONT size=3D2>=3D</FONT><= FONT color=3D#2a00ff size=3D2><FONT color=3D#2a00ff size=3D2>"menuConfig"</= FONT></FONT><FONT color=3D#008080 size=3D2><FONT color=3D#008080 size=3D2>&= gt;</FONT></FONT><FONT size=3D2>=20 <P align=3Dleft></DIV></FONT><FONT color=3D#008080 size=3D2><FONT color=3D#= 008080 size=3D2><</FONT></FONT><FONT color=3D#3f7f7f size=3D2><FONT colo= r=3D#3f7f7f size=3D2>value</FONT></FONT><FONT color=3D#008080 size=3D2><FON= T color=3D#008080 size=3D2>></FONT></FONT><FONT size=3D2>/WEB-INF/menu-c= onfig.xml</FONT><FONT color=3D#008080 size=3D2><FONT color=3D#008080 size= =3D2></</FONT></FONT><FONT color=3D#3f7f7f size=3D2><FONT color=3D#3f7f7= f size=3D2>value</FONT></FONT><FONT color=3D#008080 size=3D2><FONT color=3D= #008080 size=3D2>></FONT></FONT><FONT size=3D2>=20 <P align=3Dleft></DIV></FONT><FONT color=3D#008080 size=3D2><FONT color=3D#= 008080 size=3D2></</FONT></FONT><FONT color=3D#3f7f7f size=3D2><FONT col= or=3D#3f7f7f size=3D2>property</FONT></FONT><FONT color=3D#008080 size=3D2>= <FONT color=3D#008080 size=3D2>>=20 <DIV></</DIV></FONT></FONT><FONT color=3D#3f7f7f size=3D2><FONT color=3D= #3f7f7f size=3D2>bean</FONT></FONT><FONT color=3D#008080 size=3D2><FONT col= or=3D#008080 size=3D2>></FONT></FONT>=20 <DIV><FONT color=3D#008080 size=3D2><FONT color=3D#008080 size=3D2></FONT><= /FONT> </DIV> <DIV><FONT color=3D#008080 size=3D2><FONT color=3D#008080 size=3D2>When i r= un my jsp i get</FONT></FONT></DIV> <DIV><FONT color=3D#008080 size=3D2><FONT color=3D#008080 size=3D2></FONT><= /FONT> </DIV> <DIV><FONT color=3D#008080 size=3D2><FONT color=3D#008080 size=3D2>javax.se= rvlet.jsp.JspException: The menu repository could not be found. </FONT></FO= NT></DIV> <DIV><FONT color=3D#008080 size=3D2><FONT color=3D#008080 size=3D2></FONT><= /FONT> </DIV> <DIV><FONT color=3D#008080 size=3D2><FONT color=3D#008080 size=3D2>Kindly h= elp</FONT></FONT></DIV> <DIV><FONT color=3D#008080 size=3D2><FONT color=3D#008080 size=3D2>thanks,<= /FONT></FONT></DIV> <DIV><FONT color=3D#008080 size=3D2><FONT color=3D#008080 size=3D2>Gokul</F= ONT></FONT></DIV></FONT></FONT> <P align=3Dleft><FONT color=3D#008080 size=3D2><FONT color=3D#008080 size= =3D2> </FONT></FONT></DIV> <DIV></DIV> <DIV></DIV></TD></TR></TBODY></TABLE><BR><BR>------------------------------= ------------------------------------------------<BR><BR>___________________= ____________________________<BR>struts-menu-user mailing list<BR><A href=3D= "http://us.mc348.mail.yahoo.com/mc/compose?to=3Dstruts-menu-user-5NWGOfrQmnd4wTydcyPnfg@public.gmane.org= ceforge.net" target=3D_blank rel=3Dnofollow ymailto=3D"mailto:struts-menu-u= [email protected]">struts-menu-user-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org</A><BR><A= href=3D"https://lists.sourceforge.net/lists/listinfo/struts-menu-user" tar= get=3D_blank rel=3Dnofollow>https://lists.sourceforge.net/lists/listinfo/st= ruts-menu-user</A><BR><BR></BLOCKQUOTE></DIV><BR></DIV></DIV><BR>-----Inlin= e Attachment Follows-----<BR><BR> <DIV class=3DplainMail>----------------------------------------------------= --------------------------<BR></DIV><BR>-----Inline Attachment Follows-----= <BR><BR> <DIV class=3DplainMail>_______________________________________________<BR>s= truts-menu-user mailing list<BR><A href=3D"http://us.mc348.mail.yahoo.com/m= c/compose?to=3Dstruts-menu-user-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org" ymailto=3D"mailto:st= [email protected]">struts-menu-user-5NWGOfrQmneRv+LV9MX5uv+2+P5yyue3@public.gmane.org= t</A><BR><A href=3D"https://lists.sourceforge.net/lists/listinfo/struts-men= u-user" target=3D_blank>https://lists.sourceforge.net/lists/listinfo/struts= -menu-user</A><BR></DIV></BLOCKQUOTE></td></tr></table><br>=0A=0A --0-775444858-1238680815=:1374-- --===============6080449004413252712== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ------------------------------------------------------------------------------ --===============6080449004413252712== 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 --===============6080449004413252712==--