aspose file tools*
The moose likes JSP and the fly likes how to change image using jsp Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "how to change image using jsp" Watch "how to change image using jsp" New topic
Author

how to change image using jsp

maznorlia syafina
Greenhorn

Joined: Mar 20, 2006
Posts: 2
I'm having a problem on how to change an image using logic.Let say that the logic is like this.If year profit is over 50% I want the image to display in green box and if the year profit is below 20% the image will be displayed in red.How can I do that?Can somebody help.Please..
ramprasad madathil
Ranch Hand

Joined: Jan 24, 2005
Posts: 489

The easiest approach would be to have 2 images, one green and other red and display one of the images based on your 'if' logic.

ram.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60992
    
  65

Check out the JSTL <c:if> tag.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
maznorlia syafina
Greenhorn

Joined: Mar 20, 2006
Posts: 2
thanks ram..got it
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to change image using jsp