Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within JSF
Search Coderanch
Advance search
Google search
Register / Login
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Jeanne Boyarsky
Ron McLeod
Paul Clapham
Liutauras Vilda
Sheriffs:
paul wheaton
Rob Spoor
Devaka Cooray
Saloon Keepers:
Stephan van Hulst
Tim Holloway
Carey Brown
Frits Walraven
Tim Moores
Bartenders:
Mikalai Zaikin
Forum:
JSF
retrieve image from servlet in jsf
muntago Richard
Ranch Hand
Posts: 82
posted 11 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
I have
servlets
that displays image from database. Now i tried to display image in
jsf
but it does nothing.
i used the code below
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xmlns:h="http://java.sun.com/jsf/html" xmlns:f="http://java.sun.com/jsf/core" > <h:head> <title></title> </h:head> <h:body> <h1>Display Database Record in JSF</h1> <h:outputText value="Image" /> <h:graphicImage value="DisplayPic?id='12'"/> </h:body> </html>
sQL Query looks like
"select image from pictures where id = '12'"
Bin Smith
Ranch Hand
Posts: 514
1
I like...
posted 11 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Hello!
Look at this article
http://balusc.blogspot.com/2007/04/imageservlet.html
To earn money on java go to upwork.com
With a little knowledge, a
cast iron skillet
is non-stick and lasts a lifetime.
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
Trying to change <ui:include> src tag dinamically
Target unreachable, identifier resolved to null
jsf error display
jsf error display
First Cup: Java EE Tutorial
More...