September 18th, 2002, 03:22 AM
links within servlets
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
description The requested resource (/examples/servlet/options.htm) is not available.
September 18th, 2002, 01:08 PM
Tomcat directory structure:
%tomcatHome&/webapps/myapp - maps to "/"
%tomcatHome&/webapps/myapp/testing - maps to "/testing/"
%tomcatHome&/webapps/myapp/web-inf/classes - maps to "/servlet/"
September 18th, 2002, 08:19 PM
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.