• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JSP and inline Style

 
Joe Brigs
Ranch Hand
Posts: 70
IBM DB2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a JSP that I'm displaying two Database Records. On the left side I'm displaying the Current Record thats coming from a Master Table on the right Side I have the related Record coming from a Pending Record ( an Update ). Theres about 30 columns side by side so the user can compare whats changed before approving the Update. Not all fields will change. The fields that changed I will highlight in a bright color. I know you should use CSS for styling but in this case I'm drawing a blank on how to get this done in CSS even if its possible. I have code below that works , but can I use CSS to do this or am I correct in the way I'm doing it. ( Not sure if I should post this somewhere else but its a JSP page) Thanks for help

 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65129
92
IntelliJ IDE Java jQuery Mac Mac OS X
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A better way to do this would be to assign class names to the elements and use a stylesheet to assign specific renditions such a colors.
 
Joe Brigs
Ranch Hand
Posts: 70
IBM DB2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Bear , I stared at your reply, then got side tracked. Want back to your reply and solution is so simple, it hit me like a brick in my thick skull. Thanks for help.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65129
92
IntelliJ IDE Java jQuery Mac Mac OS X
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic