display of colors in a table

display of colors in a table

View Answers

November 11, 2009 at 11:18 AM

Hi Friend,

Try the following jsp code:

table.jsp:
<html>
<table border=1>

<col style="background-color: yellow;"/>
<col style="background-color:violet;" />
<col style="background-color: red;"/>
<col style="background-color: blue;" />

<tr>
<td>Column1,Row1</td>
<td>Column2,Row1</td>
<td>Column3,Row1</td>
<td>Column4,Row1</td>
</tr>
<tr>
<td>Column1,Row2</td>
<td>Column2,Row2</td>
<td>Column3,Row2</td>
<td>Column4,Row2</td>
</tr>
<tr>
<td>Column1,Row3</td>
<td>Column2,Row3</td>
<td>Column3,Row3</td>
<td>Column4,Row3</td>
</tr>
<tr>
<td>Column1,Row4</td>
<td>Column2,Row4</td>
<td>Column3,Row4</td>
<td>Column4,Row4</td>
</tr>
</table>

</html>

Thanks









Related Tutorials/Questions & Answers:
display of colors in a table - JSP-Servlet
display of colors in a table  Hi, If i have a table of 4 by 4 boxes, numbering from 1-16 in sequence, how do i make them display one column of one color and another column of another color? Thanks!  Hi Friend
Display items in table
Display items in table  I have a listbox which has some items... in a table. I want these items to be displayed in the table to be unique...i.e. if I reselect those same items they should not be displayed in the table and may
Advertisements
how to use stringtokenizer on table? and display in table format.
display result in row format  how to use stringtokenizer on table? and display in table format
how to use stringtokenizer on table? and display in table format.
how to use stringtokenizer on table? and display in table format.  table is retrieved from mysql database and each row contains data like(java,c,c++,.net
display:table export only data
display:table export only data  I am using display:table tag with attribute export="true". Using that I can export table data in excel. Here one of the column is in hyper link. But i need to export only data not html tag . Can
how to display a table and buttons in swings - Java Beginners
how to display a table and buttons in swings  Hi frends, Actually i want to display a table during runtime and at the same time i also want to add different buttons below this displayed table using swings.....please can any
display table details when selecting table name in drop down liat
display table details when selecting table name in drop down liat  ... database to the dropdownlist in jsp. Example: 1st i want to display the list of tables from the database to the dropdown list... if i select the particular table
Display table performing action on another table
Display table performing action on another table In this section, we have created two tables. The data in table 1 have shown as a result of the database. We have retrieved the values from the database and display
how to display a table from database using servlet
how to display a table from database using servlet  how to display a table with values from servletpage   Hi Friend, Please go through the following link:ADS_TO_REPLACE_1 http://roseindia.net/jsp/servlet-jsp-data
Html form using JavaScript to display the table content
Html form using JavaScript to display the table content  HI There, Greetings, I am new to this java and I need your assistance. I have created... want to write a Html JavaScript coding to display the content from database
how to display a table and buttons in swings - Java Beginners
how to display a table and buttons in swings  Hi frends, Actually i want to display a table during runtime and at the same time i also want to add different buttons below this displayed table using swings.....please can any
how to display data in List Or grid or in table in Jsp
how to display data in List Or grid or in table in Jsp   <%@page...(); } %> </body> </html> this is my jsp code i want to display String P Value in List GIrd or Table please help am able to Print display data
How to Display values from databse into table
How to Display values from databse into table  I want to display values from database into table based on condition in query, how to display that? For example i have some number of books in database but i want to display books
display data from a table in Access Database in a HTML page
display data from a table in Access Database in a HTML page  how to display data from a table in Access Database in a HTML page in a Java Program
how to display values from database into table using jsp
how to display values from database into table using jsp  I want to display values from database into table based on condition in query, how to display that? For example i have some number of books in database but i want
unable to display table data on JSP page that is coming from mysql and servlet.
unable to display table data on JSP page that is coming from mysql and servlet.  I am unable to show table data on JSP page using servlet and mysql. only two rows data i showing but in my database I have five fields
unable to display table data on JSP page that is coming from mysql and servlet.
unable to display table data on JSP page that is coming from mysql and servlet.  I am unable to show table data on JSP page using servlet and mysql. only two rows data i showing but in my database I have five fields
unable to display table data on JSP page that is coming from mysql and servlet.
unable to display table data on JSP page that is coming from mysql and servlet.  I am unable to show table data on JSP page using servlet and mysql. only two rows data i showing but in my database I have five fields
filter and display html table data using ajax - Ajax
filter and display html table data using ajax  Hi i am stuck up... to DisplayCategory.jsp i want to display the data retrieved from the session in a 2d array on DisplayCategory.jsp in the form of the html table using responseText. how to do
specify colors
specify colors  How can I specify colors
Re:Need Help for Editable Display table - JSP-Servlet
Re:Need Help for Editable Display table  Hi Genius i need a help in jsp to display editable display tag. I able to show the datagrid in jsp... code, we have used following database table: CREATE TABLE `student
How To Display MS Access Table into Swing JTable - Java Beginners
How To Display MS Access Table into Swing JTable  How to Display...){ System.out.println(e); } JTable table = new JTable(data, columnNames); TableColumn... JScrollPane( table ); p.add( scrollPane ); JFrame f=new JFrame(); f.add(p
Dynamic retrieval od data from database and display it in the table at jsp
Dynamic retrieval od data from database and display it in the table at jsp  Hi friends.... Am creating software for chit fund.. I want to display the details of 20 members in a table format at jsp page by dynamically retrieving
Re:Need Help for Editable Display table - JSP-Servlet
Re:Need Help for Editable Display table  Hi Genius
how to display the selected row from the data table in model panel ??
how to display the selected row from the data table in model panel ??  the below displayed is my datatable:tableDatas.xhtml <rich:dataTable value="#{tableRecordBean.dataList}" var="dataItems" onRowClick="#{rich
how to display data from mysql table in text box using jsp??
how to display data from mysql table in text box using jsp??  <p>hi, i have a written a code to display data from a mysql table into txtboxes... the secified table. rs = statement.executeQuery(QueryString); </code>
Display Blob(Image) from Mysql table using JSP
Display Blob(Image) from Mysql table using JSP In this section, we will display blob data(image) from Mysql database table using JSP code. A Blob stores a binary large object in the database table's row. Blob object contains
links with different colors.
links with different colors.  How can I have two sets of links with different colors
ModuleNotFoundError: No module named 'Colors'
ModuleNotFoundError: No module named 'Colors'  Hi, My Python... 'Colors' How to remove the ModuleNotFoundError: No module named 'Colors'... to install padas library. You can install Colors python with following command
ModuleNotFoundError: No module named 'Colors'
ModuleNotFoundError: No module named 'Colors'  Hi, My Python... 'Colors' How to remove the ModuleNotFoundError: No module named 'Colors'... to install padas library. You can install Colors python with following command
How to display data fom MySQL DataBase-table in to JSP file by submitting a value in combobox.
How to display data fom MySQL DataBase-table in to JSP file by submitting... DataBase/DB Name:lokesh; Table Name:TR_list; columns:nodename,packageno,TR... have to display the Nodename and packageno. i.e.,select nodename,packageno from
display
display  please tell me how to display the content from database.. if we click on any image using servlets/jsp...please
How to display all the rows in JSP ,MySQL select condition statement IN dept_table
How to display all the rows in JSP ,MySQL select condition statement IN dept_table  I iam unable to display all the rows in JSP select statement from... is displayed.@select * from department where dept_no=10;My display code in JSP
How to display all the Select values from the MySQL database table in where condition= In JSP?
How to display all the Select values from the MySQL database table in where... to display all the select values from MySQL DB** only first value is displayed in the jsp file. @select * from table dept where dept_no=10;" jsp code i have used
Jsp-delete checked checkboxes and display UNCHECKED checkboxes in table as well as in store that unchecked checkboxes in ARRAYLIST
Jsp-delete checked checkboxes and display UNCHECKED checkboxes in table as well as in store that unchecked checkboxes in ARRAYLIST  I have a table... need to delete all the table rows which contain CHECKED textboxes.and remaining
table
table  multiplicatyion table
ModuleNotFoundError: No module named 'github-colors'
ModuleNotFoundError: No module named 'github-colors'  Hi, My... 'github-colors' How to remove the ModuleNotFoundError: No module named 'github-colors' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'mac-colors'
ModuleNotFoundError: No module named 'mac-colors'  Hi, My Python... 'mac-colors' How to remove the ModuleNotFoundError: No module named 'mac-colors' error? Thanks   Hi, In your python environment you
ModuleNotFoundError: No module named 'make-colors'
ModuleNotFoundError: No module named 'make-colors'  Hi, My Python... 'make-colors' How to remove the ModuleNotFoundError: No module named 'make-colors' error? Thanks   Hi, In your python environment
ModuleNotFoundError: No module named 'mappyfile-colors'
ModuleNotFoundError: No module named 'mappyfile-colors'  Hi, My... named 'mappyfile-colors' How to remove the ModuleNotFoundError: No module named 'mappyfile-colors' error? Thanks   Hi, In your
ModuleNotFoundError: No module named 'mintty-colors'
ModuleNotFoundError: No module named 'mintty-colors'  Hi, My... 'mintty-colors' How to remove the ModuleNotFoundError: No module named 'mintty-colors' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'mintty-colors'
ModuleNotFoundError: No module named 'mintty-colors'  Hi, My... 'mintty-colors' How to remove the ModuleNotFoundError: No module named 'mintty-colors' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'mpl-colors'
ModuleNotFoundError: No module named 'mpl-colors'  Hi, My Python... 'mpl-colors' How to remove the ModuleNotFoundError: No module named 'mpl-colors' error? Thanks   Hi, In your python environment you
ModuleNotFoundError: No module named 'object-colors'
ModuleNotFoundError: No module named 'object-colors'  Hi, My... 'object-colors' How to remove the ModuleNotFoundError: No module named 'object-colors' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'python-colors'
ModuleNotFoundError: No module named 'python-colors'  Hi, My... 'python-colors' How to remove the ModuleNotFoundError: No module named 'python-colors' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'python-colors'
ModuleNotFoundError: No module named 'python-colors'  Hi, My... 'python-colors' How to remove the ModuleNotFoundError: No module named 'python-colors' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'simple-colors'
ModuleNotFoundError: No module named 'simple-colors'  Hi, My... 'simple-colors' How to remove the ModuleNotFoundError: No module named 'simple-colors' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'skilstak-colors'
ModuleNotFoundError: No module named 'skilstak-colors'  Hi, My... named 'skilstak-colors' How to remove the ModuleNotFoundError: No module named 'skilstak-colors' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'terminal-colors'
ModuleNotFoundError: No module named 'terminal-colors'  Hi, My... named 'terminal-colors' How to remove the ModuleNotFoundError: No module named 'terminal-colors' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'todoist-colors'
ModuleNotFoundError: No module named 'todoist-colors'  Hi, My... named 'todoist-colors' How to remove the ModuleNotFoundError: No module named 'todoist-colors' error? Thanks   Hi, In your python

Ads