tag:blogger.com,1999:blog-4395044738141510850.post8537466825382515835..comments2023-05-07T06:11:10.785-07:00Comments on Linux Beans: Image Handling in Seam Apps part IV: Displaying and CachingUnknownnoreply@blogger.comBlogger6125tag:blogger.com,1999:blog-4395044738141510850.post-26837170612946590702008-12-12T14:37:00.000-08:002008-12-12T14:37:00.000-08:00Thanks for the useful post.On the caching front, y...Thanks for the useful post.<BR/><BR/>On the caching front, you need to complete the loop and correctly handle cache revalidation requests too. So, in your doGet() method, you need to look for a request header called "if-modified-since" and match it with the modification date of the artwork. If the artwork hasn't changed, you need to do<BR/><BR/>response.setStatus( Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-4395044738141510850.post-2474497383907849962008-04-05T14:19:00.000-07:002008-04-05T14:19:00.000-07:00you can also display the image with "s:graphicImag...you can also display the image with <BR/><BR/>"s:graphicImage value="#{yourEntityHome.instance.imageBytes}" /"<BR/><BR/>without the need of a servlet.Guilhermehttps://www.blogger.com/profile/14638381095750159469noreply@blogger.comtag:blogger.com,1999:blog-4395044738141510850.post-25911356349793655892008-04-03T06:11:00.000-07:002008-04-03T06:11:00.000-07:00Add the lines below in your component.xml to use w...Add the lines below in your component.xml to use <B>web:context-filter</B><BR/><BR/>xmlns:web="http://jboss.com/products/seam/web"<BR/><BR/>http://jboss.com/products/seam/web http://jboss.com/products/seam/web-2.0.xsdAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-4395044738141510850.post-14028856267794619712008-03-23T05:50:00.000-07:002008-03-23T05:50:00.000-07:00I can't deploy when this line:web:context-filter u...I can't deploy when this line:<BR/><BR/>web:context-filter url-pattern="/gallery/*"/<BR/><BR/>is in component.xml.<BR/><BR/>I'm using seam 2, any solutions?<BR/><BR/>/JacobAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-4395044738141510850.post-27903970628783890042007-12-30T10:33:00.000-08:002007-12-30T10:33:00.000-08:00Nice demo of Seam's servlet integration. However, ...Nice demo of Seam's servlet integration. However, it's easier to just return the image data by using the HTTP response object's output stream. See <A HREF="http://wiki.apache.org/myfaces/Sending_Files" REL="nofollow">Sending Files"</A><BR/><BR/><A HREF="http://www.kassube.de" REL="nofollow">Nils Kassube</A>Nils Kassubehttps://www.blogger.com/profile/13944225425837816094noreply@blogger.comtag:blogger.com,1999:blog-4395044738141510850.post-2231021425214519142007-12-22T12:33:00.000-08:002007-12-22T12:33:00.000-08:00I receive a error:No application context activeErr...I receive a error:<BR/>No application context active<BR/>Error Exception Filter<BR/><BR/>Any solutionAnonymousnoreply@blogger.com