--On Monday, March 05, 2001 11:34:13 AM -0500 "Brett W. McCoy" 
<[EMAIL PROTECTED]> wrote:

>
> I think for your mapping you don't want that full directory path for
> your url pattern.  The idea is that you don't want to use that full
> path, but something simple that will get mapped automagically to that
> path.  I think you just want <url-pattern>nData</url-pattern> in
> there.
>

That probably won't work without a leading "/".  Try this:

<servlet-mapping>
    <servlet-name>nData</servlet-name>
    <url-pattern>/nData</url-pattern>
</servlet-mapping>

That's how I do mine and my packages tend to have a lot a layers, and 
it works just fine.

Also, just to pass on something I read in another posting but haven't 
yet tried myself.  The pattern above won't work if you add additional 
path info data.  I think what's going on is that the container thinks 
that the path info portion is a servlet name and tries to go find it. 
At least I would get 404 file not found error.  The url-pattern I'm 
currently using is /nData/*, but what I read suggest that it can mess 
up access to a *.jsp if it happens to have the same mapping.  The post 
I read suggested /nData/ is the appropriate mapping.

-- Rob


       _ _ _ _           _    _ _ _ _ _
      /\_\_\_\_\        /\_\ /\_\_\_\_\_\
     /\/_/_/_/_/       /\/_/ \/_/_/_/_/_/  QUIDQUID LATINE DICTUM SIT,
    /\/_/__\/_/ __    /\/_/    /\/_/          PROFUNDUM VIDITUR
   /\/_/_/_/_/ /\_\  /\/_/    /\/_/
  /\/_/ \/_/  /\/_/_/\/_/    /\/_/         (Whatever is said in Latin
  \/_/  \/_/  \/_/_/_/_/     \/_/              appears profound)

  Rob Tanner
  McMinnville, Oregon
  [EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

Reply via email to