W dniu 16.05.2012 16:32, Cristian C pisze:
> I thought "/{bar}" should match /favicon.ico, but "/" should not.  Looks
> like it matches if the requested URL has the prefix as one of the Url
> Bindings.

I've searched past discussion about this issue and found the ticket - 
http://www.stripesframework.org/jira/browse/STS-688

> Do you think it's possible to change the behaviour by using a customized
> NameBasedActionResolver ?

Probably. Never felt the need to do so, because my source of problems 
was really to deploy at / -- if my app gets requests to / at all, I can 
handle it from there with my UrlRewritingFilter :-)

> I think this is a pretty basic functionality and surprised it's so hard
> to achieve.  It would've been really amazing if stripes had an
> annotation for the welcome ActionBean. :)

The simple, recommended in past threads, solution to this is to have 
index.jsp forward to some action, or to use /someaction as welcome page 
(from what I read in the past discussion it is at least supported in 
Tomcat). I don't think a separate annotation is really needed, but I 
would like UrlBinding("/") to work as people expect -- and that means 
changing how URLs are matched (see STS-688 ticket I linked) at least for /

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Stripes-users mailing list
Stripes-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/stripes-users

Reply via email to