Home Answers Viewqa JSP-Servlet display of colors in a table

 
 


Tan BS
display of colors in a table
1 Answer(s)      3 years and 6 months ago
Posted in : JSP-Servlet

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 Pages:
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
how to mark different colors for diffent rows - Java Beginners
how to mark different colors for diffent rows  Hi frends, Actually yesterday i had a question that, how can i mark colors to my rows in the table... in that frame...........only the table with colord rows is getting....... My
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
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
Setting Colors in JSP
Setting Colors in JSP      ... we want, the font color can be changed. The table can be coloured . By using the colors code we can give colors according to our wish.  To make a program
how to mark different colors for diffent rows - Java Beginners
how to mark different colors for diffent rows  Hi, i have drawn a simple table using swings and now i want to mark diffent colors for each row...() { JTable table=new JTable(new DefaultTableModel(new Object
specify colors
specify colors  How can I specify colors
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 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 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: http://roseindia.net/jsp/servlet-jsp-data-list.shtml Thanks
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 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 Problem
Display Problem  i am creating a small window application , i want to fetch data from ms-access(db) and want to display it on tables. what options are there to show result on table. is CSS helpfull
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
links with different colors.
links with different colors.  How can I have two sets of links with different colors
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
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
Display image
Display image  How to Pass image from html to jsp and display... the html page to jsp page and display it. 1)page.html: <%@ page language="java" %> <HTML> <HEAD><TITLE>Display file upload form
Re:Need Help for Editable Display table - JSP-Servlet
Re:Need Help for Editable Display table  Hi Genius
how to display?
how to display?  I have to write a code for searcing books in library...:8080/examples/jsp/searchbook.jsp" method="post"> <table align="center"> <...;search.jsp</strong> <body> <table border=2> <tr> <th>
profile display
" action="..//search"> <table border="0" width="300" align="center" bgcolor... = st.executeQuery(query); out.println("<table border='1'><tr><
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
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
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
Multiplication table
Design and develop Multiplication table in Net beans  Design and develop a program that will print a multiplication table. The program should: Ask the user for ending number than it must Display that particular multiplication
Hash table
Hash table  Hi guys.. I have question about hash table How to implement a hash table of English words? with these methods ïâ??· A method put(s), which adds the string s to the table, if it is not already there (a bit
Multiplication table
for ending number than Display that particular multiplication table   ...Multiplication table Net Beans  Using Net beans Design and develop...(String args[]) { int n; System.out.print("Enter the number whose table
jsf table
: Display Database data in JSF table Thanks... a table named as customer. customer table has following columns : customerid(varchar... table in this index.jsp file.this jsf file should be able to retrieve the data from
Multiplication table
number than Display that particular multiplication table   import...[]) { int n; System.out.print("Enter the number whose table is to be displayed
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 Data - Java Beginners
Display Data  I need sample how to display data from my table Mysql with swt/jface Thank you
HOW TO DISPLAY TABLEEEE
HOW TO DISPLAY TABLEEEE  Please teach me how to display table step by step like a kid who didnt know anything? please !! I try so many times but it is not working out ! S.O.S !!! HELP ME PLEASEEEE
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
how to print all colors using awt
how to print all colors using awt  how to print all colors using awt
Table Empty Cell in HTML
Table Empty Cell in HTML       The Table Empty Cell in HTML define no content inside a cell of table. The code is not able to display border around the empty cell in a table
How to display the current time
How to display the current time  I was develop online web portal. In this web portal i am going to display time. I am using <%= new java.util.Date() %> to display the time. But it display the time after that cannot changed
Display of value in Tabel cell
Display of value in Tabel cell  I have added a custom field in the table cell by defining the cell editor.The cell is having a text field... CalendarComboBox(); protected JTable table; protected int row, column
Not able to display jtable at runtime
Not able to display jtable at runtime  Hello, can anyone please help me. I am trying to create a dynamic table with checkboxes. Data are accessed from database. But it is not creating the table at runtime. It retrieves data from
Problem to display checkbox item
Problem to display checkbox item  Hi, Following is my code: <%@page import="java.sql.*"%> <h1>example.jsp</h1> <table...; I want to display records, when i click on submit button or any dumy button
image on div or cell of table
have stored the image in access database and I have a code to display image but it display on browser but I want to display on inside the div tag or table tag pls... is to display on div or table... thnx in advance
image on div or cell of table
have stored the image in access database and I have a code to display image but it display on browser but I want to display on inside the div tag or table tag pls... is to display on div or table... thnx in advance
image on div or cell of table
have stored the image in access database and I have a code to display image but it display on browser but I want to display on inside the div tag or table tag pls... is to display on div or table... thnx in advance
image on div or cell of table
have stored the image in access database and I have a code to display image but it display on browser but I want to display on inside the div tag or table tag pls... is to display on div or table... thnx in advance
image on div or cell of table
have stored the image in access database and I have a code to display image but it display on browser but I want to display on inside the div tag or table tag pls... is to display on div or table... thnx in advance
image on div or cell of table
have stored the image in access database and I have a code to display image but it display on browser but I want to display on inside the div tag or table tag pls... is to display on div or table... thnx in advance
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 Sum of Table Column Using In JSP
Display Sum of Table Column Using In JSP... an application to Display the sum data of a Table column for a specific Date. We... the total salary between two specific date and result is display using Jsp

Ask Questions?

If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.

Ask your questions, our development team will try to give answers to your questions.