I'm going through the Definitive Guide to Lift, and trying to do experiments as I go through.
In through Chapter 3, Rendering with Templates, it describes how Lift locates templates in the war file. So to try it out, I tried the following within both the PocketChange sample app, and the HelloWorld archetype project: 1. I created a new folder under src/main/webapp named mojo 2. I created index.html in that folder 3. I put some simple HTML markup inside a <lift:surround ...> tag 4. I started up the app with mvn jetty:run However attempts to navigate to http://localhost:8080/mojo or /mojo/ or /mojo/index.html all return an error page that the requested URL was not found on this server. I've verified that the directory appears in the WAR file, just as the "help" directory does in the PocketChange app. So I must have missed something in the Definitive Guide chapter, because I haven't (yet) found any other requirements to get Lift to render a template. What am I missing? I didn't add any custom dispatching to the sample app bootstraps. I know I'll have a lot of basic bootstrapping questions like this. I'm currently a Java SpringMVC webapp developer, and spent a year working in Ruby on Rails in the past. Regards, Mojo -- Morris Jones [email protected] [email protected] http://mojo.whiteoaks.com http://twitter.com/mojo_la --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Lift" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~----------~----~----~----~------~----~------~--~---
