Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. XML / XSL
  4. JSP and Tomcat

JSP and Tomcat

Scheduled Pinned Locked Moved XML / XSL
javahtmlapachedatabasecom
5 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T Offline
    T Offline
    The_Server
    wrote on last edited by
    #1

    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:

    Z 1 Reply Last reply
    0
    • T The_Server

      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:

      Z Offline
      Z Offline
      ZoogieZork
      wrote on last edited by
      #2

      Works fine here. Have you set the JAVA_HOME and CATALINA_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

      T 1 Reply Last reply
      0
      • Z ZoogieZork

        Works fine here. Have you set the JAVA_HOME and CATALINA_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

        T Offline
        T Offline
        The_Server
        wrote on last edited by
        #3

        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:

        Z 1 Reply Last reply
        0
        • T The_Server

          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:

          Z Offline
          Z Offline
          ZoogieZork
          wrote on last edited by
          #4

          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

          T 1 Reply Last reply
          0
          • Z ZoogieZork

            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

            T Offline
            T Offline
            The_Server
            wrote on last edited by
            #5

            One more question, A litle less, but still importent: I have linux mandrake. and I need to install the JDK 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:

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups