473,395 Members | 1,418 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,395 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 6053
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: 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
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.