Has anyone done this for a partial URL? For example, I have a webapp that I want to serve from another servlet, but then further down in the URL I want my DAV repository:
Normal HTTP through my webapp, no authentication needed: http://myserver/myapp http://myserver/myapp/mypages (etc) WebDAV access, must authenticate: http://myserver/myapp/dav http://myserver/myapp/dav/..... In the web.xml, it would look something like: <!-- servlet and mapping to my app --> <servlet> <servlet-name>MyServlet</servlet-name> </servlet> <servlet-mapping> <servlet-name>MyServlet</servlet-name> <url-pattern>/myapp/*</url-pattern> </servlet-mapping> <!-- servlet and mapping to my WebDAV --> <servlet> <servlet-name>webdav</servlet-name> <init-param> <param-name>namespace</param-name> <param-value>dav</param-value> </init-param> .... </servlet> <servlet-mapping> <servlet-name>webdav</servlet-name> <url-pattern>/myapp/dav</url-pattern> </servlet-mapping> <servlet-mapping> <servlet-name>webdav</servlet-name> <url-pattern>/myapp/dav/*</url-pattern> </servlet-mapping> Will this work? The intended action is to bring up the JAAS authentication dialog when accessing '/myapp/dav...' but to not require it for all other URLs. Also, what is the required entry in the domain.xml file? Thanks, Dan > -----Original Message----- > From: Darren Hartford [mailto:[EMAIL PROTECTED] > Sent: Monday, May 23, 2005 4:57 PM > To: Slide Users Mailing List > Subject: RE: Re: Problems integrating Slide > > When deploying the slide servlet (or most standard servlets for that > case), the second part of your URL/webdav request should be the same as > the WAR name. i.e. slide.war = http://localhost:8080/slide, while > SLIDE2.war is http://localhost:8080/SLIDE2. > > The rest of the URL for the requests are defined in slide's domain.xml > file under the <objectnode> sections, specifically the 'uri' attribute. > > Hope that helps, it took me a bit to understand the second piece on my > own. > > -D > > > -----Original Message----- > > From: Brandon Dove [mailto:[EMAIL PROTECTED] > > Sent: Thursday, May 19, 2005 1:08 AM > > To: Srinivas Rao > > Subject: Re: Re: Problems integrating Slide > > > > Well I've figured out *my* problem. I changed the servlet > > mapping from the default to: > > > > /slide > > > > when it should have been: > > > > /slide/* > > > > I can now store/retrieve content from the /files subdirectory. > > > > Cheers, > > > > Brandon > > > > > > > > ________________________________________________ > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
