JSP and Tomcat
-
Hi all... I m very new in JSP and Tomcat and stuff, And I want to know where can I start from. I already have the apache in c:\apache. And already have the IIS from my WinXP installation. Anyways... I saw a document that said to download the JDK from: http://java.sun.com/j2se/1.3/download.html[^] And download the JSP enivorment(Tomcat) from: http://java.sun.com/products/jsp/download.html[^] So I did... I think I downloaded the JDK. (or was it the SDK?) I downloaded Tomcat 5 and extracted it to my c:\tomcat folder. Now: I open a cmd window... I goes to c:\tomcat\bin I run the startup file: startup.bat AND...:wtf: the cmd window closes... :confused: if anyone with expiriance is reading this message... Please, Tell me what do I need to do in order to make a simple jsp file that gets data from a database and displayes it as an HTML to the viewer??? :confused: =-=-=-=-=-= The-Server :rose:
-
Hi all... I m very new in JSP and Tomcat and stuff, And I want to know where can I start from. I already have the apache in c:\apache. And already have the IIS from my WinXP installation. Anyways... I saw a document that said to download the JDK from: http://java.sun.com/j2se/1.3/download.html[^] And download the JSP enivorment(Tomcat) from: http://java.sun.com/products/jsp/download.html[^] So I did... I think I downloaded the JDK. (or was it the SDK?) I downloaded Tomcat 5 and extracted it to my c:\tomcat folder. Now: I open a cmd window... I goes to c:\tomcat\bin I run the startup file: startup.bat AND...:wtf: the cmd window closes... :confused: if anyone with expiriance is reading this message... Please, Tell me what do I need to do in order to make a simple jsp file that gets data from a database and displayes it as an HTML to the viewer??? :confused: =-=-=-=-=-= The-Server :rose:
Works fine here. Have you set the
JAVA_HOME
andCATALINA_HOME
environment variables? (The first should be set to your Java SDK path, e.g.,C:\j2sdk-1.4.2
, and the second to your Tomcat path, e.g.,C:\tomcat
). Also, the current version of the Java SDK (previously known as the "JDK") is 1.4.2. Get it here: http://java.sun.com/j2se/1.4.2/download.html[^] - Mike -
Works fine here. Have you set the
JAVA_HOME
andCATALINA_HOME
environment variables? (The first should be set to your Java SDK path, e.g.,C:\j2sdk-1.4.2
, and the second to your Tomcat path, e.g.,C:\tomcat
). Also, the current version of the Java SDK (previously known as the "JDK") is 1.4.2. Get it here: http://java.sun.com/j2se/1.4.2/download.html[^] - Mike10x... I guess the
JAVA_HOME
environment variable was missing. cause after I added it, the Tomcat server start. ... Now, Only to create a database. And create a .jsp file that will connect to that database and generate an HTML. Tips about how to and/or where to start from... Will be mostly appricated. =-=-=-=-=-=-= The-Server :rose: -
10x... I guess the
JAVA_HOME
environment variable was missing. cause after I added it, the Tomcat server start. ... Now, Only to create a database. And create a .jsp file that will connect to that database and generate an HTML. Tips about how to and/or where to start from... Will be mostly appricated. =-=-=-=-=-=-= The-Server :rose:You really should focus on one thing at a time. First, play around with JSP to get an idea of how it works and get a feel for writing dynamic pages with JSP. There are plenty of tutorials for this, just check Google. Here's one that I ran across: http://www.jsptut.com/[^] Next, get familiar with a database system. MySQL is a popular choice for getting started, since it's free and has a Win32 version: http://www.mysql.com/downloads/mysql-4.0.html[^] There's also PostgreSQL, which is more powerful but trickier to get started with. Finally, you can put them together. The standard way to interface with a database in Java is through JDBC. Simple tutorial: http://java.sun.com/docs/books/tutorial/jdbc/[^] - Mike
-
You really should focus on one thing at a time. First, play around with JSP to get an idea of how it works and get a feel for writing dynamic pages with JSP. There are plenty of tutorials for this, just check Google. Here's one that I ran across: http://www.jsptut.com/[^] Next, get familiar with a database system. MySQL is a popular choice for getting started, since it's free and has a Win32 version: http://www.mysql.com/downloads/mysql-4.0.html[^] There's also PostgreSQL, which is more powerful but trickier to get started with. Finally, you can put them together. The standard way to interface with a database in Java is through JDBC. Simple tutorial: http://java.sun.com/docs/books/tutorial/jdbc/[^] - Mike
One more question, A litle less, but still importent: I have
linux mandrake
. and I need to install theJDK
so I downloaded the file:JDK_file.rpm.bin
And executed it from the using the linux command:. JDK_file.rpm.bin
After the extrection... I typed:ls
. and saw the list of files. 2 files were there:JDK_file.rpm.bin
and**install.something.1157**
How do I run the.something
file?? =-=-=-=-=-=-= The-Server :rose: