Hi Steven, The problem you have with your new directory structure is that the WEB-INF directory isn't immediately below the webapp root. In the first case, you have a webapp root of "execution", and WEB-INF is directly below that directory, so this is OK. In the second case, you need WEB-INF to be off the "is" directory, not the "execution" directory. Because it is in the wrong place, it is regarded as a plain old content directory, not a special directory. Tomcat will therefore not find the web.xml file, *or* any of the servlet classes. As a result, any /servlet/... url won't work - tomcat won't find any corresponding class file. Cheers, Simon > -----Original Message----- > From: Steven Liu [SMTP:[EMAIL PROTECTED]] > Sent: Tuesday, December 19, 2000 7:13 PM > To: '[EMAIL PROTECTED]' > Subject: How to accommodate the webapps directory structure change > > Following is my directory/file structure for a servlet, it works fine. > the index.html has the statement: > "<td WIDTH="30%"><a href="../execution/servlet/ABC"><img > SRC="../images/execute.gif" HSPACE=4 BORDER=0 align=TOP></a><a > href="../execution/servlet/ABC">Execute</a></td> > > webapps > | > execution > |----------------| > servlets WEB-INF > | | > index.html classes > |------------------------| > abc.class LocalStrings.properties > > > However, after I change the structure into following(add one more > level of directory, ie "is"), it won't work any more ! > How should I change the statement in index.html like above to > accommodate the directory structure change ? > Or I should do something else to accommodate ? > > webapps > | > is > execution > |----------------| > servlets WEB-INF > | | > index.html classes > |------------------------| > abc.class LocalStrings.properties > > > [EMAIL PROTECTED] > _____ > | > \_____________________________/o\_____________________________/ > \_/ > > Every once in a while, the boundaries get redefined. >
