473,378 Members | 1,422 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

how to link css file to servlet ?

i'm using pw,print() function to generate the html content
part of the code is here:


Expand|Select|Wrap|Line Numbers
  1. pw.println("<b>#</b> Number of candidtaesregistered ");
  2. pw.println("<br><table border='2px' style='width:600px;height:150px;'><tr>");
  3. pw.println("<td><b>Id</b></td>");
  4. pw.println("<td><b>Name</b</td>");
  5. pw.println("<td><b>Branch</b></td>");
  6. pw.println("<td><b>Email</b></td>");
  7. pw.println("<td><b>Contact</b></td>")
Jan 20 '15 #1
1 6042
rajujrk
107 100+
Hi,

You can use like the below code


Expand|Select|Wrap|Line Numbers
  1. pw.println("<html><head><link rel=\"stylesheet\" type=\"text/css\" href=\"style.css\" /></head><body>");
  2. pw.println("<b>#</b> Number of&nbsp;candidtaesregistered ");
  3. pw.println("<br><table class="mytable"><tr>");
  4. .
  5. .
  6. pw.println("<td><b>Id</b></td>");
  7. pw.println("<td><b>Name</b</td>");
  8. pw.println("<td><b>Branch</b></td>");
  9. pw.println("<td><b>Email</b></td&gt;");
  10. pw.println("<td><b>Contact</b></td>")
  11. .
  12. .
  13. pw.println("</table></body>")
  14.  
Thanks
Raju
Jan 21 '15 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: cjundang | last post by:
I wan't to display all process in Unix system. In compile time, it didn't have a problem but link time is show error message "ps.o (.text+0x9a): undefined reference to pfind" "pfind" is a...
3
by: Brian Tkatch | last post by:
I'm trying to get more information on connect via .NET to UDB. On <URL:http://www-128.ibm.com/developerworks/db2/zones/vstudio/> there is a link "CBT: Fast path to DB2 UDB in a Visual Basic .NET...
0
by: kain razial | last post by:
ANYOTHER NEEDS ALSO CONTACT ME.I WILL HELP YOU TO GET THAT TEKLA XSTEEL V 12 DOWNLOAD LINK. http://www.sendspace.com/file/zem32r
0
by: kain razial | last post by:
ANYOTHER NEEDS ALSO CONTACT ME.I WILL HELP YOU TO GET THAT TEKLA XSTEEL V 12 DOWNLOAD LINK. http://www.sendspace.com/file/zem32r
8
by: Bern McCarty | last post by:
We have a large mixed dll that I can never seem to get to link incrementally. Below is the console output. For simplicity I've eliminated some stuff that we normally do when we really link this...
1
by: Bigrabid | last post by:
Howdy, I have an access database that I use to keep track of projects that my group is working on. There are a number of files associated with any one project, so I have as a parent to , which...
5
by: learning | last post by:
Hi it's my first time to post something on the net. Hope someone can help me with this. I just started learning how to program with php (about a month ago), so pls. bear with me. So far, i've...
3
by: ykhamitkar | last post by:
Hi There, I want to add a file management system in my application I have a form with a textbox(datatype hyperlink) and a button 1. User clicks on button 2. one file dialog apears 3. User...
0
ADezii
by: ADezii | last post by:
Rather than using CurrentProject.Connection or entering your own Connection information, ADO supports storing Connection information in an external file called a Data Link File (which normally has a...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.