944,162 Members | Top Members by Rank

Ad:
  • JSP Discussion Thread
  • Unsolved
  • Views: 2070
  • JSP RSS
Jun 14th, 2007
0

mysql data

Expand 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
Similar Threads
Reputation Points: 10
Solved Threads: 0
Light Poster
akash_msrit is offline Offline
30 posts
since May 2007
Jun 14th, 2007
0

Re: mysql data

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.
Moderator
Featured Poster
Reputation Points: 2786
Solved Threads: 874
Code tags enforcer
peter_budo is offline Offline
6,659 posts
since Dec 2004
Jun 14th, 2007
0

Re: mysql data

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.
Team Colleague
Reputation Points: 1658
Solved Threads: 331
duckman
jwenting is offline Offline
7,719 posts
since Nov 2004
Jun 14th, 2007
0

Re: mysql data

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.
Super Moderator
Featured Poster
Reputation Points: 3241
Solved Threads: 719
Failure as a human
~s.o.s~ is offline Offline
8,873 posts
since Jun 2006
Jun 14th, 2007
0

Re: mysql data

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
Moderator
Featured Poster
Reputation Points: 2786
Solved Threads: 874
Code tags enforcer
peter_budo is offline Offline
6,659 posts
since Dec 2004
Jun 17th, 2007
0

Re: mysql data

Click to Expand / Collapse  Quote originally posted by ~s.o.s~ ...
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.
Team Colleague
Reputation Points: 1658
Solved Threads: 331
duckman
jwenting is offline Offline
7,719 posts
since Nov 2004
Jun 17th, 2007
1

Re: mysql data

|>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.
Super Moderator
Featured Poster
Reputation Points: 3241
Solved Threads: 719
Failure as a human
~s.o.s~ is offline Offline
8,873 posts
since Jun 2006

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in JSP Forum Timeline: How to pass a server side value to an attribute of a custom jsp tag
Next Thread in JSP Forum Timeline: about eclipse. Please help me





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC