#1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2002
    Posts
    11
    Rep Power
    0

    links within servlets


    Hi,

    I cant get a web link to work within a servlet I have written. I get an error saying the web page is not available. is there a particular folder in which I have to put the web page or am I doing something entirely wrong. please help. I'm using tomcat as my server
    the error I get is as follows:

    type Status report

    message /examples/servlet/options.htm

    description The requested resource (/examples/servlet/options.htm) is not available.


    please help
  2. #2
  3. No Profile Picture
    Moderator =(8^(|)
    Devshed Intermediate (1500 - 1999 posts)

    Join Date
    Feb 2002
    Location
    Sacramento, CA
    Posts
    1,710
    Rep Power
    14
    Tomcat directory structure:

    %tomcatHome&/webapps/myapp - maps to "/"

    %tomcatHome&/webapps/myapp/testing - maps to "/testing/"

    %tomcatHome&/webapps/myapp/web-inf/classes - maps to "/servlet/"

    That help?
  4. #3
  5. No Profile Picture
    Moderator =(8^(|)
    Devshed Intermediate (1500 - 1999 posts)

    Join Date
    Feb 2002
    Location
    Sacramento, CA
    Posts
    1,710
    Rep Power
    14
    a-track wrote on September 18th, 2002 05:03 PM:
    thank you for your help but for some reason I seem to be getting the error still.

    this is the link I'm using:
    out.println("<P ALIGN=CENTER> You may now proceed to the <A HREF=\"/options.htm/\">Options Page</A></P>");

    and the HTML file is stored in:

    E:\Tomcat\jakarta-tomcat-4.0.1\webapps\examples\servlets

    called options.htm.

    I'm really grateful for your help so far, and would appreciate it even more if you could help me get rid of this headache. I'm getting desperate.
    thanks
    Put your options.htm file in E:\Tomcat\jakarta-tomcat-4.0.1\webapps\examples\, and change you like to HREF=\"/options.htm\", you have one too many "/" in there.

IMN logo majestic logo threadwatch logo seochat tools logo