Re: Struts2 or JSF?
- From: Lew <noone@xxxxxxxxxxxxx>
- Date: Fri, 06 Mar 2009 00:13:11 -0500
Lew wrote ...
[ SNIP ]Lately I'm having trouble combining JSF and JPA (Java Persistence API)[ SNIP ]
to retrieve images (JPGs, PNGs) from a database for display in an
image tag in the JSP. I haven't figured out what I'm doing wrong yet,
but I think I'm interfering with the JSF lifecycle. The debugger
tells me that the image content (byte array) is pumping to the
response's output stream, but nothing displays in the browser.
Arved Sandstrom wrote:
Have you tried the image servlet approach? http://balusc.blogspot.com/2007/04/imageservlet.html#ImageServletServingFromDatabase
I had an image servlet but it lacked the 'response.reset()'. Thanks.
My servlet had worked with a straight JSP / JDBC approach so it was quite the mystery.
--
Lew
.
- Follow-Ups:
- Re: Struts2 or JSF?
- From: Avishek
- Re: Struts2 or JSF?
- References:
- Struts2 or JSF?
- From: Donkey Hottie
- Re: Struts2 or JSF?
- From: Lew
- Re: Struts2 or JSF?
- From: Arved Sandstrom
- Struts2 or JSF?
- Prev by Date: Re: Struts2 or JSF?
- Next by Date: Re: Question about InitialLdapContext
- Previous by thread: Re: Struts2 or JSF?
- Next by thread: Re: Struts2 or JSF?
- Index(es):
Relevant Pages
|