export to html

Reply

Join Date: Mar 2007
Posts: 22
Reputation: sakura_fujin is an unknown quantity at this point 
Solved Threads: 0
sakura_fujin sakura_fujin is offline Offline
Newbie Poster

export to html

 
0
  #1
Oct 19th, 2007
hi guys

how do you export your database to html format?

my project goes like this: we built a simple music manager that adds, edits, deletes, searches and sorts records (that's track listings) excluding the multimedia part (i.e. play a track, etc.. our prof didn't require us to do that, just simple file manipulations...) . we already did all that but got stuck with our prof's last requirement, exporting all the track listings/ records to HTML in table format. please help! thanks!
Reply With Quote Quick reply to this message  
Join Date: Feb 2006
Posts: 2,277
Reputation: masijade has much to be proud of masijade has much to be proud of masijade has much to be proud of masijade has much to be proud of masijade has much to be proud of masijade has much to be proud of masijade has much to be proud of masijade has much to be proud of masijade has much to be proud of 
Solved Threads: 242
masijade's Avatar
masijade masijade is offline Offline
Nearly a Posting Maven

Re: export to html

 
0
  #2
Oct 19th, 2007
Do you know what an HTML table looks like?

Do you know how to receive a listing of the tracks using JDBC?

Well, get your listing and loop over it inserting the TD tags around each field and TR tags around each row.
Java Programmer and Sun Systems Administrator

----------------------------------------------

Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it.
--Brian Kernighan
Reply With Quote Quick reply to this message  
Join Date: Mar 2007
Posts: 22
Reputation: sakura_fujin is an unknown quantity at this point 
Solved Threads: 0
sakura_fujin sakura_fujin is offline Offline
Newbie Poster

Re: export to html

 
0
  #3
Oct 19th, 2007
no , our prof didn't taught us how to use JDBC. wait a minute, can you actually write html tags together with your java code? is that permissible?
Reply With Quote Quick reply to this message  
Join Date: Feb 2006
Posts: 2,277
Reputation: masijade has much to be proud of masijade has much to be proud of masijade has much to be proud of masijade has much to be proud of masijade has much to be proud of masijade has much to be proud of masijade has much to be proud of masijade has much to be proud of masijade has much to be proud of 
Solved Threads: 242
masijade's Avatar
masijade masijade is offline Offline
Nearly a Posting Maven

Re: export to html

 
0
  #4
Oct 19th, 2007
It's not suggested, but you didn't say whether your class was only servlets, only JSP with scriptlets (both of these first are not the correct way), or whether it is with full BEAN/tag/Whatever support (which is the correct way), or whether your class is a simple standalone and you should just produce a "sstatic" html page.
Java Programmer and Sun Systems Administrator

----------------------------------------------

Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it.
--Brian Kernighan
Reply With Quote Quick reply to this message  
Join Date: Mar 2007
Posts: 22
Reputation: sakura_fujin is an unknown quantity at this point 
Solved Threads: 0
sakura_fujin sakura_fujin is offline Offline
Newbie Poster

Re: export to html

 
0
  #5
Oct 19th, 2007
i think it's the last one you said. i have to produce a html file from the track listings in the music manager database and that my code is pure hard coded...
Reply With Quote Quick reply to this message  
Join Date: Feb 2006
Posts: 2,277
Reputation: masijade has much to be proud of masijade has much to be proud of masijade has much to be proud of masijade has much to be proud of masijade has much to be proud of masijade has much to be proud of masijade has much to be proud of masijade has much to be proud of masijade has much to be proud of 
Solved Threads: 242
masijade's Avatar
masijade masijade is offline Offline
Nearly a Posting Maven

Re: export to html

 
0
  #6
Oct 19th, 2007
Java Programmer and Sun Systems Administrator

----------------------------------------------

Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it.
--Brian Kernighan
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the Java Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC