Re: 2 Servlets within one Webapp

2002-11-08 Thread Max Larsson
Hi,

i played a little bit around and fihured out, that
i can get running two servlets at the same time.
With the following configuration:

	servlet-mapping
		servlet-nameCocoon2/servlet-name
		url-pattern/demos/url-pattern
	/servlet-mapping
	servlet-mapping
		servlet-namewebdav/servlet-name
		url-pattern/webdav/url-pattern
	/servlet-mapping

BUT request seem only to get to the servlet then there
arn't any subdirs in requets path: For example

http://localost/mywebapp/demos  - goes to cocoon
http://localost/mywebapp/demos/subdir/indexs.html  - goes NOT to cocoon

Anyone have any idea why this is so?

TIA

Max



has onyone expierence with running two servlets
within one webapp. For example having the
cocoon servlet maped to / and another servlet
to /directory. I know this is configured in
the web.xml file in WEB-INF directory. But
i can only one of them at the time working, not
both.



Actually this should work. For Wyona we have the Cocoon Servlet
and a Scheduler Servlet running without any problem.

What if you don't do any mapping?

And call your servlet directly, e.g.

http://127.0.0.1:8080/cocoon/servlet/org.foo.BarServlet


Michael




TIA

Max


-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

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





-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

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





-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

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




2 Servlets within one Webapp

2002-11-03 Thread Max Larsson
Hi,

has onyone expierence with running two servlets
within one webapp. For example having the
cocoon servlet maped to / and another servlet
to /directory. I know this is configured in
the web.xml file in WEB-INF directory. But
i can only one of them at the time working, not
both.

TIA

Max


-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

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




Re: 2 Servlets within one Webapp

2002-11-03 Thread Michael Wechner
Max Larsson wrote:

Hi,

has onyone expierence with running two servlets
within one webapp. For example having the
cocoon servlet maped to / and another servlet
to /directory. I know this is configured in
the web.xml file in WEB-INF directory. But
i can only one of them at the time working, not
both.


Actually this should work. For Wyona we have the Cocoon Servlet
and a Scheduler Servlet running without any problem.

What if you don't do any mapping?

And call your servlet directly, e.g.

http://127.0.0.1:8080/cocoon/servlet/org.foo.BarServlet


Michael




TIA

Max


-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

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





-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

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