One approach is to create separate action mappings for
/init
/foo/init
/foo/init2
all of which forward to the same action class, and then decode the mapping
in the action to determine what to do. E.g.,
String path = mapping.getPath();
if (path.equals(/init.do) {
} else {
Joe Baker
I looked at that the other day because I wanted to do something like:
servlet-mapping
servlet-nameaction/servlet-name
url-pattern*.do/url-pattern
/servlet-mapping
servlet-mapping
servlet-nameaction/servlet-name
url-pattern*.jsp/url-pattern
/servlet-mapping
and in my controller
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
3 matches
Mail list logo