mysql data

Reply

Join Date: May 2007
Posts: 30
Reputation: akash_msrit is an unknown quantity at this point 
Solved Threads: 0
akash_msrit akash_msrit is offline Offline
Light Poster

mysql data

 
0
  #1
Jun 14th, 2007
hi everyone

how to display mysql query results in a html or jsp page. using java script or any other
if u have working code or sample code please send me


please help me . its very urgent

regards

Manjunath
Reply With Quote Quick reply to this message  
Join Date: Dec 2004
Posts: 4,191
Reputation: peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of 
Solved Threads: 485
Moderator
Featured Poster
peter_budo's Avatar
peter_budo peter_budo is offline Offline
Code tags enforcer

Re: mysql data

 
0
  #2
Jun 14th, 2007
Originally Posted by akash_msrit View Post
hi everyone

how to display mysql query results in a html or jsp page. using java script or any other
if u have working code or sample code please send me


please help me . its very urgent

regards

Manjunath
manjunath, first read rules about homeworks
Than, answer the question. Do you know anything about Java and JSP?
Answers:
yes then you need to read about servlets and how to retrive data from database, you may start over here plus there is plenty more just ask, but do not use anything older then 2005 or it will be out of date
no then you better of using other technologies such as PHP, Perl (I think you little familiar with Perl made few psots in that section of forum) or AJAX. Why? It will take you long time to understand how to do it in Java...

My personal opinion, it is bad idea to try get data from database with JavaScript

PS: In the future avoid double posting in other section of the forum. Thank you.
Last edited by peter_budo; Jun 14th, 2007 at 8:04 am.
Learn to see in another's calamity the ills which you should avoid.
Publilius Syrus
(~100 BC)

LJC - London Java Community, Graduate & Undergraduate Software Development Community, JAVAWUG (Java Web User Group), The London Android Group
Reply With Quote Quick reply to this message  
Join Date: Nov 2004
Posts: 6,143
Reputation: jwenting is just really nice jwenting is just really nice jwenting is just really nice jwenting is just really nice 
Solved Threads: 212
Team Colleague
jwenting's Avatar
jwenting jwenting is offline Offline
duckman

Re: mysql data

 
0
  #3
Jun 14th, 2007
Ajax won't do anything database related as it's purely a clientside technology...
It will however interface with serverside components in other languages that can do things with databases...

And no, php and Perl are not viable alternatives to Java.
php is terrible, spaghetti code galore.
Perl is write-only code.
Both are a disaster to maintain.

Using something like iBatis or Hibernate (or even plain JDBC) it's quite easy to use databases with Java.
As people are clearly allowed to attack me but I'm not allowed to defend myself, I no longer post to this site.
Reply With Quote Quick reply to this message  
Join Date: Jun 2006
Posts: 7,615
Reputation: ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of 
Solved Threads: 466
Super Moderator
Featured Poster
~s.o.s~'s Avatar
~s.o.s~ ~s.o.s~ is offline Offline
Failure as a human

Re: mysql data

 
0
  #4
Jun 14th, 2007
There has been a lot of talk about ROR(Ruby on Rails). It has been said that a Java Web based application which was developed in 4 months, was developed in 4 days using ROR.

If you are yet to start on learning a new server side technology and have a time constraint, trying out ROR wouldn't be a bad idea.
I don't accept change; I don't deserve to live.
Reply With Quote Quick reply to this message  
Join Date: Dec 2004
Posts: 4,191
Reputation: peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of 
Solved Threads: 485
Moderator
Featured Poster
peter_budo's Avatar
peter_budo peter_budo is offline Offline
Code tags enforcer

Re: mysql data

 
0
  #5
Jun 14th, 2007
Sorry jwenting I was not saying that he should use PHP and Perl in relation to Java. What I tried to say is, that if he do not understand Java and there is no long period of time to spare learn it, he will be better of using PHP or Perl to retrive data from DB. They do not requere so much to learn and looks like he has some experience with Perl
Learn to see in another's calamity the ills which you should avoid.
Publilius Syrus
(~100 BC)

LJC - London Java Community, Graduate & Undergraduate Software Development Community, JAVAWUG (Java Web User Group), The London Android Group
Reply With Quote Quick reply to this message  
Join Date: Nov 2004
Posts: 6,143
Reputation: jwenting is just really nice jwenting is just really nice jwenting is just really nice jwenting is just really nice 
Solved Threads: 212
Team Colleague
jwenting's Avatar
jwenting jwenting is offline Offline
duckman

Re: mysql data

 
0
  #6
Jun 17th, 2007
Originally Posted by ~s.o.s~ View Post
There has been a lot of talk about ROR(Ruby on Rails). It has been said that a Java Web based application which was developed in 4 months, was developed in 4 days using ROR.

If you are yet to start on learning a new server side technology and have a time constraint, trying out ROR wouldn't be a bad idea.
The difference of course being that the Java application was well architectured, easy to maintain, and performant while the ROR application was a mess, impossible to maintain, and can't survive under load.
As people are clearly allowed to attack me but I'm not allowed to defend myself, I no longer post to this site.
Reply With Quote Quick reply to this message  
Join Date: Jun 2006
Posts: 7,615
Reputation: ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of 
Solved Threads: 466
Super Moderator
Featured Poster
~s.o.s~'s Avatar
~s.o.s~ ~s.o.s~ is offline Offline
Failure as a human

Re: mysql data

 
1
  #7
Jun 17th, 2007
|>The difference of course being that the Java application was well
|>architectured, easy to maintain, and performant while the ROR
|>application was a mess, impossible to maintain, and can't survive
|>under load.

That I hear from each and every Java programmer. ;-)

But considering that many professional sites have been made using ROR, there is no harm in atleast trying it out, esp if the OP has yet to learn a language.
Last edited by ~s.o.s~; Jun 17th, 2007 at 5:12 am.
I don't accept change; I don't deserve to live.
Reply With Quote Quick reply to this message  
Reply

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


Thread Tools Search this Thread



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

©2003 - 2009 DaniWeb® LLC