• Post Reply Bookmark Topic Watch Topic
  • New Topic

Change color dynamically  RSS feed

 
ankur tyagi
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi i am new to jsp
i am using a jsp to show some values in form of tables..
the values are taken from the servlet which forwards the request to the jsp..
what i want is to have different color of one table data on the basis of its value
here is the code of the jsp

i want the values of the table data mon, tue ,wed, thu....
to be either red or green depending on its value
the value will be either N or Y
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65833
134
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is this old code? If it is new code, there should not be any scriptlets or Java code in your JSP, which has been discredited for over 8 years now. You should be using the JSTL and EL. Time to update your JSP knowledge.
 
ankur tyagi
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i just saw some jsp tags and then used my knowledge of java and html
to create this page...
can you help me out on this one...
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!