|
View:
New views
3 Messages
—
Rating Filter:
Alert me
|
|
|
velocity-tabs example with JSPs in /WEB-INF/jsp, spring MVC/WebFlowFirst 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.
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.
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:
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.
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 = /templates/tabs.html"
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?
Can someone point me
in the right direction to fix these issues?
Thanks,
Bruno
------------------------------------------------------------------------- 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=/ _______________________________________________ struts-menu-user mailing list struts-menu-user@... https://lists.sourceforge.net/lists/listinfo/struts-menu-user |
|
|
Re: velocity-tabs example with JSPs in /WEB-INF/jsp, spring MVC/WebFlowDid you copy the appropriate *.vm files into your WEB-INF/classes directory?
The Integrating Struts Menu into your application section might help: http://struts-menu.sourceforge.net/userguide.html Matt On Tue, Sep 30, 2008 at 6:02 PM, Bruno Melloni <Bruno.Melloni@...> wrote: > 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. > > 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. > > 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: > > 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. > > 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 = /templates/tabs.html" > > 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? > > Can someone point me in the right direction to fix these issues? > > Thanks, > > Bruno > > > > > > ------------------------------------------------------------------------- > 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=/ > _______________________________________________ > struts-menu-user mailing list > struts-menu-user@... > https://lists.sourceforge.net/lists/listinfo/struts-menu-user > > -- http://raibledesigns.com ------------------------------------------------------------------------- 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=/ _______________________________________________ struts-menu-user mailing list struts-menu-user@... https://lists.sourceforge.net/lists/listinfo/struts-menu-user |
|
|
Re: velocity-tabs example with JSPs in /WEB-INF/jsp, spring MVC/WebFlowThanks for the reply Matt,
I copied no *.vm files into the WEB-INF/classes because there aren't any in the sample app that I can copy (BTW, the sample app itself runs fine after building it). I did copy everything present in WEB-INF/classes of the sample app into my project, even some files that are probably irrelevant. The userguide.html is what I've been using to guide me, and it also makes no mention of *.vm files. b. -----Original Message----- From: Matt Raible [mailto:mraible@...] Sent: Tuesday, September 30, 2008 10:01 PM To: General mailing list for Struts Menu Subject: Re: [struts-menu] velocity-tabs example with JSPs in /WEB-INF/jsp,spring MVC/WebFlow Did you copy the appropriate *.vm files into your WEB-INF/classes directory? The Integrating Struts Menu into your application section might help: http://struts-menu.sourceforge.net/userguide.html Matt On Tue, Sep 30, 2008 at 6:02 PM, Bruno Melloni <Bruno.Melloni@...> wrote: > 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. > > 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. > > 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: > > 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. > > 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 = /templates/tabs.html" > > 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 > > Can someone point me in the right direction to fix these issues? > > Thanks, > > Bruno > > > > > > ---------------------------------------------------------------------- > --- 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=/ > _______________________________________________ > struts-menu-user mailing list > struts-menu-user@... > https://lists.sourceforge.net/lists/listinfo/struts-menu-user > > -- http://raibledesigns.com ------------------------------------------------------------------------ - 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=/ _______________________________________________ struts-menu-user mailing list struts-menu-user@... https://lists.sourceforge.net/lists/listinfo/struts-menu-user ------------------------------------------------------------------------- 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=/ _______________________________________________ struts-menu-user mailing list struts-menu-user@... https://lists.sourceforge.net/lists/listinfo/struts-menu-user |
| Free embeddable forum powered by Nabble | Forum Help |