My solution to this problem was to create two separate webapps and deploy them both to the same instance of Tomcat. The trouble is that the Slide servlet does not function well as a default servlet. I.e., it won't serve up any static content you might have. The *.do mapping should work, but that's not much good if it can't handle .html, .gif, etc.

K.C.

Nick Davidenko wrote:

Hi all!

I developed web client application (based on Struts and Velocity)
for my Slide server and it works ok.
Both client and server applications works on independent computers
(i deploy 'client.jar' on client mashine and 'slide.war' on server
mashine.) Now I want to join these 2 jars into one jar and deploy it
on one mashine.
 But there is problem: i cannot set up correct mapping both for
 client's Struts Action Servlet and server's Slide WebDAV sevlet.
 Code snippets are following:

       <!-- Standard Action Servlet Mapping -->
       <servlet-mapping>
               <servlet-name>action</servlet-name>
               <url-pattern>/*.do</url-pattern>
       </servlet-mapping>

<!-- WebDAV Servlet Mapping -->
<servlet-mapping>
<servlet-name>webdav</servlet-name>
<url-pattern>/</url-pattern>
</servlet-mapping>
In general, they can't work together.
If I change mapping for WebDAV servlet as shown below


       <!-- WebDAV Servlet Mapping -->
       <servlet-mapping>
               <servlet-name>webdav</servlet-name>
               <url-pattern>/webdav</url-pattern>
       </servlet-mapping>

then my client app can't see the directory structure I created
earlier and WebDAV server is not working properly.

Can anyone help me?


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



Reply via email to