Re: How to use Spring MVC resources static images in tapestry
Of course you need to map spring's servlet / filter (whatever it is) to a url pattern in web.xml. Unfortunately the current generation of servlet containers are not mind readers :) This question is now off topic, please continue on an appropriate spring mailing list.
Re: How to use Spring MVC resources static images in tapestry
Do I need to add any spring specifications in web.xml for this? On 5/17/2013 12:04 PM, Lance Java wrote: Does your webapp have a context path? You may need to use - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: How to use Spring MVC resources static images in tapestry
_ApplicationContext.xml:_ location="file:${catalina.home}/props/" cache-period="1234" /> _VideosModule.java:_ public static void contributeIgnoredPathsFilter(Configuration configuration) { configuration.add("/images/.*"); } _Index.tml:_ _Index.java:_ @Inject private HttpServletRequest servletRequest; public String getContextPath() { return servletRequest.getContextPath(); } When I run the application it runs successfully, however images not loaded *_Using inspect element get the tag:_* ---> It shows *Failed to load the given URL* Any idea? On 5/17/2013 12:04 PM, Lance Java wrote: Does your webapp have a context path? You may need to use
Re: How to use Spring MVC resources static images in tapestry
Does your webapp have a context path? You may need to use
Re: How to use Spring MVC resources static images in tapestry
I have added the "/images" path to this contributeIgnoredPathsFilter, however it does not works. On 5/16/2013 8:24 PM, Lance Java wrote: You will need to tell tapestry to ignore the "/images" path so that another servlet (spring) can handle it. http://tapestry.apache.org/configuration.html#Configuration-ConfiguringIgnoredPaths - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: How to use Spring MVC resources static images in tapestry
You will need to tell tapestry to ignore the "/images" path so that another servlet (spring) can handle it. http://tapestry.apache.org/configuration.html#Configuration-ConfiguringIgnoredPaths
How to use Spring MVC resources static images in tapestry
Hi All, I am developing an application using Tapestry 5.3.1 I have tried to use MVC resources mapping to cache images, But it seems doesn't works Here my coding: _Context xml configuration:_ mvc:resources mapping="/images/**" location="file:${catalina.home}/props/" cache-period="1234" /> _Index.tml:_ I have this home.jpg file in tomcat catalina home path props folder. Application runs successfully, but the images are not loaded Can anyone help me? Regards, Rathinasamy.