Deploy three different instances of your app, one instance at each of these
context paths:

/APP
/APP/foo
/APP/foo2

-Max

----- Original Message ----- 
From: "Laurent Garcia" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, June 04, 2003 8:03 AM
Subject: Mutil URL access to a struts application


Hi all,

I just finished my struts 1.0 application, and now I would like to access to
my application through several URL :

My root context is APP and I want to access to my application with,
for example :

http://localhost:9080/APP/init.do
http://localhost:9080/APP/foo/init.do
http://localhost:9080/APP/foo2/init.do

and depend on the url context I want to have a different behaviour in my
application

But I don't want to change anything in my struts-config.xml file (perhaps in
the jsp).

I have something like that :

<servlet-mapping>
    <servlet-name>action</servlet-name>
    <url-pattern>*.do</url-pattern>
</servlet-mapping>
in my web.xml, I try  to add <url-pattern>/foo/*.do</url-pattern> with no
success.

Thanks,


Laurent







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

Reply via email to