This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes HTML, CSS and JavaScript and the fly likes dynamic data on image? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "dynamic data on image?" Watch "dynamic data on image?" New topic
Author

dynamic data on image?

Antonio Giovanni
Ranch Hand

Joined: Jun 27, 2005
Posts: 85
Hi all,

Is it really possible to write some Dynamic Data, like some java Bean properties on top of an Image (jpg , gif file etc..)

I am with the idea that it is not possible??

I really appreciate your help on this, guys

PS: Everything is part of a JSP file, image is in the JSP page and i want the java bean properties to be written on top of the image
possible ??

Thanks

[ December 14, 2005: Message edited by: Bear Bibeault ]
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60810
    
  65

As part of the image, or floating over the image as HTML text?


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Antonio Giovanni
Ranch Hand

Joined: Jun 27, 2005
Posts: 85
Hi Bear Bibeault,

Either is fine, which ever is possible to work,..

probably i was thinking of,.. HTML elements floating over the image

Thanks again
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60810
    
  65

If the former, you'll need to use JAI (Java Advanced Imaging) to manipulate the image on the server and stream the result to the client. If the latter, it's a fairly simple matter of HTML and CSS.
Antonio Giovanni
Ranch Hand

Joined: Jun 27, 2005
Posts: 85
Hi Bear Bibeault,

Thanks a lot. I will look into the JAI soon.

But in the mean time i want to know how i can put HTML text floating over the image,..??

Say for example, this is some code(of a JSP page)



How can I put say for example TimeStamp on top of Image

<IMG src="images/ojabackdrop.gif" width="100%" height="30">

I am not that good with HTML and CSS

I really appreciate your help

Probably if you think this thread has to be moved to the HTML/Javascript forum, please do so.

Thanks
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60810
    
  65

Since this is taking the HTML route, I've moved it to the HTML forum.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60810
    
  65

You'll use CSS to position a div containing the text over the images. Look into the positioning attributes and z-index.
Antonio Giovanni
Ranch Hand

Joined: Jun 27, 2005
Posts: 85
Hi Bear Bibeault,

Thanks a bunch
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60810
    
  65

Check back if you have problems with the CSS notation. Learning CSS will be a great boon to your pages.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: dynamic data on image?
 
Similar Threads
accessing web.xml from java bean
showing dynamic image in web application
Deploying Dynamic file
interpret java code <% ..%> in .js file
include properties file in jsp