Thanks very much, Simon, I see your point.

Now I'd tell you why I want to add one more dir "is"

I'm designing a software system, whose architecture is
like 
            webapps
             |
            is(Integratioin Suite)
             |
  |------|--------|-----|------|
Plan Execution Report Search Admin

My intention is to allow each subsystem like
Plan/Execution/Report/Search/Admin as independent
as possiable, even though there will be some relations
among them. So I can let different develop group to
develop each subsystem a bit more independently.

My reason to add "is" dir is just intend to make whole
sw system under one roof -> "is", so under webapps, there
could be more than one sw systems staying there.

1. Are you meaning that "webapps" is already one roof,
underneath it can *only* allow one sw system staying there?

2. Are you meaning, between WEB-INF and webapps, there
should be *only one* level of directory, rather than two?

3. Are you meaning each subsystem should have its own WEB-INF
like following structure? ( Report/Search/Admin are not detailed in this
diagram)

 
|---------------------------------------|----------|-------|------|
               Plan                                  Execution     Report
Search Admin 
                 |                                       |

|----------|-----------|-------|        |----------|-----------|-------| 
jsp     servlets    WEB-INF META-INF    jsp     servlets    WEB-INF META-INF

 |          |           |        |       |          |           |        |

some.jsp index.html classes MENIFEST.MF some.jsp index.html classes
MENIFEST.MF             

4. Is there any document talking about the whole Tomcat directory tree
structure
and its design priciple, ie. why they design directory tree structure
in that way ?

So far, I'm still struggling to understand the Tomcat's directory
structure, Tomcat sw design principles, ie. big-picture-wise stuff, 
if you can share some of the lights w/ me, 
that will be greatly appreciated.

Cheers,

        [EMAIL PROTECTED]
                                 _____
                                   |
    \_____________________________/o\_____________________________/
                                  \_/

          Every once in a while, the boundaries get redefined.



-----Original Message-----
From: Kitching Simon [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, December 20, 2000 2:07 AM
To: '[EMAIL PROTECTED]'
Subject: RE: How to accommodate the webapps directory structure change


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. 
> 

Reply via email to