velocity-tabs example with JSPs in /WEB-INF/jsp, spring MVC/WebFlow
"Bruno Melloni" <[email protected]> Tue, 30 Sep 2008 19:02:10 -0500
| Newsgroups | gmane.comp.java.struts-menu.user |
|---|---|
| Message-ID | <FFDF235753446042863A3001E61DE0D904532A28@SWAMAIL07.LUV.AD.SWACORP.COM> |
This is a multi-part message in MIME format. --===============4109579871318219152== Content-class: urn:content-classes:message Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C92358.F3477947" This is a multi-part message in MIME format. ------_=_NextPart_001_01C92358.F3477947 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable First of all, I recently switched to Spring MVC/WebFlow, I am a total noob at Struts-Menu and Velocity, and even though I used to code a lot in Struts I have done little web development over the last 3 years. So I apologize for dumb questions. =20 After successfully building and deploying the example app with Eclipse/Java6/Tomcat 6, I am trying to incorporate the Velocity Tabbed Menu example (and later the NiceTabs) into a Spring MVC/WebFlow app where the JSP's are stored in /WEB-INF/jsp. I am using the latest version of the required libraries. =20 I copied all the code to the right places, got the libraries (except hsqldb, junit, log4j and struts since they seemed unnecessary), did the necessary Spring things, and the following happens: =20 1) When I load my home page - which does not yet use the tabbed menu - I get the SEVERE error "org.apache.velocity.exception.ResourceNotFoundException: Unable to find resource 'menuMacros.vm'", which seems to come from Velocity initialization. =20 2) When I go to velocity-tabs.jsp, I get a bunch of "unhandled type" messages right after the debug message "INFO: Velocimacro : added #menuItem( menu level ) : source =3D /templates/tabs.html" =20 3) Just before that message I get the error: "SEVERE: Can't find bundle for base name org.apache.struts.action.MESSAGE, locale en_US", probably because I'm not using struts.jar... but I thought I saw a note indicating that it was no longer needed. Perhaps some additional configuration is needed? =20 Can someone point me in the right direction to fix these issues? =20 Thanks, =20 Bruno =20 =20 =20 =20 =20 ------_=_NextPart_001_01C92358.F3477947 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META http-equiv=3DContent-Type content=3D"text/html; = charset=3Dus-ascii"> <META content=3D"MSHTML 6.00.2900.3157" name=3DGENERATOR></HEAD> <BODY> <DIV><FONT face=3DArial size=3D2><SPAN class=3D634432923-30092008>First = of all, I=20 recently switched to Spring MVC/WebFlow, I am a total noob at = Struts-Menu and=20 Velocity, and even though I used to code a lot in Struts I have done = little web=20 development over the last 3 years. So I apologize for dumb=20 questions.</SPAN></FONT></DIV> <DIV><FONT face=3DArial size=3D2><SPAN=20 class=3D634432923-30092008></SPAN></FONT> </DIV> <DIV><FONT face=3DArial size=3D2><SPAN class=3D634432923-30092008>After = successfully=20 building and deploying the example app with Eclipse/Java6/Tomcat 6, = I am=20 trying to incorporate the Velocity Tabbed Menu example (and later = the=20 NiceTabs) into a Spring MVC/WebFlow app where the JSP's are stored = in=20 /WEB-INF/jsp. I am using the latest version of the required=20 libraries.</SPAN></FONT></DIV> <DIV><FONT face=3DArial size=3D2><SPAN=20 class=3D634432923-30092008></SPAN></FONT> </DIV> <DIV><FONT face=3DArial size=3D2><SPAN class=3D634432923-30092008>I = copied all the=20 code to the right places, got the libraries (except hsqldb, junit, log4j = and=20 struts since they seemed unnecessary), did the necessary Spring things, = and the=20 following happens:</SPAN></FONT></DIV> <DIV><FONT face=3DArial size=3D2><SPAN=20 class=3D634432923-30092008></SPAN></FONT> </DIV> <DIV><FONT face=3DArial size=3D2><SPAN class=3D634432923-30092008>1) = When I load my=20 home page - which does not yet use the tabbed menu - I get the SEVERE = error=20 "<U><FONT color=3D#000080=20 size=3D2>org.apache.velocity.exception.ResourceNotFoundException</U></FON= T><FONT=20 color=3D#ff0000 size=3D2>: Unable to find resource = 'menuMacros.vm'</FONT>", which=20 seems to come from Velocity initialization.</SPAN></FONT></DIV> <DIV><FONT face=3DArial size=3D2><SPAN=20 class=3D634432923-30092008></SPAN></FONT> </DIV> <DIV><FONT face=3DArial size=3D2><SPAN class=3D634432923-30092008>2) = When I go to=20 velocity-tabs.jsp, I get a bunch of "unhandled type" messages right = after the=20 debug message "<FONT color=3D#ff0000 size=3D2>INFO: Velocimacro : added = #menuItem(=20 menu level ) : source =3D = /templates/tabs.html</FONT>"</SPAN></FONT></DIV> <DIV><FONT face=3DArial size=3D2><SPAN=20 class=3D634432923-30092008></SPAN></FONT> </DIV> <DIV><FONT face=3DArial size=3D2><SPAN class=3D634432923-30092008>3) = Just before that=20 message I get the error: "<FONT color=3D#ff0000 size=3D2>SEVERE: Can't = find bundle=20 for base name org.apache.struts.action.MESSAGE, locale en_US</FONT>", = probably=20 because I'm not using struts.jar... but I thought I saw a note = indicating that=20 it was no longer needed. Perhaps some additional configuration is=20 needed?</SPAN></FONT></DIV> <DIV><FONT face=3DArial size=3D2><SPAN=20 class=3D634432923-30092008></SPAN></FONT> </DIV> <DIV><FONT face=3DArial size=3D2><SPAN class=3D634432923-30092008>Can = someone point me=20 in the right direction to fix these issues?</SPAN></FONT></DIV> <DIV><FONT face=3DArial size=3D2><SPAN=20 class=3D634432923-30092008></SPAN></FONT> </DIV> <DIV><FONT face=3DArial size=3D2><SPAN=20 class=3D634432923-30092008>Thanks,</SPAN></FONT></DIV> <DIV><FONT face=3DArial size=3D2><SPAN=20 class=3D634432923-30092008></SPAN></FONT> </DIV> <DIV><FONT face=3DArial size=3D2><SPAN=20 class=3D634432923-30092008>Bruno</SPAN></FONT></DIV> <DIV><FONT face=3DArial size=3D2><SPAN=20 class=3D634432923-30092008></SPAN></FONT> </DIV> <DIV><FONT face=3DArial size=3D2><SPAN=20 class=3D634432923-30092008></SPAN></FONT> </DIV> <DIV><FONT face=3DArial size=3D2><SPAN=20 class=3D634432923-30092008></SPAN></FONT> </DIV> <DIV><FONT face=3DArial size=3D2><SPAN=20 class=3D634432923-30092008></SPAN></FONT> </DIV> <DIV><FONT face=3DArial size=3D2><SPAN=20 class=3D634432923-30092008></SPAN></FONT> </DIV></BODY></HTML> ------_=_NextPart_001_01C92358.F3477947-- --===============4109579871318219152== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ --===============4109579871318219152== 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 --===============4109579871318219152==--