| 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: 56224
|
|
|
Check out the JSTL <c:if> tag.
|
[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
|
 |
maznorlia syafina
Greenhorn
Joined: Mar 20, 2006
Posts: 2
|
|
|
thanks ram..got it
|
 |
 |
|
|
subject: how to change image using jsp
|
|
|