Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: Release 1.5
-
Fix Version/s: Release 1.5.2, Release 1.6
-
Component/s: Tag Library
-
Labels:None
-
Environment:linux, tomcat 6, using lates stripes code from trunk (clean checkout)
Description
Steps to reporduce (note I am using DynamicFilterMapping):
1) create an action bean e.g.:
@UrlBinding("/foo/{$event}/{entryName}")
com.somewhere.FooAction
2)create a page with link:
<s:link beanclass="com.somewhere.FooAction" event="view">
<s:param name="entryName">${entry.name}</s:param>
${entry.name}
</s:link>
3) Deploy webapp into webapps/foo/
4) link resolves to /foo/view/someName
expected is:
/foo/foo/view/someName
Now change step 3 and deploy app into webapps/bar/
link now resolves to (as expected):
/bar/foo/view/someName
(or skip deployment change within 3 and only change url mapping to "/bar/{$event}/{entryName}, than link becomes: /foo/bar/view/someName)
one more (this time war is deployed into foobar context):
I've mapped /action/* within dynamic filter,
<filter-mapping>
<filter-name>DynamicMappingFilter</filter-name>
<url-pattern>/action/*</url-pattern>
<dispatcher>REQUEST</dispatcher>
<dispatcher>FORWARD</dispatcher>
<dispatcher>INCLUDE</dispatcher>
</filter-mapping>
my action has following mapping:
@UrlBinding(value = "/action/register/{$event}")
Now, eveything works fine, however, if I have a form and try to submit, event is never mapped to the right action, and never gets called. It gets called if I use action instead of beanclass atribute.
Changing this to /actions/* instead of /action/*, fixes things. (of course @UrlBinding is changed as wel)
Deployment is on tomcat/linux