Forums Register Login

Doubt in JSP

+Pie Number of slices to send: Send
Hi
I need to show the Image as well as some data related to that Image in JSP.Image and their related data's are stored in database.
Because both the content type are different also i dont know how to show the different content type in single request?
Can you please tell me how can i show both the data [Image and Text] together.
Thanks,
Sujatha Kumaran.
+Pie Number of slices to send: Send
Remember that a JSP is just a template to create an HTML page to send to the client. So how would you solve this in an HTML page?
The text would simply go on the page, and the image would be referenced via an <img> tag. The URL of the image tag could be a "hard" URL of the image file on disk, or the URL to a servlet that returns the image data (with corresponding content type).
hth,
bear
That is a really big piece of pie for such a tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 806 times.
Similar Threads
Not able to display image from the object retrieved back from the database into the jsp page.
How should we share regions in JSF.
Need help related to content type issue
Optimistic Or Pessimistic locking .
Need urgent help
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 19, 2024 03:51:02.