Results 1 to 6 of 6
  1. #1
    CirKuT is offline Member
    Join Date
    Sep 2008
    Posts
    53
    Rep Power
    0

    Default cannot run web app with Netbeans

    Hello Everyone,

    Im still pretty new to Netbeans and java and I am having problems running a web app.
    I found a tutorial on the Web that taught me how to make an easy web app but it wont run. I get an error saying the "The Java DB lcoation is not set correclty" As far as I know I am not using any database for this app. Any suggestions???
    I have posted the code I used below

    <%--
    Document : index
    Created on : Oct 26, 2008, 4:06:01 PM
    Author : CirKuT
    --%>

    <%@page contentType="text/html" pageEncoding="UTF-8"%>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">

    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>K & H Integrated Print Solutions Online Status Checker</title>
    </head>
    <body>
    <h2>Welcome to K & H Integrated Print Solutions</h2>

    </body><table border="0">
    <thead>
    <tr>
    <th>K&H Offers alot</th>
    </tr>
    </thead>
    <tbody>
    <tr>
    <td>To view, select below</td>
    </tr>
    <tr>
    <td>
    <form action="response.jsp">
    <strong>Select a subject:</strong>
    <select name="subject_id">
    <option></option>
    </select>
    <input type="submit" value="submit" name="submit" />
    </form>
    </td>
    </tr>
    </tbody>
    </table>

    </html>

  2. #2
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,315
    Blog Entries
    1
    Rep Power
    26

    Default

    Where's the Java here?

  3. #3
    CirKuT is offline Member
    Join Date
    Sep 2008
    Posts
    53
    Rep Power
    0

    Default

    Well this is my first time making a web app with Netbeans, I just followed the directions in the tutorial. Doesnt a web app incorporate both html and java within the same code? I could be way off here. Im just wondering why it says the database is not set correctly since Ive never used it.

  4. #4
    fishtoprecords's Avatar
    fishtoprecords is offline Senior Member
    Join Date
    Jun 2008
    Posts
    571
    Rep Power
    7

    Default

    Quote Originally Posted by CirKuT View Post
    Doesnt a web app incorporate both html and java within the same code?
    No, not in general, and not necessarily. You probably could do it, but that's a bad idea.

    Use netbeans to make a sample webapp for you. it will generate .jsp and .java code for you. Then change it to suit

  5. #5
    CirKuT is offline Member
    Join Date
    Sep 2008
    Posts
    53
    Rep Power
    0

    Default

    I tried that,

    Anytime I try running the example web apps in netbeans, by right clicking on the file and selecting run, It keeps saying java DB location not correct or soemthing, Do i need to configure the java DB or something before can run web apps in netbeans??

  6. #6
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,371
    Blog Entries
    1
    Rep Power
    20

Similar Threads

  1. netbeans
    By sweet angle in forum NetBeans
    Replies: 1
    Last Post: 08-05-2008, 05:06 AM
  2. Ant outside of netbeans
    By ProbablyX in forum NetBeans
    Replies: 0
    Last Post: 02-14-2008, 08:06 PM
  3. NetBeans 5.5.1 Help.
    By padutch2 in forum New To Java
    Replies: 6
    Last Post: 12-03-2007, 04:01 AM
  4. netbeans 64 bit
    By caspermel in forum NetBeans
    Replies: 1
    Last Post: 06-26-2007, 11:29 PM
  5. About using netbeans
    By yuchuang in forum NetBeans
    Replies: 3
    Last Post: 05-27-2007, 09:06 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •