Ok Matt, thanks. I could have sworn that the out-of-the-box jsp's - userForm.jsp for example - had camel case, and that I had initially tried using all lower-case and it didn't work. But I stand corrected. Of all of those pages one, mainMenu.jsp, has camel case but I imagine that page isn't the View for any Spring URL so ... I have renamed a couple camel-case pages to lower-case and they still work so I guess I'll just rename them all!
Thanks again! Bob mraible wrote: > > On 12/18/07, syg6 <[EMAIL PROTECTED]> wrote: >> >> We have been developing for months on Jetty and are now ready to start >> testing on a production server, a Tomcat 6. So I copy the WAR and lo and >> behold, none of my *Form.jsp pages are displayed! >> >> I am using the default settings for both >> ControllerClassNameHandlerMapping >> and RequestToViewNameTranslator. Meaning that if I have a person object, >> the >> List URL is persons.html and the jsp is persons.jsp. The problem occurs >> with >> the *Form pages. personform.html (all lower case) up until now has worked >> using personForm.jsp. But not in Tomcat, page not found. If I change >> personForm.jsp -> personform.jsp it works. But it stops working in Jetty. >> Ugh. > > You should use all lowercase for the JSP names. This is used in the > demo app and it deploys fine on Tomcat and Jetty. > > http://appfuse.org/display/APF/Using+Spring+MVC > > Matt > >> >> Anything I can do about this, short of renaming all of my jsp's every >> time I >> deply to Tomcat? In other words, is there any way to tell Spring either >> that >> 1) personform.html goes to personform.jsp or 2) change the URL to >> personForm.html. (I like the first option better ...) >> >> This is my dispatcher-servlet.xml: >> >> bean >> class="org.springframework.web.servlet.mvc.support.ControllerClassNameHandlerMapping"> >> <property name="order" value="1"/> >> </bean> >> >> <!-- View Resolver for JSPs --> >> <bean id="viewResolver" >> class="org.springframework.web.servlet.view.InternalResourceViewResolver"> >> <property name="requestContextAttribute" value="rc"/> >> <property name="viewClass" >> value="org.springframework.web.servlet.view.JstlView"/> >> <property name="prefix" value="/WEB-INF/pages/"/> >> <property name="suffix" value=".jsp"/> >> </bean> >> >> I am using Appfuse 2, Windoze XP SP2, Tomcat 6. >> >> Thanks! >> Bob >> >> -- >> View this message in context: >> http://www.nabble.com/Case-issue-with-view---jsp-when-using-Tomcat-tp14394203s2369p14394203.html >> Sent from the AppFuse - User mailing list archive at Nabble.com. >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/Case-issue-with-view---jsp-when-using-Tomcat-tp14394203s2369p14418093.html Sent from the AppFuse - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
