java servlets help???

Reply

Join Date: Oct 2009
Posts: 3
Reputation: ankiwalia is an unknown quantity at this point 
Solved Threads: 0
ankiwalia ankiwalia is offline Offline
Newbie Poster

java servlets help???

 
0
  #1
Oct 25th, 2009
hey guys,
i'm new to java servlets..i have been making a website using java servlets on stock market and stuff...now what my query is that i want to retrieve data from database(ms-access) and display it on my html page....

i don't have much knowledge about html so i took a css template from internet and started working on it...what i have been trying to do is that i included all of the html tags in .java file(servlet) so that html page could be dynamic...

but this thing is very hectic...its giving me whole lot of errors..i mean i tried to include whole of the template in servlet programming...but lot of errors...

So can anybody please suggest me another method(leaving jsp) to display my data from database on html page using servlets or help me with my coding...i have attached the code with my post!!!!
Attached Files
File Type: java portfolio.java (18.2 KB, 2 views)
Reply With Quote Quick reply to this message  
Join Date: Oct 2009
Posts: 28
Reputation: moutanna is an unknown quantity at this point 
Solved Threads: 6
moutanna moutanna is offline Offline
Light Poster
 
0
  #2
Oct 25th, 2009
your class must have the same name as the name file.
ther is lot of mistackes in you code: open braket not closed, open double cote not closed.
The css grammer and language is not allowed to be used directty in a java file.
The sum: you have to learne about the java language grammar and syntax and the servelet technology.
Reply With Quote Quick reply to this message  
Join Date: Dec 2007
Posts: 1,660
Reputation: javaAddict is a name known to all javaAddict is a name known to all javaAddict is a name known to all javaAddict is a name known to all javaAddict is a name known to all javaAddict is a name known to all 
Solved Threads: 224
Featured Poster
javaAddict's Avatar
javaAddict javaAddict is offline Offline
Posting Virtuoso
 
0
  #3
Oct 25th, 2009
Originally Posted by ankiwalia View Post
So can anybody please suggest me another method(leaving jsp) to display my data from database on html page
If you want to display data to html page then you use jsp.
Jsp is actually constructed using html tags. So if you don't know html how can you create a web page? If you don't know java how can you display the data?
Check out my New Bike at my Public Profile at the "About Me" tab
Reply With Quote Quick reply to this message  
Reply

Message:



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



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

©2003 - 2009 DaniWeb® LLC