aspose file tools*
The moose likes HTML, CSS and JavaScript and the fly likes Changing the TextInput Colour while displying Results from database Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Changing the TextInput Colour while displying Results from database" Watch "Changing the TextInput Colour while displying Results from database" New topic
Author

Changing the TextInput Colour while displying Results from database

Ravi Kiran Va
Ranch Hand

Joined: Apr 18, 2009
Posts: 2234

I am displaying some data from Database into JSP .

while displaying data , i need to check if the Value is less than 50 , i need to display it in Red color , or else in normal color .



I am able to achive this if it is a single value , but how to do it for multiple Text Inputs ??

The code which s working fine for a Single TextInput



Please tell me how to do it for multiple values of TextInputs


Save India From Corruption - Anna Hazare.
Jeanne Boyarsky
author & internet detective
Marshal

Joined: May 26, 2003
Posts: 31054
    
162

Multiple statements or a loop or jQuery.


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
Ravi Kiran Va
Ranch Hand

Joined: Apr 18, 2009
Posts: 2234

Could you please tell me how to do it in a loop ?? any sample code or general idea ??

Thanks .
K West
Ranch Hand

Joined: Sep 10, 2008
Posts: 58

Use for loop which iterates over array of text fields.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Changing the TextInput Colour while displying Results from database