You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by "GALLAPONT Jean-Remy - SOP ( JGallapont@sophia-antipolis.sema.slb.com )" <JG...@sophia-antipolis.sema.slb.com> on 2002/03/11 10:42:57 UTC
Struts Layout problem
Hello,
I encounter a problem with the implementation of the struts layout dynmenu
I tried with the example source from http://struts.application-servers.com/
but it doesn't work.
<layout:dynMenu config="org.apache.struts.webapp.example.Mainmenu"
left="100" top="150">
<layout:menuItem key="menu.test.menu1" link="link1.html"/>
<layout:menuItem key="menu.test.menu2">
<layout:menuItem key="menu.test.item1" link="link2.html"/>
<layout:menuItem key="menu.test.item2" link="link3.html"/>
</layout:menuItem>
<layout:menuItem key="menu.test.menu3">
<layout:menuItem key="menu.test.menu4">
<layout:menuItem key="menu.test.item3"
link="link4.html"/>
<layout:menuItem key="menu.test.item4"
link="link5.html"/>
</layout:menuItem>
<layout:menuItem key="menu.test.item5" link="link6.html"/>
</layout:menuItem>
<layout:menuItem key="menu.test.menu5" link="link7.html"/>
</layout:dynMenu>
I tried to create a configuration file named Mainmenu but I still have the
following error :
javax.servlet.ServletException: com/fgm/web/menu/MenuBase
Thank for your help
________________________________________
Jean-Rémy GALLAPONT
SchlumbergerSema
Ingénieur chargé d'études
Tel: 04.97.15.79.20
JGallapont@sophia-antipolis.sema.slb.com
150, Allée Pierre Ziller - Les Bouillides
BP279 - 06905 Sophia-Antipolis Cedex
Fax: 04.94.15.89.01
________________________________________
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: Struts Layout problem
Posted by =?iso-8859-1?Q?Jean-No�l?= Ribette <je...@improve.fr>.
Hi,
Struts-layout menu tags only throw a ServletException when trying to access
an uninitialized menu repository. However the code you sent does not use it.
First think, could you check that menu.jar from the struts-layout example
is in your classpath. If yes, could you send the exception stack trace ?
Regards,
Jean-Noel Ribette
--
--__/ \__------------------------------------------
improve Jean-Noël Ribette
--/-----\------------------------------------------
Tel : 01 41 97 83 20 http://www.improve.fr
http://www.application-servers.com
At 10:42 AM 3/11/02 +0100, you wrote:
>Hello,
>
>I encounter a problem with the implementation of the struts layout dynmenu
>I tried with the example source from http://struts.application-servers.com/
>but it doesn't work.
>
><layout:dynMenu config="org.apache.struts.webapp.example.Mainmenu"
>left="100" top="150">
> <layout:menuItem key="menu.test.menu1" link="link1.html"/>
> <layout:menuItem key="menu.test.menu2">
> <layout:menuItem key="menu.test.item1" link="link2.html"/>
> <layout:menuItem key="menu.test.item2" link="link3.html"/>
> </layout:menuItem>
> <layout:menuItem key="menu.test.menu3">
> <layout:menuItem key="menu.test.menu4">
> <layout:menuItem key="menu.test.item3"
>link="link4.html"/>
> <layout:menuItem key="menu.test.item4"
>link="link5.html"/>
> </layout:menuItem>
> <layout:menuItem key="menu.test.item5" link="link6.html"/>
> </layout:menuItem>
> <layout:menuItem key="menu.test.menu5" link="link7.html"/>
></layout:dynMenu>
>
>I tried to create a configuration file named Mainmenu but I still have the
>following error :
>
>javax.servlet.ServletException: com/fgm/web/menu/MenuBase
>
>Thank for your help
>
>________________________________________
>Jean-Rémy GALLAPONT
>SchlumbergerSema
>Ingénieur chargé d'études
>Tel: 04.97.15.79.20
>JGallapont@sophia-antipolis.sema.slb.com
>
>150, Allée Pierre Ziller - Les Bouillides
>BP279 - 06905 Sophia-Antipolis Cedex
>Fax: 04.94.15.89.01
>________________________________________
>
>
>--
>To unsubscribe, e-mail: <ma...@jakarta.apache.org>
>For additional commands, e-mail: <ma...@jakarta.apache.org>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>