Page 2 of 2 FirstFirst 12
Results 21 to 22 of 22
  1. #21
    Gary20 is offline Member
    Join Date
    Jan 2011
    Posts
    18
    Rep Power
    0

    Default

    Hi

    Sorry for the late reply!

    • Is there a need to play with the web.xml file? I see a lot of references to it but not sure why.
    • Where does jsp go? Not in the root directory?


    Maybe I setup Eclipse wrong. In any case, it is working in the web container, so I won't complain! :D Now to finish up with some other stuff I am playing with.

    Thanks again!

  2. #22
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    11,967
    Rep Power
    19

    Default

    JSPs go in WEB-INF/jsp.
    The web.xml is need to tell the server what names in the URLs for your site map to which servlets. As well as other things, but that's a key one.

    JSPs go under WEB-INF since they are pre-processed by the server, first into a Servlet and then compiled into a class. You don't actually access them directly. The server essentially maps <myjsp>.jsp to <whatever random servlet name>.class.

Page 2 of 2 FirstFirst 12

Similar Threads

  1. Problem with loading driver
    By b01g in forum New To Java
    Replies: 7
    Last Post: 07-15-2011, 06:41 PM
  2. Loading of JDBC Driver
    By Riyaz.hk77 in forum Advanced Java
    Replies: 11
    Last Post: 11-11-2010, 08:53 AM
  3. No suitable driver found exception error
    By Crazy Caveman in forum Networking
    Replies: 1
    Last Post: 09-01-2010, 12:03 AM
  4. Compile error in Driver class, help plz
    By Battlefeldt in forum New To Java
    Replies: 3
    Last Post: 11-25-2009, 11:30 PM
  5. Database Driver Error.....Plz Help!
    By sayan751 in forum NetBeans
    Replies: 0
    Last Post: 02-19-2009, 04:59 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
  •