Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

dynamic data on image?

 
Antonio Giovanni
Ranch Hand
Posts: 85
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 65118
89
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
As part of the image, or floating over the image as HTML text?
 
Antonio Giovanni
Ranch Hand
Posts: 85
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 65118
89
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 85
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 65118
89
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Since this is taking the HTML route, I've moved it to the HTML forum.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65118
89
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 85
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Bear Bibeault,

Thanks a bunch
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65118
89
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Check back if you have problems with the CSS notation. Learning CSS will be a great boon to your pages.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic