[ 
http://www.stripesframework.org/jira/browse/STS-523?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=11538#action_11538
 ] 

m.j.milicevic commented on STS-523:
-----------------------------------

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


> stripes:link doesn't resolved URL properly when used with DynamicMappingFilter
> ------------------------------------------------------------------------------
>
>                 Key: STS-523
>                 URL: http://www.stripesframework.org/jira/browse/STS-523
>             Project: Stripes
>          Issue Type: Bug
>          Components: Tag Library
>    Affects Versions: Release 1.5
>         Environment: linux, tomcat 6, using lates stripes code from trunk 
> (clean checkout)
>            Reporter: m.j.milicevic
>            Assignee: Ben Gunter
>
> 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)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://www.stripesframework.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Stripes-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-development

Reply via email to